Skip to content

Commit

Permalink
Merge pull request #3591 from MilhouseVH/le92_buildsystem_cleanup_scr…
Browse files Browse the repository at this point in the history
…ipts

buildsystem: cleanup scripts, consistent brace usage [backport]
  • Loading branch information
HiassofT authored Jun 22, 2019
2 parents b4a9b00 + 8a7f1ed commit 2d400f1
Show file tree
Hide file tree
Showing 15 changed files with 739 additions and 734 deletions.
4 changes: 3 additions & 1 deletion config/functions
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,10 @@ kernel_config_path() {
$pkg_linux_dir/config/$config_name \
; do
[[ $cfg =~ /devices//linux/ ]] && continue
[ -f "$cfg" ] && echo "$cfg" && break
[ -f "$cfg" ] && echo "$cfg" && return
done

die "ERROR: Unable to locate kernel config for ${LINUX} - looking for ${config_name}"
}

kernel_make() {
Expand Down
4 changes: 3 additions & 1 deletion packages/linux-firmware/kernel-firmware/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ makeinstall_target() {
done < "${fwlist}"
done

PKG_KERNEL_CFG_FILE=$(kernel_config_path) || die

# The following files are RPi specific and installed by brcmfmac_sdio-firmware-rpi instead.
# They are also not required at all if the kernel is not suitably configured.
if listcontains "${FIRMWARE}" "brcmfmac_sdio-firmware-rpi" || \
! grep -q "^CONFIG_BRCMFMAC_SDIO=y" $(kernel_config_path); then
! grep -q "^CONFIG_BRCMFMAC_SDIO=y" ${PKG_KERNEL_CFG_FILE}; then
rm -fr $FW_TARGET_DIR/brcm/brcmfmac43430*-sdio.*
rm -fr $FW_TARGET_DIR/brcm/brcmfmac43455*-sdio.*
fi
Expand Down
2 changes: 1 addition & 1 deletion packages/linux/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ case "$LINUX" in
;;
esac

PKG_KERNEL_CFG_FILE=$(kernel_config_path)
PKG_KERNEL_CFG_FILE=$(kernel_config_path) || die

if [ -n "$KERNEL_TOOLCHAIN" ]; then
PKG_DEPENDS_HOST="$PKG_DEPENDS_HOST gcc-arm-$KERNEL_TOOLCHAIN:host"
Expand Down
Loading

0 comments on commit 2d400f1

Please sign in to comment.