diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-08-17 10:14:25 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-08-17 10:14:25 +0000 |
commit | 7f36797bb780104b973000f1cf48ff8f611e12e5 (patch) | |
tree | 2427308be2c8f98e7caa2d0cd5aad0687e1023c5 | |
parent | b585d761c780ad70cbd8c80b53e9d1cf492bd3e9 (diff) | |
download | mtk-20170518-7f36797bb780104b973000f1cf48ff8f611e12e5.zip mtk-20170518-7f36797bb780104b973000f1cf48ff8f611e12e5.tar.gz mtk-20170518-7f36797bb780104b973000f1cf48ff8f611e12e5.tar.bz2 |
ensure CONTROL directory is created (#5683)
SVN-Revision: 17293
-rw-r--r-- | include/kernel.mk | 1 | ||||
-rw-r--r-- | include/package-ipkg.mk | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/kernel.mk b/include/kernel.mk index 20377af..cb62e63 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -77,6 +77,7 @@ define ModuleAutoLoad $(3) \ if [ -n "$$$$$$$$modules" ]; then \ mkdir -p $(2)/etc/modules.d; \ + mkdir -p $(2)/CONTROL; \ echo "#!/bin/sh" > $(2)/CONTROL/postinst; \ echo "[ -z \"\$$$$$$$$IPKG_INSTROOT\" ] || exit 0" >> $(2)/CONTROL/postinst; \ echo ". /etc/functions.sh" >> $(2)/CONTROL/postinst; \ diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 4af052c..72d6d59 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -90,6 +90,7 @@ ifeq ($(DUMP),) $$(IPKG_$(1)): $(STAGING_DIR)/etc/ipkg.conf $(STAMP_BUILT) $$(IDIR_$(1))/CONTROL/control $(call Package/$(1)/install,$$(IDIR_$(1))) + mkdir -p $$(IDIR_$(1))/CONTROL mkdir -p $(PACKAGE_DIR) -find $$(IDIR_$(1)) -name 'CVS' -o -name '.svn' -o -name '.#*' | $(XARGS) rm -rf $(RSTRIP) $$(IDIR_$(1)) |