12.06.2010 13:32, KP Kirchdoerfer пишет: > Am Samstag, 12. Juni 2010 10:22:39 schrieb Andrew: > >> 12.06.2010 03:51, KP Kirchdoerfer пишет: >> >>> HI; >>> >>> there is something with initrd for bering-uclibc4 >>> >>> I just an error >>> Could not open file /opt/b26nitro/source/initrd/files.floppy >>> while trying to build the initrd package. >>> >>> kp >>> >> Strange, this file is generated by buildtool.mk automatically: >> >> BT_STAGING_DIR=$(BT_STAGING_DIR) BT_KERNEL_RELEASE=$(BT_KERNEL_VER) \ >> sh $(BT_TOOLS_DIR)/getdep.sh floppy fat>mod.floppy >> cat mod.floppy|sed 's/[a-z]*\/[a-z_/-]*\///g; s/\.ko//g; s/ >> /\n/g'>$(INITRD_TARGET_DIR)/boot/etc/modules.floppy >> -rm -f files.floppy >> (BT_KERNEL_RELEASE=$(BT_KERNEL_VER); for i in `cat mod.floppy`; do echo >> -e "<File>\n\tSource\t= lib/modules/$$BT_KERNEL_RELEASE/$$i\n\t\ >> Filename\t= lib/modules/$$(echo $$i|sed 's/[a-z]*\/[a-z_/-]*\///g')\n\t\ >> Type\t= binary\n\tType\t= module\n\tPermissions\t= >> 644\n</File>">>files.floppy; done) >> > Even with a fresh buildenv it doesn't work; the cause seems to be the invalid > option for "sort" > > "...|sort -r -V|head -n 1` \ > sh /opt/b26nitro/tools/getdep.sh ehci-hcd uhci-hcd > ohci-hcd usb-storage sd_mod vfat>mod.usb > sort: invalid option -- V" > > > > kp > > This line wasn't changed till 1st release. And sorting option -V is available approx 2 years in coreutils ( http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=4c9fae4e97d95a9f89d1399a8aeb03051f0fec96 ).
I looked at this code - it's really unnecessary, it's enough to just place BT_KERNEL_DIR (i make this code in early version of buildenv, that returns kernel version without last number - trivial version number; later I fixed this - but in initrd makefile code remains). Try now, it is fixed. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ leaf-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/leaf-devel
