> 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

Attachment: openpgp-digital-signature.asc
Description: PGP signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to