ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] RE: About building busybox-1.11.2 on Fedora 14


From: Rick Foos
Subject: [Ltib] RE: About building busybox-1.11.2 on Fedora 14
Date: Fri, 22 Apr 2011 17:17:51 -0500

Please update busybox version, and/or add patch for Makefile.

Having problem with Makefile in busybox-1.11.2.

Occurs whenever you make menuconfig in busybox. Hidden when first
build doesn't do configure, but after ./ltib --configure busybox fails
to build. Had this problem before, on other builds, and finally took
some time to fix it...

make -C /home/rick/lpc3250/ltib/rpm/BUILD/busybox-1.11.2 menuconfig
'HOSTCC=ccache /usr/bin/gcc -B/usr/bin/'
Makefile:421: *** mixed implicit and normal rules.  Stop.

The two changes needed were identified, and the fixes backported from
busybox-1.18.4/Makefile

Thanks,
Rick
address@hidden

Makefile:421: *** mixed implicit and normal rules.  Stop.

The two changes needed were identified, and the fixes backported from
busybox-1.18.4/Makefile

diff --exclude CVS -uNr busybox-1.11.2/Makefile busybox-1.11.2.modified/Makefile
--- busybox-1.11.2/Makefile     2011-04-22 16:52:55.435379155 -0500
+++ busybox-1.11.2.modified/Makefile    2011-04-22 17:01:25.428207714 -0500
@@ -418,7 +418,12 @@
 -include $(srctree)/arch/$(ARCH)/Makefile
 export KBUILD_DEFCONFIG

-config %config: scripts_basic outputmakefile FORCE
+config: scripts_basic outputmakefile FORCE
+       $(Q)mkdir -p include
+       $(Q)$(MAKE) $(build)=scripts/kconfig $@
+       $(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease
+
+%config: scripts_basic outputmakefile FORCE
        $(Q)mkdir -p include
        $(Q)$(MAKE) $(build)=scripts/kconfig $@
        $(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease
@@ -431,7 +436,7 @@
 ifeq ($(KBUILD_EXTMOD),)
 # Additional helpers built in scripts/
 # Carefully list dependencies so we do not try to build scripts twice
-# in parrallel
+# in parallel
 PHONY += scripts
 scripts: scripts_basic include/config/MARKER
        $(Q)$(MAKE) $(build)=$(@)
@@ -1257,9 +1262,13 @@
        $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)

 # Modules
-/ %/: prepare scripts FORCE
+%/: prepare scripts FORCE
        $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
        $(build)=$(build-dir)
+/: prepare scripts FORCE
+       $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
+       $(build)=$(build-dir)
+
 %.ko: prepare scripts FORCE
        $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1)   \
        $(build)=$(build-dir) $(@:.ko=.o)

:

Attachment: busybox-1.11.2-makefile-implicit-rules.patch
Description: Binary data

Attachment: busybox-1.11.2-makefile-implicit-rules.patch.md5
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]