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
build: Few minor makefile and dockerfile improvements #10970
Conversation
This comment has been minimized.
This comment has been minimized.
f33c4b8
to
e754069
Compare
This comment has been minimized.
This comment has been minimized.
e754069
to
87b6e14
Compare
test-me-please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, regarding copyright headers I think @joestringer was looking into having a smaller version of them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, any metrics yet on whether this changes anything? Build times anywhere? Binary sizes? I realize this isn't intended as an optimization, but it'd be nice to know that we don't see any kind of regressions.
A few minor comments attached.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Hubble related changes look good to me! Great cleanup! A +1 for me on the SPDX identifiers.
The fact that we got rid of dependency declaration will have some effect on build times, I should go and find out what it is, but I suspect the effect to be marginal, but it may as well end up being equal to time it takes to call |
Ok, so more on build performance. So here is an example of how things look on master now:
With this change it looks more like this:
So there is no more The way dependencies are checked is largely inaccurate and hard to maintain (i.e. makefile of each of the components looked for We could fix the nature of dependency calculation and base it on |
87b6e14
to
447b0a1
Compare
test-me-please |
- remove unused `V` argument - remove unused `PKG_BUILD` variable declaration - `CGO_ENABLED=0` is now the default - `GOOS=linux` is redundant - `-a` is meaningless in contaniner build - `-installsuffix cgo` was a red herring Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
- ensure the copyright header is present - improve variable naming in `Makefile.defs` - standardise go invocations with `GO_BUILD`, `GO_TEST`, etc - remove dependency declaration as `go build` manages build cache much more intelligently now and makefile maintenance overhead is unnecessary - ensure all of the common rules are defined consistently, so these can be sourced into a common file in the future - remove trailing and doubly blank lines Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
- ensure the copyright header is present - remove trailing and doubly blank lines Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
Replace APL header with `SPDX-License-Identifier: Apache-2.0` Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
447b0a1
to
64aee22
Compare
test-me-please |
test-with-kernel |
@joestringer this is good to go now, I believe? If so, would you mind approving and merging please? |
No description provided.