openwrt/package/kernel
Robert Marko 856840d953 kernel: qca-ssdk: use bash as shell
Currently, trying to compile qca-ssdk on macOS will fail in a weird way:
make[6]: *** No rule to make target 'openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-ssdk-2024.04.17~3d060f7a/-n',
needed by 'openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-ssdk-2024.04.17~3d060f7a/qca-ssdk.o'. Stop.

After looking looking at src_list.dep from which KBuild cmd_mod will
generate the list of objects to compile it looked like:
-n /src/adpt/adpt.c
-n
-n

Which was rather suspicous so after comparing to the same file but with
Fedora as host:
/src/adpt/adpt.c src/adpt/hppe/adpt_hppe_fdb.c src/adpt/hppe/adpt_hppe_mib.c

It was clear that echo -n which was used in SSDK-s target.mk was not
working as intented, and it looked like the POSIX only version of echo
was being used which does not honor -n.

So, after failling to reproduce it externally, replacing the call to echo
with a full path to coreutils echo fixed the compilation.

After further debugging, it was determined that SSDK does not honor
CONFIG_SHELL like other kernel modules so it was defaulting to /bin/sh as
the shell make was calling thus calling the /bin/sh built-in echo which on
macOS is the old Bash 3.2 one and it does not respect -n.

So, we have to explicitly pass SHELL=$(BASH) to SSDK to make it use bash
like kernel build or other kernel modules.

This is not an issue since on macOS we always build bash anyway.

Link: https://github.com/openwrt/openwrt/pull/15459
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-05-12 11:38:51 +02:00
..
ath10k-ct treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
bcm27xx-gpu-fw bcm27xx-gpu-fw: update to v1.20240424 2024-05-10 09:15:15 +02:00
bcm63xx-cfe treewide: package: update missed hashes after switch to ZSTD 2024-04-07 14:56:04 +02:00
bpf-headers bpf-headers: fix use of netlink.h header 2024-05-01 19:11:33 +02:00
button-hotplug
cryptodev-linux cryptodev: follow kernel.mk versioning 2024-04-03 18:41:40 +02:00
dtc/patches
gpio-button-hotplug gpio-button-hotplug: fix 6.2 build failure 2024-03-11 20:17:26 +01:00
gpio-nct5104d kernel: move gpio packages to gpio menu 2024-02-01 17:04:54 +01:00
lantiq treewide: package: update missed hashes after switch to ZSTD 2024-04-07 14:56:04 +02:00
leds-gca230718 package: kernel: leds-gca230718: fix build with Linux 6.6 2024-04-12 02:07:30 +01:00
leds-ws2812b
linux kernel: add kmod-ata-ahci-dwc 2024-05-05 00:46:48 +02:00
mac80211 mac80211: ath11k: re-enable ipq807x coldboot calibration 2024-04-18 11:55:36 +02:00
mt76 treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
mt7621-qtn-rgmii
mwlwifi mwlwifi: update to version 10.4.10-20240419 2024-04-23 22:33:56 +02:00
nat46 treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
qca-nss-dp kernel: qca-nss-dp: update to 12.5.r2 for kernel 6.6 2024-05-07 10:04:00 +02:00
qca-ssdk kernel: qca-ssdk: use bash as shell 2024-05-12 11:38:51 +02:00
rtc-rv5c386a
rtl8812au-ct treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
trelay
ubnt-ledbar ubnt-ledbar: adapt for kernel v6.6 2024-05-11 12:38:13 +02:00
ubootenv-nvram