debian/rules.real: Specify CROSS_COMPILE.
svn path=/dists/trunk/linux-2.6/; revision=6040
This commit is contained in:
parent
af103c7938
commit
a3709b14c1
|
@ -42,13 +42,18 @@ endif
|
|||
ifdef KPKG_SUBARCH
|
||||
kpkg_image += --subarch '$(KPKG_SUBARCH)'
|
||||
endif
|
||||
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
|
||||
kpkg_image += --cross-compile='$(DEB_HOST_GNU_TYPE)'
|
||||
endif
|
||||
setup_env := env -u ABINAME -u ARCH -u SUBARCH -u FLAVOUR -u VERSION -u LOCALVERSION
|
||||
setup_makeflags =
|
||||
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
|
||||
setup_makeflags += CROSS_COMPILE="$(DEB_HOST_GNU_TYPE)-"
|
||||
ifdef COMPILER
|
||||
setup_makeflags += CC="$$$$(CROSS_COMPILE)$(COMPILER)"
|
||||
setup_makeflags += CC="$(DEB_HOST_GNU_TYPE)-$(COMPILER)"
|
||||
endif
|
||||
kpkg_image += --cross-compile='$(DEB_HOST_GNU_TYPE)'
|
||||
else
|
||||
ifdef COMPILER
|
||||
setup_makeflags += CC="$(COMPILER)"
|
||||
endif
|
||||
endif
|
||||
setup_env += MAKEFLAGS='$(setup_makeflags)'
|
||||
|
||||
|
|
Loading…
Reference in New Issue