Small_flash, for Specific Target

Hi,

Struggling to get support in place for new HW. It's all working, but I need to use small_flash with this router (FYI, it's an mt7620n device). Easy to add small_flash to the features, but it seems that's not real desireable overall ... so is there a way to enable / use this only for this device (in code, not by modifying .config "manually")? I did try to mimic what was done for "tiny" devices under ath79 and ar71xx, but as soon as I call the SUBTARGET tiny (i.e. add it to the SUBTARGETS list), it breaks all sorts of other things :disappointed:

Thanks!

OK, a bit more on this ... :slight_smile:. I am able to get the new subtarget to build (e.g. tiny), although it has some odd names in .config. That's OK (minor), but for some reason the wireless portions are not being included in the kernel (and .config). Any thoughts?

Thanks!

Hi,

OK, some digging, and I see the issue - it seems that even though I set the SUBTARGET name in the target.mk file, it's using the value from SUBTARGETS - the result is as below ... I get,
CONFIG_TARGET_ramips_tiny
rather than (from my SUBTARGET variable),
CONFIG_TARGET_ramips_mt7620

And of course, this then breaks follow-on processing. Any thoughts on how to get SUBTARGET set?

Thanks!