Hi everyone, I tried to rebuild the kernel this way:
cd target
gmake V=99 TOPDIR=~/freewrt linux-rebuild
and got some errors:
gmake[5]: Entering directory
`/var/home/technik/freewrt/build_mipsel/linux-2.4-brcm/linux-2.4.32/arch/mips/boot'
Makefile:57: /home/technik/freewrt/Rules.make: No such file or directory
gmake[5]: *** No rule to make target `/home/technik/freewrt/Rules.make'.
Stop.
same on prepare:
cd target
gmake V=99 TOPDIR=~/freewrt linux-prepare
[...]
if [ ! -f /home/technik/freewrt/include/asm-mips/offset.h ]; then \
touch /home/technik/freewrt/include/asm-mips/offset.h; \
fi;
touch: cannot touch `/home/technik/freewrt/include/asm-mips/offset.h':
No such file or directory
gmake[4]: *** [archdep] Error 1
[...]
This seems to be because the kernel Makefile tries to set a "TOPDIR"
variable for its own and cannot overwrite the one already set by the
calling script.
It helped to patch the kernel-Makefile this way:
---
/var/home/technik/freewrt/build_mipsel/linux-2.4-brcm/linux-2.4.32/Makefile.orig
2006-07-04 13:01:06.000000000 +0200
+++
/var/home/technik/freewrt/build_mipsel/linux-2.4-brcm/linux-2.4.32/Makefile
2006-07-04 13:13:44.000000000 +0200
@@ -11,7 +11,8 @@
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi ; fi)
-TOPDIR := $(shell /bin/pwd)
+override TOPDIR := $(shell /bin/pwd)
+MAKE := $(MAKE) TOPDIR=$(TOPDIR)
HPATH = $(TOPDIR)/include
FINDHPATH = $(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi $(HPATH)/net
$(HPATH)/math-emu
but I don't think this is the way we should go, so maybe it makes more
sense to rename "TOPDIR" to something like "FREEWRT_HOME" inside the
FreeWRT build system.
Any better solutions?
/Markus
signature.asc
Description: OpenPGP digital signature
_______________________________________________ freewrt-developers mailing list [email protected] https://www.freewrt.org/lists/listinfo/freewrt-developers
