r3464 - trunk/kernel/source/linux-kernel-2.6.12/debian

Jurij Smakov jurij-guest@costa.debian.org
Tue, 12 Jul 2005 00:35:01 +0000


Author: jurij-guest
Date: 2005-07-12 00:35:00 +0000 (Tue, 12 Jul 2005)
New Revision: 3464

Modified:
   trunk/kernel/source/linux-kernel-2.6.12/debian/Makefile
Log:
Export the MAKEFLAGS command before running the
command rather than sticking it on the command
line, since sparc32 is choking on it otherwise.


Modified: trunk/kernel/source/linux-kernel-2.6.12/debian/Makefile
===================================================================
--- trunk/kernel/source/linux-kernel-2.6.12/debian/Makefile	2005-07-11 19:08:43 UTC (rev 3463)
+++ trunk/kernel/source/linux-kernel-2.6.12/debian/Makefile	2005-07-12 00:35:00 UTC (rev 3464)
@@ -65,7 +65,9 @@
   kpkg_headers_cmd += --subarch $(headers_subarch)
 endif
 ifdef build_makeflags
-  kpkg_build_cmd := MAKEFLAGS=$(build_makeflags) $(kpkg_build_cmd)
+  export_makeflags := export MAKEFLAGS=$(build_makeflags)
+else
+  export_makeflags := true
 endif
 #
 # Note that next variable (kpkg_image_pre) is not going to be evaluated
@@ -126,7 +128,8 @@
 
 install-stamp-$(subarch)-%: build-$(subarch)-% build-stamp-$(subarch)-%
 	cp -al $< install-$*;
-	cd install-$*; \
+	cd install-$*; 		\
+	$(export_makeflags); 	\
 	$(strip $(kpkg_image_pre) $(subst @flavour@,$*,$(kpkg_image_cmd)))
 	cat install-$*/debian/files >> files;
 	rm -rf install-$*;
@@ -221,6 +224,7 @@
 build-stamp-$(subarch)-%: build-$(subarch)-%
 	PATH=$$PWD/bin:$$PATH;					\
 	cd $<;							\
+	$(export_makeflags);					\
 	$(subst @flavour@,$*,$(kpkg_build_cmd));		\
 	$(if $(image_postproc),$(image_postproc),true);		\
 	arch=$$(basename $$(readlink include/asm));		\