r3676 - trunk/kernel/source/linux-2.6/debian
Christian T. Steigies
cts at costa.debian.org
Tue Aug 2 09:58:49 UTC 2005
Author: cts
Date: 2005-08-02 09:58:49 +0000 (Tue, 02 Aug 2005)
New Revision: 3676
Modified:
trunk/kernel/source/linux-2.6/debian/Makefile
Log:
cross-compiling for m68k
Modified: trunk/kernel/source/linux-2.6/debian/Makefile
===================================================================
--- trunk/kernel/source/linux-2.6/debian/Makefile 2005-08-02 09:19:31 UTC (rev 3675)
+++ trunk/kernel/source/linux-2.6/debian/Makefile 2005-08-02 09:58:49 UTC (rev 3676)
@@ -15,11 +15,17 @@
#
# 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 @@
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
More information about the Kernel-svn-changes
mailing list