On Friday, January 31, 2014 1:23 PM, Gilles Chanteperdrix <[email protected]> wrote: On 01/30/2014 08:57 PM, Paul wrote: > On Thursday 30 January 2014, Gilles Chanteperdrix wrote: >> On 01/30/2014 05:24 PM, Paul wrote: >>> On Wednesday 29 January 2014, Gilles Chanteperdrix wrote: >>>> On 01/29/2014 08:05 PM, Gilles Chanteperdrix wrote: >>>>> On 01/29/2014 03:36 PM, Huub Van Niekerk wrote: >>>>>> Hi, >>>>>> >>>>>> I'm trying to build the xenomai libs on Ubuntu 12.04 armhf >>>>>> according to >>>>>> http://www.xenomai.org/index.php/Building_Debian_packages. It >>>>>> goes wrong with a message "cannot create >>>>>> <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xeno >>>>>> ma i.rules: Directory nonexistent". Any idea what the cause of >>>>>> this is ? I did it before on x86, which went great. >>>>> >>>>> I do not see why this even works on x86... Please try the >>>>> following patch: >>>> >>>> Please try this one instead: >>>> >>>> diff --git a/debian/libxenomai1.install >>>> b/debian/libxenomai1.install index 093956b..9c732f5 100644 >>>> --- a/debian/libxenomai1.install >>>> +++ b/debian/libxenomai1.install >>>> @@ -1 +1,2 @@ >>>> +etc/udev/rules.d/* >>>> usr/lib/*.so.* >>>> diff --git a/debian/rules b/debian/rules >>>> index 3915fd6..c842986 100755 >>>> --- a/debian/rules >>>> +++ b/debian/rules >>>> @@ -61,14 +61,12 @@ install: build >>>> dh_testroot >>>> dh_prep >>>> dh_installdirs >>>> + mkdir -p $(CURDIR)/debian/tmp/etc/udev/rules.d >>> >>> This shouldn't be necessary as etc/udev/rules.d is listed in >>> libxenomai1.dirs - dh_installdirs uses this to create the target >>> dirctories. >>> >>>> $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/ >>>> dh_install --sourcedir=$(CURDIR)/debian/tmp >>>> # xeno-config should be only in libxenomai-dev >>>> rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config >>>> rm -f >>>> $(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1 >>>> - for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \ >>>> - cat $$f >> >>>> $(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \ - done >>> >>> This is needed so that the udev rules get copied across. >> >> If the directory /etc/udev/rules.d exists, Xenomai's "make install", >> should copy the rules itself. > > The default install is in debian/tmp where as udev rules should be > installed in debian/libxenomai1 so that they end up in the correct > package. The attached patch aims to do just this and also removes a > symlink created when installing the package.
I see there exist some dh_installudev and dh_installmodules to take care of the udev rules and modprobe snnippet, maybe we could use that? -- Gilles. I just tested a cross-compile to armhf on x86. As said previously, debuild for x86 goes well. The cross-compile using "debuild -eCROSS_COMPILE=arm-none-linux-gnueabihf- -aarmhf -uc -us" results in the same error as native compilation on armhf. Using "debuild -eCROSS_COMPILE=arm-none-linux-gnueabihf- -uc -us" (so without -aarmhf) results in the build of x86 packages. So as far as I can there's indeed a bug in debuild for armhf. _______________________________________________ Xenomai mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai
