base-files: fix Build/Compile override handling, fixes ar7 compile
authorFelix Fietkau <nbd@openwrt.org>
Sun, 6 Mar 2011 22:36:42 +0000 (22:36 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 6 Mar 2011 22:36:42 +0000 (22:36 +0000)
SVN-Revision: 25911

package/base-files/Makefile

index 1d1a07fb20b69214cc49a9a605387147da3cf326..61296b05ef53be926979c8ddbdc3d49b04eabba4 100644 (file)
@@ -324,9 +324,6 @@ define Build/Prepare
        mkdir -p $(PKG_BUILD_DIR)
 endef
 
-define Build/Compile/Default
-endef
-
 LIBGCC_A=$(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc_pic.a)
 LIBGCC_MAP=$(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.map)
 BUILD_LIBGCC:=$(if $(CONFIG_avr32)$(CONFIG_m68k),,$(PKG_BUILD_DIR)/libgcc_s.so.*)
@@ -375,11 +372,11 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
   endif
 endif
 
-define Build/Compile
-       $(call Build/Compile/Default)
+define Build/Compile/Default
        $(call Build/Compile/libgcc)
        $(call Build/Compile/$(LIBC))
 endef
+Build/Compile = $(Build/Compile/Default)
 
 define Package/base-files/install
        $(CP) ./files/* $(1)/