Files
thead-sbi-bin/debian/rules
Han Gao 725756411e sbi: add debian prebuilt v1.6 & remove vendor 0.9 sbi & update mainline opensbi
* mainline opensbi commit: 140844b3bd4a6f2919ccd2ff5e93c6222a4f71fb
  * mainline opensbi-h commit: 83f3e406cf48a0228c0e0738758d48ccfcbb6ae9

Signed-off-by: Han Gao <rabenda.cn@gmail.com>
2025-05-10 12:59:07 +00:00

24 lines
961 B
Makefile
Executable File

#!/usr/bin/make -f
export DH_VERBOSE = 1
export DEB_BUILD_OPTIONS += nostrip
export BOOT_DESTDIR = debian/th1520-boot-firmware
export MAINLINE_DESTDIR = debian/th1520-mainline-opensbi
export MAINLINE_H_DESTDIR = debian/th1520-mainline-opensbi-h
export DEBIAN_DESTDIR = debian/th1520-debian-opensbi
%:
dh $@
override_dh_install:
mkdir -p $(CURDIR)/$(BOOT_DESTDIR)$(PREFIX)/
cp -avpr $(CURDIR)/addons/* $(CURDIR)/$(BOOT_DESTDIR)$(PREFIX)/
mkdir -p $(CURDIR)/$(MAINLINE_DESTDIR)$(PREFIX)/boot
cp -avpr $(CURDIR)/opensbi/fw_dynamic.bin.mainline $(CURDIR)/$(MAINLINE_DESTDIR)$(PREFIX)/boot/fw_dynamic.bin
mkdir -p $(CURDIR)/$(MAINLINE_H_DESTDIR)$(PREFIX)/boot
cp -avpr $(CURDIR)/opensbi/fw_dynamic.bin.h $(CURDIR)/$(MAINLINE_H_DESTDIR)$(PREFIX)/boot/fw_dynamic.bin
mkdir -p $(CURDIR)/$(DEBIAN_DESTDIR)$(PREFIX)/boot
cp -avpr $(CURDIR)/opensbi/fw_dynamic.bin.debian $(CURDIR)/$(DEBIAN_DESTDIR)$(PREFIX)/boot/fw_dynamic.bin
override_dh_clean:
echo "None"