From 7214a4aa11268e06b963b69bb34a8b3cbf9528ed Mon Sep 17 00:00:00 2001 From: "Christian T. Steigies" Date: Tue, 2 Aug 2005 09:58:49 +0000 Subject: [PATCH] cross-compiling for m68k svn path=/trunk/kernel/source/linux-2.6/; revision=3676 --- debian/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/debian/Makefile b/debian/Makefile index 26edbff2f..8faaa5b08 100644 --- a/debian/Makefile +++ b/debian/Makefile @@ -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