mirror of
https://github.com/revyos/th1520-boot-firmware.git
synced 2026-06-21 09:02:23 +02:00
* mainline opensbi commit: 140844b3bd4a6f2919ccd2ff5e93c6222a4f71fb * mainline opensbi-h commit: 83f3e406cf48a0228c0e0738758d48ccfcbb6ae9 Signed-off-by: Han Gao <rabenda.cn@gmail.com>
24 lines
961 B
Makefile
Executable File
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"
|