[PATCH v3 1/2] imagebuilder: unset BINARY_FOLDER and DOWNLOAD_FOLDER in final archive
Baptiste Jonglez
baptiste at bitsofnetworks.org
Fri May 7 13:12:21 BST 2021
On 06-05-21, Sven Roederer wrote:
> Baptiste,
>
> Am Donnerstag, 6. Mai 2021, 13:13:46 CEST schrieb Baptiste Jonglez:
> > >
> > > + $(SED) 's/^CONFIG_BINARY_FOLDER=.*/# CONFIG_BINARY_FOLDER was reset by
> > > Imagebuilder/' $(PKG_BUILD_DIR)/.config + $(SED)
> > > 's/^CONFIG_DOWNLOAD_FOLDER=.*/# CONFIG_DOWNLOAD_FOLDER was reset by
> > > Imagebuilder/' $(PKG_BUILD_DIR)/.config
> > Several scripts assume that this exact format is used for disabled config:
> > "# CONFIG_FOO is not set" (same as in the kernel).
> >
> > While your patch works [probably because these scripts are not run when
> > using the ImageBuilder], it seems cleaner to stick to the standard format,
> > e.g. in case a .config file is copied around from an imagebuilder.
> >
>
> The intention to not use th normal "unset" message was to leave a pointer why
> it's unset in contrast to the build-time file, in case someone relies on it.
> But I'm happy to us the normal message here.
Since these settings are hidden under "Advanced configuration options (for
developers)", I don't think it's really necessary to leave this kind of
implicit information, I would prefer having a valid .config file.
Maybe we should even ignore every setting under this "Advanced
configuration options" menu when generating the SDK and Imagebuilder...
But these two are a good start.
Thanks,
Baptiste
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210507/56ff2b17/attachment.sig>
More information about the openwrt-devel
mailing list