Skip to content

Makefile: Optimization - #6864

Open
donNewtonAlpha wants to merge 1 commit into
sonic-net:masterfrom
donNewtonAlpha:makefile-fix
Open

donNewtonAlpha wants to merge 1 commit into
sonic-net:masterfrom
donNewtonAlpha:makefile-fix

Conversation

@donNewtonAlpha

Copy link
Copy Markdown
Contributor
  • Fix if/else/endif logic
  • To only target a single build environment

Signed-off-by: Don Newton don@opennetworking.org

Why I did it

To speed up new build environment setup / save disk space
To speed up builds

Currently if NOJESSIE and NOSTRETCH are unset make configure will build 3 separate build images

How I did it

Arranged if, else and endif statement such that only one will be entered per invocation

How to verify it

On a clean environment with NOJESSIE and NOSTRETCH unset execute
make configure PLATFORM=$platform_of_choice - only the jessie build environment will be created

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
    ONF is currently using the 202012 branch as our base for our p4 project

Description for the changelog

Only build / use one of jessie, stretch or buster

A picture of a cute animal (not mandatory but encouraged)

* Fix if/else/endif logic
* To only target a single build environment

Signed-off-by: Don Newton don@opennetworking.org
@donNewtonAlpha

Copy link
Copy Markdown
Contributor Author

/azpw run

@mssonicbld

Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Pull request contains merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants