[OpenWrt-Devel] [Was: [PATCH] ramips: rt305x: Disable image generation for small devices
Petr Štetiar
ynezz at true.cz
Sat Mar 2 19:46:01 EST 2019
Petr Štetiar <ynezz at true.cz> [2019-03-01 14:40:42]:
> It was reported in FS#2110 that there are currently no images being
> generated for rt305x as a result of a build breakage due to image
> generation.
>
> I've found out, that plenty of the devices have fallen of a cliff
> already due to the small flash, so this patch disables image generation
> for those devices.
I just looked at this again now, and I've found out, that there are snapshot
images available for those devices, so I've tried to build again with
config.seed from snapshots and indeed, I was able to build them as well - it
seems I was simply missing `CONFIG_TARGET_PER_DEVICE_ROOTFS=y` in my local
config, so the produced images were quite bigger.
So this patch is wrong as it is, since it would disable image generation for
release builds which is what we want, but also for snapshots which isn't
wanted.
I'm wondering what would be the proper way of fixing this. Should we add
config option like `CONFIG_TARGET_BUILD_IMAGE_MIN_SIZE=3900k` which would
allow us to filter out (using check-size?) devices in TARGET_DEVICES with
IMAGE_SIZE below this defined treshold?
-- ynezz
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list