From 9f00cacbccf02db56cb4e134a8dcecb6d13205d9 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Mon, 30 Jan 2006 03:05:50 +0000 Subject: linux: fix missing HOST_CC_ARCH in module compilation in kernel/module all - define TARGET_KERNEL_CC_ARCH to define arch specific compiler options in machine.conf. The default for the kernel is "" (empty), although it should probably be TARGET_CC_ARCH in the future. The default for modules is TARGET_CC_ARCH --- packages/linux/ixp4xx-kernel.inc | 6 ------ packages/linux/nslu2-kernel.inc | 6 ------ 2 files changed, 12 deletions(-) (limited to 'packages/linux') diff --git a/packages/linux/ixp4xx-kernel.inc b/packages/linux/ixp4xx-kernel.inc index b9d09c0565..29b32e80d8 100644 --- a/packages/linux/ixp4xx-kernel.inc +++ b/packages/linux/ixp4xx-kernel.inc @@ -171,12 +171,6 @@ CMDLINE = "${CMDLINE_ROOT}" CMDLINE += "${CMDLINE_DEBUG}" CMDLINE += "${CMDLINE_CONSOLE}" -# Add the architecture compiler flags to KERNEL_CC and KERNEL_LD as -# required. Notice that this has to be done for each separately built -# module as well! -KERNEL_CC += "${TARGET_CC_KERNEL_ARCH}" -KERNEL_LD += "${TARGET_LD_KERNEL_ARCH}" - # Set EXTRAVERSION and LOCALVERSION to "" so that the kernel version # remains pinned to the x.y.z form, also turn off the directory # printing which provides almost all the output of an incremental build. diff --git a/packages/linux/nslu2-kernel.inc b/packages/linux/nslu2-kernel.inc index ee0d233ac2..d30bcf77ce 100644 --- a/packages/linux/nslu2-kernel.inc +++ b/packages/linux/nslu2-kernel.inc @@ -172,12 +172,6 @@ CMDLINE_ROOT ?= "root=/dev/mtdblock4 rw rootfstype=jffs2 mem=32M@0x00000000 init CMDLINE_DEBUG ?= "" CMDLINE = "${CMDLINE_ROOT} ${CMDLINE_KERNEL_OPTIONS} ${CMDLINE_DEBUG} ${CMDLINE_CONSOLE}" -# Add the architecture compiler flags to KERNEL_CC and KERNEL_LD as -# required. Notice that this has to be done for each separately built -# module as well! -KERNEL_CC += "${TARGET_CC_KERNEL_ARCH}" -KERNEL_LD += "${TARGET_LD_KERNEL_ARCH}" - # Set EXTRAVERSION and LOCALVERSION to "" so that the kernel version # remains pinned to the x.y.z form, also turn off the directory # printing which provides almost all the output of an incremental build. -- cgit v1.2.3