bec35df04a
- Why I did it Add support for mellanox platform building for target architecture arm64. - How I did it Contains the following changes: 1. Change instances of hard-coded amd64 to $(CONFIGURED_ARCH) 2. Add logic to download correct binary for MFT package 3. Add TARGET_BOOTLOADER=grub definition to rules.mk to override default arm64 bootloader - How to verify it Build mellanox platform with TARGET_ARCH set as arm64
16 lines
404 B
Makefile
16 lines
404 B
Makefile
.ONESHELL:
|
|
SHELL = /bin/bash
|
|
|
|
MAIN_TARGET = hw-management_1.mlnx.$(MLNX_HW_MANAGEMENT_VERSION)_$(CONFIGURED_ARCH).deb
|
|
|
|
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
|
|
|
pushd hw-mgmt
|
|
git stash
|
|
git apply -3 ../*.patch || exit 1
|
|
chmod +x ./debian/rules
|
|
KVERSION=$(KVERSION) dpkg-buildpackage -us -uc -b -rfakeroot -j$(SONIC_CONFIG_MAKE_JOBS) --admindir $(SONIC_DPKG_ADMINDIR)
|
|
popd
|
|
|
|
mv $* $(DEST)/
|