From: Jan Viktorin <viktorin@rehivetech.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 2/7] boot/uboot: compute CRC on SPLs for Altera SoC FPGA
Date: Tue, 20 Oct 2015 13:32:20 +0200 [thread overview]
Message-ID: <1445340745-1000-3-git-send-email-viktorin@rehivetech.com> (raw)
In-Reply-To: <1445340745-1000-1-git-send-email-viktorin@rehivetech.com>
Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
---
boot/uboot/Config.in | 10 ++++++++++
boot/uboot/uboot.mk | 9 +++++++++
2 files changed, 19 insertions(+)
diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index 8643dab..b2a69f3 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -338,6 +338,16 @@ config BR2_TARGET_UBOOT_ZYNQ_IMAGE
for u-boot-dtb.img file so this U-Boot format is required
to be set.
+config BR2_TARGET_UBOOT_SOCFPGA_IMAGE_CRC
+ bool "CRC SPL image for SoC FPGA"
+ depends on BR2_arm
+ depends on BR2_TARGET_UBOOT_SPL
+ help
+ Generate SPL image fixed by the mkpimage tool to enable
+ booting on the SoC FPGA based platforms. The tool is
+ available at https://github.com/maximeh/mkpimage.
+ It requires a Go language compiler installed on your host.
+
menuconfig BR2_TARGET_UBOOT_ENVIMAGE
bool "Environment image"
help
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 66e728f..8b32154 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -215,6 +215,15 @@ UBOOT_DEPENDENCIES += host-zynq-boot-bin
UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_GENERATE_ZYNQ_IMAGE
endif
+ifeq ($(BR2_TARGET_UBOOT_SOCFPGA_IMAGE_CRC),y)
+define UBOOT_CRC_SOCFPGA_IMAGE
+ $(HOST_DIR)/usr/bin/mkpimage -o $(BINARIES_DIR)/$(notdir $(call qstrip,$(BR2_TARGET_UBOOT_SPL_NAME))).crc \
+ $(@D)/$(call qstrip,$(BR2_TARGET_UBOOT_SPL_NAME))
+endef
+UBOOT_DEPENDENCIES += host-mkpimage
+UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_CRC_SOCFPGA_IMAGE
+endif
+
ifeq ($(BR2_TARGET_UBOOT_ENVIMAGE),y)
ifeq ($(BR_BUILDING),y)
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_ENVIMAGE_SOURCE)),)
--
2.6.1
next prev parent reply other threads:[~2015-10-20 11:32 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-19 21:45 [Buildroot] [PATCH] mpkimage: new package Maxime Hadjinlian
2015-10-19 16:24 ` [Buildroot] [PATCH 0/4] Attempt to improve support for Altera SoC FPGA boards Jan Viktorin
2015-10-19 16:24 ` [Buildroot] [PATCH 1/4] mkpimage: new host package Jan Viktorin
2015-10-19 19:04 ` Maxime Hadjinlian
2015-10-19 20:53 ` Thomas Petazzoni
2015-10-19 21:06 ` Yann E. MORIN
2015-10-19 21:12 ` Maxime Hadjinlian
2015-10-19 21:24 ` Jan Viktorin
2015-10-19 21:36 ` Maxime Hadjinlian
2015-10-19 22:10 ` Jan Viktorin
2015-10-19 22:12 ` Maxime Hadjinlian
2015-10-20 10:41 ` Jan Viktorin
2015-10-19 21:12 ` Thomas Petazzoni
2015-10-19 16:24 ` [Buildroot] [PATCH 2/4] boot/uboot: compute CRC on SPLs for Altera SoC FPGA Jan Viktorin
2015-10-19 16:24 ` [Buildroot] [PATCH 3/4] socfpga: update readme for sockit/socdk boards Jan Viktorin
2015-10-19 16:24 ` [Buildroot] [PATCH 4/4] socfpga: note about unnecessary mkpimage of SPL Jan Viktorin
2015-10-19 16:30 ` [Buildroot] [PATCH 0/4] Attempt to improve support for Altera SoC FPGA boards Jan Viktorin
2015-10-20 11:32 ` [Buildroot] [PATCH v2 0/7] " Jan Viktorin
2015-10-20 11:32 ` [Buildroot] [PATCH v2 1/7] mkpimage: new host package Jan Viktorin
2016-03-22 22:53 ` Thomas Petazzoni
2015-10-20 11:32 ` Jan Viktorin [this message]
2015-10-20 11:36 ` [Buildroot] [PATCH v2 2/7] boot/uboot: compute CRC on SPLs for Altera SoC FPGA Jan Viktorin
2016-03-22 22:54 ` Thomas Petazzoni
2016-03-23 12:57 ` Jan Viktorin
2016-03-23 13:06 ` Thomas Petazzoni
2016-03-23 13:10 ` Jan Viktorin
2015-10-20 11:32 ` [Buildroot] [PATCH v2 3/7] altera: improve readme to cover both supported boards Jan Viktorin
2016-03-22 22:54 ` Thomas Petazzoni
2015-10-20 11:32 ` [Buildroot] [PATCH v2 4/7] altera: update text about the mkpimage Jan Viktorin
2016-03-22 22:55 ` Thomas Petazzoni
2015-10-20 11:32 ` [Buildroot] [PATCH v2 5/7] altera: change mmcblk0 to sdc Jan Viktorin
2016-03-22 22:56 ` Thomas Petazzoni
2015-10-20 11:32 ` [Buildroot] [PATCH v2 6/7] altera: improve fdisk instructions Jan Viktorin
2016-03-22 22:58 ` Thomas Petazzoni
2015-10-20 11:32 ` [Buildroot] [PATCH v2 7/7] altera: remove whitespace before colon Jan Viktorin
2016-03-22 23:01 ` Thomas Petazzoni
2015-10-20 5:27 ` [Buildroot] [PATCH] mpkimage: new package Baruch Siach
2015-10-20 7:19 ` Thomas Petazzoni
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=1445340745-1000-3-git-send-email-viktorin@rehivetech.com \
--to=viktorin@rehivetech.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox