Skip to content

Commit 4a0280b

Browse files
committed
package/aa-proxy-rs: pass board name to aa-proxy-rs at build time
Add AA_PROXY_BOARD env var to AA_PROXY_RS_CARGO_ENV, derived from CONFIG_DIR. Allows aa-proxy-rs to expose the Buildroot board name (e.g. aaw2b) at runtime via option_env!("AA_PROXY_BOARD") without runtime detection or hardcoding.
1 parent 4a6c195 commit 4a0280b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

external/package/aa-proxy-rs/aa-proxy-rs.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ endef
1717
# pass git hashes as env variables
1818
AA_PROXY_RS_CARGO_ENV = \
1919
AA_PROXY_COMMIT="$(AA_PROXY_RS_COMMIT)" \
20-
BUILDROOT_COMMIT="$(BUILDROOT_COMMIT)"
20+
BUILDROOT_COMMIT="$(BUILDROOT_COMMIT)" \
21+
AA_PROXY_BOARD="$(notdir $(patsubst %/,%,$(CONFIG_DIR)))"
2122

2223
# use own toolchain only for RISC-V builds (milkv-duos)
2324
ifeq ($(findstring milkv-duos,$(CONFIG_DIR)),milkv-duos)

0 commit comments

Comments
 (0)