From: Mark Corbin <mark.corbin@embecosm.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/3] boot/riscv-pk: add generation of binary bbl file
Date: Sun, 28 Apr 2019 15:49:37 +0100 [thread overview]
Message-ID: <20190428144939.28964-2-mark.corbin@embecosm.com> (raw)
In-Reply-To: <20190428144939.28964-1-mark.corbin@embecosm.com>
In order to support the SiFive HiFive Unleashed board we need to
generate a binary bootloader file ready for writing to an SD card.
Signed-off-by: Mark Corbin <mark.corbin@embecosm.com>
---
Changes v1 -> v2:
- moved generation of bbl binary file in riscv-pk.mk from
INSTALL_CMDS to BUILD_CMDS (Arnout)
---
boot/riscv-pk/riscv-pk.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/boot/riscv-pk/riscv-pk.mk b/boot/riscv-pk/riscv-pk.mk
index 0ab5879ee4..8386dfe168 100644
--- a/boot/riscv-pk/riscv-pk.mk
+++ b/boot/riscv-pk/riscv-pk.mk
@@ -23,10 +23,12 @@ endef
define RISCV_PK_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/build bbl
+ $(TARGET_OBJCOPY) -S -O binary $(@D)/build/bbl $(@D)/build/bbl.bin
endef
define RISCV_PK_INSTALL_IMAGES_CMDS
$(INSTALL) -D -m 0755 $(@D)/build/bbl $(BINARIES_DIR)/bbl
+ $(INSTALL) -D -m 0755 $(@D)/build/bbl.bin $(BINARIES_DIR)/bbl.bin
endef
$(eval $(generic-package))
--
2.19.1
next prev parent reply other threads:[~2019-04-28 14:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-28 14:49 [Buildroot] [PATCH v2 0/3] Add support for HiFive Unleashed board Mark Corbin
2019-04-28 14:49 ` Mark Corbin [this message]
2019-04-28 14:49 ` [Buildroot] [PATCH v2 2/3] boot/riscv-pk: remove hardcoding of the ABI Mark Corbin
2019-04-28 14:49 ` [Buildroot] [PATCH v2 3/3] board/sifive: add support for the HiFive Unleashed board Mark Corbin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190428144939.28964-2-mark.corbin@embecosm.com \
--to=mark.corbin@embecosm.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.