[etherlab-users] How to make ipk/deb package for IgH EtherCAT Master?
Gavin Lambert
gavinl at compacsort.com
Mon Dec 4 00:02:16 CET 2017
Sorry, that should have been "make modules_install".
From: Gavin Lambert
Sent: Monday, 4 December 2017 11:49
To: 'Jiarui Lian' <jerry at bertec.com>; etherlab-users at etherlab.org
Subject: Re: [etherlab-users] How to make ipk/deb package for IgH EtherCAT
Master?
There isn't any built-in support for this. However it's a fairly standard
autotools package so you can follow generic instructions for building a deb
or whatever from an autotools makefile, for the most part.
Bear in mind that you need to make sure to build against the kernel headers
from the target system, which might be different from your development
system. If the two systems are too far different you might have issues with
shared libraries as well. Consider building using a cloned chroot of the
target system, although that can bring its own set of hassles.
You'll want to read up instructions for building a deb from autotools
elsewhere, but there are two key commands that will end up part of it
somehow:
* DESTDIR=/some/path make install (will install the user tools to the
specified directory as if it were the root)
* INSTALL_MOD_PATH=/some/path make module_install (will install the
kernel modules similarly)
These will get you a directory containing the files that need to be
installed, which will be an input to any of the packaging systems. Or you
can just tar it up and install it manually if you prefer.
From: Jiarui Lian
Sent: Saturday, 2 December 2017 08:43
To: etherlab-users at etherlab.org <mailto:etherlab-users at etherlab.org>
Subject: [etherlab-users] How to make ipk/deb package for IgH EtherCAT
Master?
Hi everyone, here is my scenario:
* I want to cross-compile the IgH EtherCAT Master on powerful linux
host, as it is faster!
* (And I finished cross-compile on host: "make, make modules")
* Then I want to make an .ipk or .deb packages, to be copied/installed
on embedded target.
* So how to make .ipk/.deb package for IgH EtherCAT Master?
Thanks!
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20171204/1ff56d99/attachment-0004.htm>
More information about the Etherlab-users
mailing list