diff --git a/config/functions b/config/functions index 552488d5e2..e9dcdcd0f0 100644 --- a/config/functions +++ b/config/functions @@ -851,10 +851,10 @@ calculate_stamp() { [ -n "$DEVICE" ] && stamp+=" $PROJECT_DIR/$PROJECT/devices/$DEVICE/patches/$PKG_NAME" [ -n "$PKG_NEED_UNPACK" ] && stamp+=" $PKG_NEED_UNPACK" - data="$(find ${stamp} -exec sha256sum {} \; 2>/dev/null | sed "s/ ${ROOT//\//\\/}\// /")" + data="$(find -L ${stamp} -type f -not -name '.*' 2>/dev/null | sed "s|^${ROOT}/||" | LC_ALL=C sort -u | xargs sha256sum)" [ -n "${PKG_STAMP}" ] && data+=$'\n'"$(echo "${PKG_STAMP}" | sha256sum)" - echo "${data}" | sort | sha256sum | cut -d" " -f1 + echo "${data}" | sha256sum | cut -d" " -f1 } target_has_feature() {