projects
/
openwrt
/
staging
/
mkresin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: include package directory in sha256sums when running on buildbot
[openwrt/staging/mkresin.git]
/
rules.mk
diff --git
a/rules.mk
b/rules.mk
index a97b2d2155695c3a15f361ea2fe95b977be05959..b1ecc24fab1f9a97a4dd4a7a5c17753996003977 100644
(file)
--- a/
rules.mk
+++ b/
rules.mk
@@
-390,8
+390,9
@@
endef
# Calculate sha256sum of any plain file within a given directory
# $(1) => Input directory
# Calculate sha256sum of any plain file within a given directory
# $(1) => Input directory
+# $(2) => If set, recurse into subdirectories
define sha256sums
define sha256sums
- (cd $(1); find .
-maxdepth 1
-type f -not -name 'sha256sums' -printf "%P\n" | sort | \
+ (cd $(1); find .
$(if $(2),,-maxdepth 1)
-type f -not -name 'sha256sums' -printf "%P\n" | sort | \
xargs -r $(STAGING_DIR_HOST)/bin/mkhash -n sha256 | sed -ne 's!^\(.*\) \(.*\)$$!\1 *\2!p' > sha256sums)
endef
xargs -r $(STAGING_DIR_HOST)/bin/mkhash -n sha256 | sed -ne 's!^\(.*\) \(.*\)$$!\1 *\2!p' > sha256sums)
endef