aboutsummaryrefslogtreecommitdiff
path: root/bbl
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2019-03-22 17:11:46 -0600
committerLogan Gunthorpe <logang@deltatee.com>2019-03-22 18:27:58 -0600
commitb54479d8e7aaec0a29fca0844cae7485dff50b7d (patch)
treecd36d196ea2c418a8ee6f851f126fc0e44e3cae8 /bbl
parent662884bd08835875210a2c01674e5594fcae78c7 (diff)
downloadpk-b54479d8e7aaec0a29fca0844cae7485dff50b7d.zip
pk-b54479d8e7aaec0a29fca0844cae7485dff50b7d.tar.gz
pk-b54479d8e7aaec0a29fca0844cae7485dff50b7d.tar.bz2
Always build bbl.bin
bbl.bin is necessary for booting on hardware and is created by a simple objcopy line. It's much more convienent for riscv-pk to create this file then to expect the user to know to do it or to dig through the SDK's makefile to learn that it's required. Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Diffstat (limited to 'bbl')
-rw-r--r--bbl/bbl.mk.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/bbl/bbl.mk.in b/bbl/bbl.mk.in
index f91dfbf..b0ef476 100644
--- a/bbl/bbl.mk.in
+++ b/bbl/bbl.mk.in
@@ -35,3 +35,8 @@ bbl_test_srcs =
bbl_install_prog_srcs = \
bbl.c \
+
+bbl.bin: bbl
+ $(OBJCOPY) -S -O binary --change-addresses -0x80000000 $< $@
+
+bbl_extra_targets = bbl.bin