mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 14:51:06 +02:00
cleanup; change base-files build directory
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3858 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c1bae219c1
commit
83ce4604cc
@ -2,6 +2,16 @@
|
|||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
ifneq ($(DUMP),1)
|
||||||
|
include $(BUILD_DIR)/kernel.mk
|
||||||
|
include $(TOPDIR)/target/linux/rules.mk
|
||||||
|
TARGET:=-$(BOARD)-$(KERNEL)
|
||||||
|
BUILD_DIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
|
||||||
|
|
||||||
|
UCLIBC_VERSION:=${shell cat $(STAGING_DIR)/uclibc_version}
|
||||||
|
LIBGCC_VERSION:=${shell cat $(STAGING_DIR)/gcc_version}
|
||||||
|
endif
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=8
|
PKG_RELEASE:=8
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/base-files
|
PKG_BUILD_DIR:=$(BUILD_DIR)/base-files
|
||||||
@ -13,15 +23,6 @@ endif
|
|||||||
|
|
||||||
include $(TOPDIR)/package/rules.mk
|
include $(TOPDIR)/package/rules.mk
|
||||||
|
|
||||||
ifneq ($(DUMP),1)
|
|
||||||
include $(BUILD_DIR)/kernel.mk
|
|
||||||
include $(TOPDIR)/target/linux/rules.mk
|
|
||||||
TARGET:=-$(BOARD)-$(KERNEL)
|
|
||||||
|
|
||||||
UCLIBC_VERSION:=${shell cat $(STAGING_DIR)/uclibc_version}
|
|
||||||
LIBGCC_VERSION:=${shell cat $(STAGING_DIR)/gcc_version}
|
|
||||||
endif
|
|
||||||
|
|
||||||
CONFIG_PACKAGE_base-files$(TARGET):=CONFIG_PACKAGE_base-files
|
CONFIG_PACKAGE_base-files$(TARGET):=CONFIG_PACKAGE_base-files
|
||||||
|
|
||||||
define Package/base-files$(TARGET)
|
define Package/base-files$(TARGET)
|
||||||
@ -99,9 +100,6 @@ $(call Package/base-files$(TARGET)/install-$(BOARD),$(1))
|
|||||||
ln -sf /proc/mounts $(1)/etc/mtab
|
ln -sf /proc/mounts $(1)/etc/mtab
|
||||||
rm -f $(1)/var
|
rm -f $(1)/var
|
||||||
ln -sf /tmp $(1)/var
|
ln -sf /tmp $(1)/var
|
||||||
-find $(1) -type d -name CVS | xargs rm -rf
|
|
||||||
-find $(1) -type d -name .svn | xargs rm -rf
|
|
||||||
-find $(1) -name '.#*' | xargs rm -f
|
|
||||||
mkdir -p $(1)/etc
|
mkdir -p $(1)/etc
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -154,8 +154,9 @@ define BuildPackage
|
|||||||
$$(IPKG_$(1)): $$(IDIR_$(1))/CONTROL/control $(PKG_BUILD_DIR)/.built
|
$$(IPKG_$(1)): $$(IDIR_$(1))/CONTROL/control $(PKG_BUILD_DIR)/.built
|
||||||
$(call Package/$(1)/install,$$(IDIR_$(1)))
|
$(call Package/$(1)/install,$$(IDIR_$(1)))
|
||||||
mkdir -p $(PACKAGE_DIR)
|
mkdir -p $(PACKAGE_DIR)
|
||||||
find $$(IDIR_$(1)) -name CVS | xargs rm -rf
|
-find $$(IDIR_$(1)) -name CVS | xargs rm -rf
|
||||||
find $$(IDIR_$(1)) -name .svn | xargs rm -rf
|
-find $$(IDIR_$(1)) -name .svn | xargs rm -rf
|
||||||
|
-find $$(IDIR_$(1)) -name '.#*' | xargs rm -f
|
||||||
$(RSTRIP) $$(IDIR_$(1))
|
$(RSTRIP) $$(IDIR_$(1))
|
||||||
$(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR)
|
$(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user