diff options
author | Michal Hrusecky <Michal@Hrusecky.net> | 2018-01-17 13:25:43 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-01-22 09:22:25 +0100 |
commit | 74450124f606cb04bdd44684b6070a15dd0837bd (patch) | |
tree | c43b7648ea81e01253e2415f3f057076c7c76c44 /package/base-files/Makefile | |
parent | 69dfdda157e86c4aabbae9e51ecf76911f833af2 (diff) | |
download | upstream-74450124f606cb04bdd44684b6070a15dd0837bd.tar.gz upstream-74450124f606cb04bdd44684b6070a15dd0837bd.tar.bz2 upstream-74450124f606cb04bdd44684b6070a15dd0837bd.zip |
build: Optionally provide file checksums in package metadata
This may be useful if you don't entirely trust your flash and want to be able
to check for corruptions.
Signed-off-by: Michal Hrusecky <Michal@Hrusecky.net>
Diffstat (limited to 'package/base-files/Makefile')
-rw-r--r-- | package/base-files/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile index ea1e4ebf57..0dc8b6d61e 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -195,6 +195,8 @@ define Package/base-files/install mkdir -p $(1)/etc/opkg; \ $(call FeedSourcesAppend,$(1)/etc/opkg/distfeeds.conf); \ $(VERSION_SED_SCRIPT) $(1)/etc/opkg/distfeeds.conf) + $(if $(CONFIG_IPK_FILES_CHECKSUMS), \ + rm -f $(1)/sbin/pkg_check,) endef ifneq ($(DUMP),1) |