[PATCH] bcm4908: automatically set DEVICE_DTS from device name

Adrian Schmutzler mail at adrianschmutzler.de
Tue Jan 19 14:30:39 EST 2021


> It should be possible to make final defines even simpler by using some
> wildcard magic. You could avoid defining SOC then.
> 
> Please take a look at the:
> target/linux/bcm53xx/image/Makefile
> 
> It has some magic² code as follows:
> DEVICE_DTS := $(patsubst %.dtb,%,$(notdir $(wildcard $(if
> $(IB),$(KDIR),$(DTS_DIR))/*-$(subst _,-,$(1)).dtb)))
> 
> If you could adopt above magic to the bcm4908 it would be great. If not your
> suggested solution is probably still better than what we have now.

Something inside me heavily resists against just using wildcards for a case like this, though I'm aware that this will probably allow us to remove hundreds of SOC definitions. I will think about it ...

Best

Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210119/5966d6d1/attachment.sig>


More information about the openwrt-devel mailing list