cross-compiling for m68k

svn path=/trunk/kernel/source/linux-2.6/; revision=3676
This commit is contained in:
Christian T. Steigies 2005-08-02 09:58:49 +00:00
parent 35c23e267d
commit 7214a4aa11
1 changed files with 10 additions and 0 deletions

10
debian/Makefile vendored
View File

@ -15,11 +15,17 @@ debnum := -$(abiname)
#
# These variables control the behaviour of make-kpkg
#
# enable cross-compiling for m68k
#DEB_HOST_ARCH := m68k
#
DEBIAN_UPSTREAM_VERSION := $(version)
ifeq (,$(DEB_HOST_ARCH))
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
endif
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
cross_compile := $(DEB_HOST_ARCH)
endif
export version debnum DEBIAN_UPSTREAM_VERSION DEBIAN_STEM
karch := $(DEB_HOST_ARCH)
@ -61,6 +67,10 @@ kpkg_build_cmd += --stem linux
ifdef build_subarch
kpkg_build_cmd += --subarch $(build_subarch)
endif
ifeq ($(cross_compile),m68k)
kpkg_headers_cmd += --arch m68k --cross_compile m68k-linux
kpkg_build_cmd += --arch m68k --cross_compile m68k-linux
endif
ifdef headers_subarch
kpkg_headers_cmd += --subarch $(headers_subarch)
endif