put LINUX_KARCH in .kernel.mk
authorFelix Fietkau <nbd@openwrt.org>
Tue, 10 Oct 2006 13:41:00 +0000 (13:41 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 10 Oct 2006 13:41:00 +0000 (13:41 +0000)
SVN-Revision: 5013

openwrt/include/kernel-build.mk
openwrt/include/kernel.mk
openwrt/include/package.mk

index c5b3668481b2e24c3af435be54b0dc004dba4d92..6aefe0b891d8d914a0c2350055f1199fdd5f55fd 100644 (file)
@@ -17,6 +17,15 @@ KERNEL_IPKG:=$(KERNEL_BUILD_DIR)/kernel_$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEAS
 TARGETS += $(KERNEL_IPKG)
 INSTALL_TARGETS += $(KERNEL_IPKG)
 
+LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \
+       -e 's/mipsel/mips/' \
+       -e 's/mipseb/mips/' \
+       -e 's/powerpc/ppc/' \
+       -e 's/sh[234]/sh/' \
+       -e 's/armeb/arm/' \
+)
+
+
 $(TARGETS): $(PACKAGE_DIR)
 
 $(PACKAGE_DIR):
@@ -98,6 +107,7 @@ $(TOPDIR)/.kernel.mk: $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/Makefile
        echo "CONFIG_KERNEL:=$(KERNEL)" >> $@
        echo "CONFIG_LINUX_VERSION:=$(LINUX_VERSION)" >> $@
        echo "CONFIG_LINUX_RELEASE:=$(LINUX_RELEASE)" >> $@
+       echo "CONFIG_LINUX_KARCH:=$(LINUX_KARCH)" >> $@
 
 pkg-install: FORCE
        @for pkg in $(INSTALL_TARGETS); do \
index bd558ceec731f4335940253ea59c05da5b126f77..580e3951d12d89af63605f8734920fcaaae4dcff 100644 (file)
@@ -17,6 +17,7 @@ else
   ifeq ($(CONFIG_BOARD)-$(CONFIG_KERNEL),$(BOARD)-$(KERNEL))
      LINUX_VERSION:=$(CONFIG_LINUX_VERSION)
      LINUX_RELEASE:=$(CONFIG_LINUX_RELEASE)
+     LINUX_KARCH:=$(CONFIG_LINUX_KARCH)
   else
   # oops, old .kernel.config; rebuild it (hiding the misleading errors this produces)
     $(warning rebuilding .kernel.mk)
@@ -30,14 +31,6 @@ else
     LINUX_KMOD_SUFFIX=o
   endif
 
-  LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \
-       -e 's/mipsel/mips/' \
-       -e 's/mipseb/mips/' \
-       -e 's/powerpc/ppc/' \
-       -e 's/sh[234]/sh/' \
-       -e 's/armeb/arm/' \
-  )
-
   KERNELNAME=
   ifneq (,$(findstring x86,$(BOARD)))
     KERNELNAME="bzImage"
index 069e28b84f34a8681cb7df1fe55f4fc2a9050df7..e9319241344d68cd9b5c843efb41d004274310db 100644 (file)
@@ -16,7 +16,7 @@ define Build/DefaultTargets
   ifeq ($(DUMP),)
     ifeq ($(CONFIG_AUTOREBUILD),y)
       _INFO:=
-      ifneq ($(shell $(SCRIPT_DIR)/timestamp.pl -p $(PKG_BUILD_DIR) .),$(PKG_BUILD_DIR))
+      ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p $(PKG_BUILD_DIR) .),$(PKG_BUILD_DIR))
         _INFO+=$(subst $(TOPDIR)/,,$(PKG_BUILD_DIR))
         $(PKG_BUILD_DIR)/.prepared: package-clean
       endif