From 120ec2f0d8a7d51e6f0336088e9f18aeadd2e0e5 Mon Sep 17 00:00:00 2001 From: Stepan Blyschak Date: Thu, 16 Aug 2018 14:47:13 +0300 Subject: [PATCH] Remove hw-managment symlink for LS-SN2700 & resolve symlinks during cp Signed-off-by: Stepan Blyschak --- device/mellanox/x86_64-mlnx_lssn2700-r0/hw-management | 1 - src/sonic-device-data/Makefile | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 120000 device/mellanox/x86_64-mlnx_lssn2700-r0/hw-management diff --git a/device/mellanox/x86_64-mlnx_lssn2700-r0/hw-management b/device/mellanox/x86_64-mlnx_lssn2700-r0/hw-management deleted file mode 120000 index eb5e941daad7..000000000000 --- a/device/mellanox/x86_64-mlnx_lssn2700-r0/hw-management +++ /dev/null @@ -1 +0,0 @@ -/etc/mlnx/msn2700 \ No newline at end of file diff --git a/src/sonic-device-data/Makefile b/src/sonic-device-data/Makefile index be2f73e62d4a..911c8641a682 100644 --- a/src/sonic-device-data/Makefile +++ b/src/sonic-device-data/Makefile @@ -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