X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/6ef6e039c19620a56fb0986d7a4bbb24cf7c76fc..ca94f6cf5e02e5de92ac74f6947b16f1d6c64373:/openwrt/package/base-files/Makefile?ds=sidebyside diff --git a/openwrt/package/base-files/Makefile b/openwrt/package/base-files/Makefile index 9cca04a73..2c202325e 100644 --- a/openwrt/package/base-files/Makefile +++ b/openwrt/package/base-files/Makefile @@ -3,9 +3,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=base-files -PKG_RELEASE:=2 +PKG_RELEASE:=5 PKG_BUILD_DIR:=$(BUILD_DIR)/base-files +REV:=${shell svn info | grep Revision | cut -d ' ' -f 2} +ifeq ($(REV),) +REV:=0 +endif + include $(TOPDIR)/package/rules.mk IDIR_BASE:=$(PKG_BUILD_DIR)/base-files @@ -34,6 +39,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_BASE): $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_BASE) ipkg/$(PKG_NAME).control $(PKG_RELEASE) $(ARCH) cp -a ./default/* $(IDIR_BASE) + $(SED) 's,$$R,r$(REV),g' $(IDIR_BASE)/etc/banner mkdir -p $(IDIR_BASE)/jffs mkdir -p $(IDIR_BASE)/dev mkdir -p $(IDIR_BASE)/proc @@ -76,9 +82,10 @@ $(IPKG_HOTPLUG): package-clean: rm -f $(PACKAGES) -clean: package-clean + +clean-targets: package-clean prepare: -compile: $(PACKAGES) -install: compile +compile-targets: $(PACKAGES) +install-targets: compile mkdir -p $(TARGET_DIR) $(IPKG) install $(PACKAGES)