diff options
author | Brandon Kim <brandonkim@google.com> | 2021-07-08 01:08:13 +0300 |
---|---|---|
committer | Brandon Kim <brandonkim@google.com> | 2021-07-08 21:07:58 +0300 |
commit | cbe8a9fdbf55006d0c5342bb45adf33aa371542b (patch) | |
tree | e6dce04c549b0aabde3b3fe4d36e6cf8a0fddb18 | |
parent | 8b316db58e63a489eb8d32876222d486f6676ae6 (diff) | |
download | openbmc-cbe8a9fdbf55006d0c5342bb45adf33aa371542b.tar.xz |
meta-quanta: gbs: Improve gbs-sysinit.sh
Remove using external command in gbs-sysinit.sh
Signed-off-by: Brandon Kim <brandonkim@google.com>
Change-Id: I9fab3e275c822a0c87f5935cf912b258b923e33e
-rw-r--r-- | meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/files/gbs-sysinit.sh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/files/gbs-sysinit.sh b/meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/files/gbs-sysinit.sh index 8c7cbd54a4..8b660c2dca 100644 --- a/meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/files/gbs-sysinit.sh +++ b/meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/files/gbs-sysinit.sh @@ -134,13 +134,10 @@ KERNEL_SYSFS_FIU="/sys/bus/platform/drivers/NPCM-FIU" # the node of FIU is spi for kernel 5.10, but # for less than or equal kernel 5.4, the node # is fiu -for fname in $(find ${KERNEL_SYSFS_FIU} -type l) -do - if [ "${fname##*\.}" == "fiu" ] - then - KERNEL_FIU_ID="c0000000.fiu" - break - fi +shopt -s nullglob +for fiu in "$KERNEL_SYSFS_FIU"/*.fiu; do + KERNEL_FIU_ID="c0000000.fiu" + break done bind_host_mtd() { |