Skip to content

Commit 3645693

Browse files
Tomaz Zamanigorpecovnik
authored andcommitted
gateway-dk-ask: use constructor attribute for xtables init, drop -D_INIT
The xtables.h _init/_INIT macro chain proved unreliable — the _init macro wasn't being applied despite _INIT being defined. The ASK repo now uses __attribute__((constructor)) directly in the extension source, which is the modern pattern and doesn't need any -D flags. Pin ASK to commit with the constructor fix.
1 parent e256544 commit 3645693

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extensions/gateway-dk-ask.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Source repos and refs (pinned to match Yocto)
1616
# For local testing: set ASK_REPO="file:///path/to/ASK" — the Docker mount hook below handles it
1717
declare -g ASK_REPO="https://github.com/we-are-mono/ASK.git"
18-
declare -g ASK_BRANCH="commit:6a30ee0adf0d66056b245d9d91ad7cdde083296c"
18+
declare -g ASK_BRANCH="commit:4e73c4b467edb4508adaa4faa024ef5670132d47"
1919
declare -g FMLIB_REPO="https://github.com/nxp-qoriq/fmlib.git"
2020
declare -g FMLIB_COMMIT="7a58ecaf0d90d71d6b78d3ac7998282a472c4394"
2121
declare -g FMC_REPO="https://github.com/nxp-qoriq/fmc.git"
@@ -283,7 +283,6 @@ function pre_customize_image__001_build_ask_userspace() {
283283
chroot_sdcard "cd /tmp/ask-userspace/iptables-extensions && \
284284
for name in ${ask_xtables_modules[*]}; do \
285285
gcc -shared -fPIC -O2 \
286-
-D_INIT=\${name}_init \
287286
-I./include \
288287
-o \"\${name}.so\" \"\${name}.c\" || exit 1; \
289288
done && \

0 commit comments

Comments
 (0)