Skip to content

Commit

Permalink
Remove hw-managment symlink for LS-SN2700 & resolve symlinks during cp
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Blyschak <[email protected]>
  • Loading branch information
Stepan Blyschak committed Aug 16, 2018
1 parent 354b6ad commit 120ec2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion device/mellanox/x86_64-mlnx_lssn2700-r0/hw-management

This file was deleted.

3 changes: 1 addition & 2 deletions src/sonic-device-data/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :

# Create a new dir and copy all ONIE-platform-string-named dirs into it
mkdir ./device
cp -r ../../../device/*/* ./device/
find ./device/ -type l -exec bash -c 'test -e {} && (original=$$(readlink -f {}) && rm -rf {} && cp -r $$original {} ) ' \;
cp -r -H ../../../device/*/* ./device/

# Build the package
dpkg-buildpackage -rfakeroot -b -us -uc
Expand Down

0 comments on commit 120ec2f

Please sign in to comment.