makefile debugging

Alexander 'lynxis' Couzens lynxis at fe80.eu
Fri Jan 19 04:22:15 PST 2024


Hi Tim,

> I seem to recall a way to ask OpenWrt's build system to output a list
> of all variable values used in the build but can't find it documented
> or in my notes. Does anyone know how to do that?
> 
> Also, is there a way to output a post-processed Makefile after all the
> define foo gets done? I find it pretty difficult to work through the
> build system, especially when working with images.

For packages at least this works for me:

TOPDIR=$(pwd) make --no-print-directory -C package/network/services/unetd/ val.PKG_CONFIG_DEPENDS

Best,
lynxis

PS. original seen on 
https://github.com/ads-tec/sbom-openwrt/blob/6baf6702ffa1d3666db4aeca5084fc79569977f8/lib/utils.py#L138



More information about the openwrt-devel mailing list