move uClibc/files/config.* to uClibc/config/* and allow board-specific config overrides

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4041 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2006-06-21 14:04:12 +00:00
parent 913e09274d
commit e9cf67bfb2
5 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,5 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/target.mk
PKG_NAME:=uClibc PKG_NAME:=uClibc
PKG_VERSION:=0.9.28 PKG_VERSION:=0.9.28
@ -29,7 +30,11 @@ UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \
define Build/Prepare define Build/Prepare
$(call Build/Prepare/Default) $(call Build/Prepare/Default)
$(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(PKG_BUILD_DIR)/Rules.mak $(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(PKG_BUILD_DIR)/Rules.mak
$(CP) ./files/config.$(ARCH) $(PKG_BUILD_DIR)/.config if [ -e config/$(ARCH).$(BOARD) ]; then \
$(CP) config/$(ARCH).$(BOARD) $(PKG_BUILD_DIR)/.config; \
else \
$(CP) config/$(ARCH) $(PKG_BUILD_DIR)/.config; \
fi
$(SED) 's,^KERNEL_SOURCE=.*,KERNEL_SOURCE=\"$(LINUX_HEADERS_DIR)\",g' \ $(SED) 's,^KERNEL_SOURCE=.*,KERNEL_SOURCE=\"$(LINUX_HEADERS_DIR)\",g' \
$(PKG_BUILD_DIR)/.config $(PKG_BUILD_DIR)/.config
ifeq ($(CONFIG_LARGEFILE),y) ifeq ($(CONFIG_LARGEFILE),y)