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

Felix Fietkau nbd at openwrt.org
Fri Oct 30 10:20:52 EDT 2015

On 2015-10-30 15:17, Toke Høiland-Jørgensen wrote:
> 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?
Yes. It's in kernel-defaults.mk

> 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?
You can add it wrapped in $(if ...) to rules.mk to the other exports in
the RSTRIP variable.

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

More information about the openwrt-devel mailing list