[OpenWrt-Devel] [PATCH] Allow kernel modules to keep build ID debug symbol.

Toke Høiland-Jørgensen toke at toke.dk
Fri Oct 30 10:17:48 EDT 2015

Felix Fietkau <nbd at openwrt.org> writes:

> How about this: add it per-package, but add it in a way that you can set
> PKG_BUILD_ID:=$(PKG_SOURCE_VERSION) and this will add the linker command
> and disable the build-id stripping.

Would definitely work. The problem is I'm not sure I quite grok the
openwrt build system sufficiently to do this correctly. Guess I need to
get the linker flag into KERNEL_MAKEOPTS? Can go looking for that, but
that still leaves the problem of signaling the strip-kmod.sh script
correctly -- can I get at per-package variables in rules.mk where the
RSTRIP invocation is defined?

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list