Skip to content

Commit c27c52a

Browse files
committed
functions: cache dependency checker PT1
1 parent 19a5e18 commit c27c52a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

scripts/functions.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,15 @@ CACHE_DIRECTORY_SETUP() {
172172
ln -s ../../build_dir/host build_dir/host
173173
}
174174

175+
CACHE_DEPENDENCY() {
176+
cache_toolchain=$('git log --pretty=tformat:"%h" -n1 tools toolchain')
177+
cache_feeds=$('git log --pretty=tformat:"%h" -n1 feeds')
178+
cache_package=$('git log --pretty=tformat:"%h" -n1 package')
179+
cache_target=$('git log --pretty=tformat:"%h" -n1 target')
180+
cache_staging_dir=$('git log --pretty=tformat:"%h" -n1 staging_dir')
181+
182+
}
183+
175184
### This is a quick way to apply correct chmod to all files and directorys needed
176185
SMART_CHMOD() {
177186
set -x

0 commit comments

Comments
 (0)