Hi;
make[3] -C package/mtd compile
make[4]: Entering directory
`/usr/src/kamikaze_8.09.1/build_dir/linux-ixp4xx_generic/mtd'
armeb-linux-uclibcgnueabi-gcc -Os -pipe -march=armv5te -mtune=xscale
-funit-at-a-time -mabi=aapcs-linux -fhonour-copts -msoft-float
-Dtarget_ixp4xx=1 -Wall -c -o mtd.o mtd.c
rstrip.sh:
/usr/src/kamikaze_8.09.1/build_dir/linux-ixp4xx_generic/packages/ipkg/kmod-a
rptables/lib/modules/2.6.32/arpt_mangle.ko:relocatable
mtd.c: In function 'do_reboot':
mtd.c:375: error: 'SYS_reboot' undeclared (first use in this function)
mtd.c:375: error: (Each undeclared identifier is reported only once
mtd.c:375: error: for each function it appears in.)
make[4]: *** [mtd.o] Error 1
make[4]: Leaving directory
`/usr/src/kamikaze_8.09.1/build_dir/linux-ixp4xx_generic/mtd'
make[3]: ***
[/usr/src/kamikaze_8.09.1/build_dir/linux-ixp4xx_generic/mtd/.built] Error 2
make[2]: *** [package/mtd/compile] Error 2
make[2]: *** Waiting for unfinished jobs....
To solve that, I have to change mtd.c as follows:
--- package/mtd/src/mtd.c 2008-10-02 14:32:16.000000000 -0400
+++ build_dir/linux-ixp4xx_generic/mtd/mtd.c 2009-12-17
06:06:15.383659691 -0500
@@ -372,7 +372,11 @@
sleep(2);
/* if we're still alive at this point, force the kernel to reboot */
+ #ifdef LIBC
syscall(SYS_reboot,LINUX_REBOOT_MAGIC1,LINUX_REBOOT_MAGIC2,LINUX_REBOOT_CMD_
RESTART,NULL);
+ #else
+
syscall(__NR_reboot,LINUX_REBOOT_MAGIC1,LINUX_REBOOT_MAGIC2,LINUX_REBOOT_CMD
_RESTART,NULL);
+ #endif
}
int main (int argc, char **argv)
Is this fix correct and already in the kamikaze-8.09.2-rcX ?
Regards,
KH
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel