Repository navigation
mbedtls: Re-prepare when configuration changes - #19358
Conversation
|
I would prefer if you apply the configuration in the configure step instead. Does this cause any additional problems? |
@hauke I can do that. I think I would have to get rid of the behavior from 0d43c22 to ensure the defaults from Config.in are applied consistently. (I'm not sure what the intent was behind that behavior; it seems a little strange since the only way I can see to have no CONFIG_MBEDTLS_ options set is to manually disable the ones that are defaulted to Y in Config.in.) |
You can get into this situation when you have an older configuration and do not run Is this bigger change only needed when you move it from the prepare to the configuration step? |
It's not a bigger change as such, I was just planning on removing the special casing of "no config options are set" and instead just always apply all options to the header file. (Unlike Prepare, Configure won't necessarily run on a clean freshly unpacked header, but by always applying all the options the resulting state will always be correct.) I'll update the PR in the next couple of days. |
f9dee27 to
5514bd0
Compare
This ensures mbedtls_config.h is correctly updated and the package rebuilt accordingly when configuration options are changed after the source is first prepared. Signed-off-by: Karsten Sperling <[email protected]> Link: openwrt#19358 Signed-off-by: Hauke Mehrtens <[email protected]>
This ensures mbedtls_config.h is correctly updated and the package rebuilt accordingly when configuration options are changed after the source is first prepared. Signed-off-by: Karsten Sperling <[email protected]> Link: openwrt#19358 Signed-off-by: Hauke Mehrtens <[email protected]>
This ensures mbedtls_config.h is correctly updated and the package rebuilt accordingly when configuration options are changed after the source is first prepared. Signed-off-by: Karsten Sperling <[email protected]> Link: openwrt#19358 Signed-off-by: Hauke Mehrtens <[email protected]>
I don't know what situation 0d43c22 was prepared for, but it does workaround a build system bug, i.e. the package get built for some reason that it's even unselected. EDIT: oh PKG_CONFIG_DEPENDS doesn't apply for prepare stage, sorry for that. |
This ensures mbedtls_config.h is correctly updated and the package rebuilt accordingly when configuration options are changed after the source is first prepared. Signed-off-by: Karsten Sperling <[email protected]> Link: openwrt#19358 Signed-off-by: Hauke Mehrtens <[email protected]>
This ensures mbedtls_config.h is correctly updated and the package rebuilt accordingly when configuration options are changed after the source is first prepared. Signed-off-by: Karsten Sperling <[email protected]> Link: openwrt#19358 Signed-off-by: Hauke Mehrtens <[email protected]>
This ensures mbedtls_config.h is correctly updated and the package rebuilt accordingly when configuration options are changed after the source is first prepared. Signed-off-by: Karsten Sperling <[email protected]> Link: openwrt#19358 Signed-off-by: Hauke Mehrtens <[email protected]>
This ensures mbedtls_config.h is correctly updated and the package rebuilt accordingly when configuration options are changed after the source is first prepared. Signed-off-by: Karsten Sperling <[email protected]> Link: openwrt#19358 Signed-off-by: Hauke Mehrtens <[email protected]>
Configuration options are applied to mbedtls_config.h in the Prepare step (not in Configure), so Prepare needs to depend on those options to ensure the build tree gets re-prepared when they change.