Skip to content
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] Fix cleaning SONIC_PYTHON_STDEB_DEBS #3343

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

gpaussabrcm
Copy link
Contributor

  • slave.mk
  • .gitignore

The SONIC_PYTHON_STDEB_DEBS group is part of SONIC_CLEAN_DEBS
for cleaning with 'make clean', but this group is overlooked
since they reside in PYTHON_DEBS_PATH, not DEBS_PATH. This
fix creates a separate clean rule for SONIC_PYTHON_STDEB_DEBS.

Also noticed the .arch file showing up on 'git status' so
added it to .gitignore.

Signed-off-by: Greg Paussa greg.paussa@broadcom.com

- What I did
Fixed 'make clean' so that all the files in the target/ subtree are removed. Currently, there is a set of files in target/python-debs that doesn't get removed by a 'make clean'.

Separately, the .arch file created during 'make configure' was appearing as an untracked file in the 'git status' output, so I added it to the .gitignore file (just like the .platform file).

- How I did it
Moved the SONIC_PYTHON_STDEB_DEBS out of SONIC_CLEAN_DEBS and into its own SONIC_CLEAN_STDEB_DEBS list and added a new clean recipe to remove its build artifacts from PYTHON_DEBS_PATH instead of DEBS_PATH.

- How to verify it
After doing a build, issue 'make clean' and check the target tree contents using 'ls -alR target/'. There should be no files left in any of the subdirectories, including target/python-debs which should now be empty as well.

- Description for the changelog

Create separate clean rule for SONIC_PYTHON_STDEB_DEBS.

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

* slave.mk
* .gitignore

The SONIC_PYTHON_STDEB_DEBS group is part of SONIC_CLEAN_DEBS
for cleaning with 'make clean', but this group is overlooked
since they reside in PYTHON_DEBS_PATH, not DEBS_PATH. This
fix creates a separate clean rule for SONIC_PYTHON_STDEB_DEBS.

Also noticed the .arch file showing up on 'git status' so
added it to .gitignore.

Signed-off-by: Greg Paussa <greg.paussa@broadcom.com>
@lguohan lguohan merged commit f65c796 into sonic-net:master Aug 15, 2019
wangshengjun pushed a commit to wangshengjun/sonic-buildimage that referenced this pull request Nov 16, 2020
* slave.mk
* .gitignore

The SONIC_PYTHON_STDEB_DEBS group is part of SONIC_CLEAN_DEBS
for cleaning with 'make clean', but this group is overlooked
since they reside in PYTHON_DEBS_PATH, not DEBS_PATH. This
fix creates a separate clean rule for SONIC_PYTHON_STDEB_DEBS.

Also noticed the .arch file showing up on 'git status' so
added it to .gitignore.

Signed-off-by: Greg Paussa <greg.paussa@broadcom.com>
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request Feb 9, 2021
* slave.mk
* .gitignore

The SONIC_PYTHON_STDEB_DEBS group is part of SONIC_CLEAN_DEBS
for cleaning with 'make clean', but this group is overlooked
since they reside in PYTHON_DEBS_PATH, not DEBS_PATH. This
fix creates a separate clean rule for SONIC_PYTHON_STDEB_DEBS.

Also noticed the .arch file showing up on 'git status' so
added it to .gitignore.

Signed-off-by: Greg Paussa <greg.paussa@broadcom.com>

Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>

    RB=2162688
    G=lnos-reviewers
    R=pchaudhary,pmao,rmolina,samaity,sfardeen,zxu
    A=zxu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants