diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2020-05-20 08:37:04 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2020-05-20 08:46:13 +0200 |
commit | e55af8a4b0de7ab1a2ebc66032935e8d1521ea52 (patch) | |
tree | 9b4ab1aaa9340bc384e14cbe97d537fe908ec2c6 /package/kernel/bcm63xx-cfe | |
parent | 0727c83a76927f5c4cedd5197f7ffd31835592aa (diff) | |
download | upstream-e55af8a4b0de7ab1a2ebc66032935e8d1521ea52.tar.gz upstream-e55af8a4b0de7ab1a2ebc66032935e8d1521ea52.tar.bz2 upstream-e55af8a4b0de7ab1a2ebc66032935e8d1521ea52.zip |
bcm63xx-cfe: fix build with CONFIG_AUTOREMOVE
When CONFIG_AUTOREMOVE is enabled, CFE binaries are removed before the
image creation.
Install CFE binaries to kernel directory and let autoremove clean the
files in PKG_BUILD_DIR.
Also drop unneeded tar cmd/options.
Fixes: dcee4eaa4214 ("bcm63xx-cfe: add package with CFE RAM binaries")
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'package/kernel/bcm63xx-cfe')
-rw-r--r-- | package/kernel/bcm63xx-cfe/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/package/kernel/bcm63xx-cfe/Makefile b/package/kernel/bcm63xx-cfe/Makefile index f97e07579c..33616cc0d5 100644 --- a/package/kernel/bcm63xx-cfe/Makefile +++ b/package/kernel/bcm63xx-cfe/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=bcm63xx-cfe -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_URL:=https://github.com/openwrt/bcm63xx-cfe.git PKG_SOURCE_PROTO:=git @@ -10,15 +10,10 @@ PKG_SOURCE_DATE:=2020-05-18 PKG_SOURCE_VERSION:=efe3b81121a84c0b8ba6a7d0d47cd5eeeb23808d PKG_MIRROR_HASH:=299dcf6ef1ad034df26daee6446b574abcd7526a2fe90fb8115890e71bc0d58b -PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME) - PKG_FLAGS:=nonshared include $(INCLUDE_DIR)/package.mk -TAR_OPTIONS:=--strip-components 1 $(TAR_OPTIONS) -TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS) - define Package/bcm63xx-cfe SECTION:=boot CATEGORY:=Boot Loaders @@ -39,4 +34,10 @@ define Package/bcm63xx-cfe/install true endef +define Build/InstallDev + rm -rf $(KERNEL_BUILD_DIR)/$(PKG_NAME) + mkdir -p $(KERNEL_BUILD_DIR)/$(PKG_NAME) + $(CP) -r $(PKG_BUILD_DIR)/* $(KERNEL_BUILD_DIR)/$(PKG_NAME) +endef + $(eval $(call BuildPackage,bcm63xx-cfe)) |