|
|
@ -37,7 +37,7 @@ endif
|
|
|
|
define Package/base-files
|
|
|
|
define Package/base-files
|
|
|
|
SECTION:=base
|
|
|
|
SECTION:=base
|
|
|
|
CATEGORY:=Base system
|
|
|
|
CATEGORY:=Base system
|
|
|
|
DEPENDS:=+netifd +libc +procd +jsonfilter +SIGNATURE_CHECK:usign +SIGNATURE_CHECK:openwrt-keyring +NAND_SUPPORT:ubi-utils +fstools +fwtool
|
|
|
|
DEPENDS:=+netifd +libc +procd +jsonfilter +SIGNED_PACKAGES:usign +SIGNED_PACKAGES:openwrt-keyring +NAND_SUPPORT:ubi-utils +fstools +fwtool
|
|
|
|
TITLE:=Base filesystem for OpenWrt
|
|
|
|
TITLE:=Base filesystem for OpenWrt
|
|
|
|
URL:=http://openwrt.org/
|
|
|
|
URL:=http://openwrt.org/
|
|
|
|
VERSION:=$(PKG_RELEASE)-$(REVISION)
|
|
|
|
VERSION:=$(PKG_RELEASE)-$(REVISION)
|
|
|
@ -116,6 +116,12 @@ ifdef CONFIG_SIGNED_PACKAGES
|
|
|
|
$(STAGING_DIR_HOST)/bin/ucert -I -c $(BUILD_KEY).ucert -p $(BUILD_KEY).pub -s $(BUILD_KEY)
|
|
|
|
$(STAGING_DIR_HOST)/bin/ucert -I -c $(BUILD_KEY).ucert -p $(BUILD_KEY).pub -s $(BUILD_KEY)
|
|
|
|
|
|
|
|
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Package/base-files/install-key
|
|
|
|
|
|
|
|
mkdir -p $(1)/etc/opkg/keys
|
|
|
|
|
|
|
|
$(CP) $(BUILD_KEY).pub $(1)/etc/opkg/keys/`$(STAGING_DIR_HOST)/bin/usign -F -p $(BUILD_KEY).pub`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NAND_SUPPORT),)
|
|
|
|
ifeq ($(CONFIG_NAND_SUPPORT),)
|
|
|
@ -124,16 +130,9 @@ ifeq ($(CONFIG_NAND_SUPPORT),)
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
ifdef CONFIG_INSTALL_LOCAL_KEY
|
|
|
|
|
|
|
|
define Package/base-files/install-local-key
|
|
|
|
|
|
|
|
mkdir -p $(1)/etc/opkg/keys
|
|
|
|
|
|
|
|
$(CP) $(BUILD_KEY).pub $(1)/etc/opkg/keys/`$(STAGING_DIR_HOST)/bin/usign \
|
|
|
|
|
|
|
|
-F -p $(BUILD_KEY).pub`
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Package/base-files/install
|
|
|
|
define Package/base-files/install
|
|
|
|
$(CP) ./files/* $(1)/
|
|
|
|
$(CP) ./files/* $(1)/
|
|
|
|
$(Package/base-files/install-local-key)
|
|
|
|
$(Package/base-files/install-key)
|
|
|
|
$(Package/base-files/nand-support)
|
|
|
|
$(Package/base-files/nand-support)
|
|
|
|
if [ -d $(GENERIC_PLATFORM_DIR)/base-files/. ]; then \
|
|
|
|
if [ -d $(GENERIC_PLATFORM_DIR)/base-files/. ]; then \
|
|
|
|
$(CP) $(GENERIC_PLATFORM_DIR)/base-files/* $(1)/; \
|
|
|
|
$(CP) $(GENERIC_PLATFORM_DIR)/base-files/* $(1)/; \
|
|
|
|