X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=package%2FMakefile;h=e0bd75ba7f6bfc72e6740552b52cce438c6cbee9;hb=9f422eba7c1a297a96a03b1cce05fa3cb9d71a4a;hp=aa5d52251625a4b7a2febe351e3d0e5f3c4cea7a;hpb=ce6c1c6c84dd2f45e1117443f2b48882d48311dc;p=openwrt%2Fopenwrt.git diff --git a/package/Makefile b/package/Makefile index aa5d522516..e0bd75ba7f 100644 --- a/package/Makefile +++ b/package/Makefile @@ -20,8 +20,11 @@ ifneq ($(IGNORE_ERRORS),) package-n-filter := $(filter-out $(package-y) $(package-m),$(package-)) package-ignore-errors := $(filter n m y,$(IGNORE_ERRORS)) package-ignore-errors := $(if $(package-ignore-errors),$(package-ignore-errors),n m) - $(curdir)/builddirs-ignore-download := $(foreach m,$(package-ignore-errors),$(package-$(m)-filter)) - $(curdir)/builddirs-ignore-compile := $(foreach m,$(package-ignore-errors),$(package-$(m)-filter)) + package-ignore-subdirs := $(sort $(foreach m,$(package-ignore-errors),$(package-$(m)-filter))) + $(curdir)/builddirs-ignore-download := $(package-ignore-subdirs) + $(curdir)/builddirs-ignore-compile := $(package-ignore-subdirs) + $(curdir)/builddirs-ignore-host-download := $(package-ignore-subdirs) + $(curdir)/builddirs-ignore-host-compile := $(package-ignore-subdirs) endif ifdef CONFIG_USE_MKLIBS @@ -117,8 +120,10 @@ $(curdir)/install: $(TMP_DIR)/.build $(curdir)/system/opkg/host/install IPKG_INSTROOT=$(TARGET_DIR) $$(which bash) ./etc/rc.common $$script enable; \ done || true \ ) + $(if $(SOURCE_DATE_EPOCH),sed -i "s/Installed-Time: .*/Installed-Time: $(SOURCE_DATE_EPOCH)/" $(TARGET_DIR)/usr/lib/opkg/status) @-find $(TARGET_DIR) -name CVS | $(XARGS) rm -rf @-find $(TARGET_DIR) -name .svn | $(XARGS) rm -rf + @-find $(TARGET_DIR) -name .git | $(XARGS) rm -rf @-find $(TARGET_DIR) -name '.#*' | $(XARGS) rm -f rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.postinst* rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.prerm* @@ -137,9 +142,9 @@ endif PACKAGE_SUBDIRS=. ifneq ($(CONFIG_PER_FEED_REPO),) ifneq ($(CONFIG_PER_FEED_REPO_ADD_DISABLED),) - PACKAGE_SUBDIRS=base $(FEEDS_AVAILABLE) + PACKAGE_SUBDIRS=base kernel $(FEEDS_AVAILABLE) else - PACKAGE_SUBDIRS=base $(FEEDS_ENABLED) + PACKAGE_SUBDIRS=base kernel $(FEEDS_ENABLED) endif endif