New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
define feature sets for make targets in files #1259
Conversation
…ng duplicate code in Makefile
@nkraetzschmar Thank you for your contribution. |
@MrBatschner You have pull request review open invite, please check |
Sorry for sliding in... Currently, I'm rewriting the When building any image, the overall base is represented by a feature of the According to this PR we define these sub features (see also: https://github.com/gardenlinux/gardenlinux/pull/1259/files#diff-c2604d0d6c1ce427dd5436aae130b8cd7bf9014be12d4ec807dd8318685ec608)
I think we do not need to maintain these ones within the Makefiles, while this gets already done by the include features. However, by just calling the make target with
AFAIK, this should be the case for all available platforms. This works by calling garden-feat during the build time and is implemented within the currently used Go version and the upcoming Python version. To avoid further code, it might be enough to call the platform with the desired elements and flags (if not already provided by the include chain). However, this could result in: jfyi @nanory |
Yes, we can definitely slim down the list of features explicitly given for each make target 👍 For this change I just wanted to keep the feature lists exactly as they were in the Makefile to ensure we don't accidentally drop any. I'd suggest we merge this as is and slim down the list of features in a separate PR to keep each change more concise. |
@nkraetzschmar You need rebase this pull request with latest master branch. Please check. |
in its currents state _readonly causes problems as described in https://github.com/gardenlinux/gardenlinux/issues/1285 as well as being incompatible with the firecracker platform therefore for now it makes sense to have _prod flag without enabling _readonly
How to categorize this PR?
/kind enhancement
/area os
/os garden-linux
What this PR does / why we need it:
define feature sets for make targets in files, rather than having duplicate code in the Makefile and use generic make targets (
%
and%-dev
) insteadfeatures lists in
make_targets
are identical to those from the Makefile prior to this change, generated via the following script: