From: Dagg Stompler <daggs@gmx.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/4] odroidc2_atf: new Package
Date: Fri, 17 Jul 2020 19:46:41 +0300 [thread overview]
Message-ID: <20200717164643.4702-2-daggs@gmx.com> (raw)
In-Reply-To: <20200717164643.4702-1-daggs@gmx.com>
introduce a package that holds the ATF for AmLogic's Odroid C2 boards
Signed-off-by: Dagg Stompler <daggs@gmx.com>
---
DEVELOPERS | 1 +
package/Config.in.host | 1 +
package/odroidc2_atf/Config.in.host | 8 ++++++++
package/odroidc2_atf/odroidc2_atf.hash | 2 ++
package/odroidc2_atf/odroidc2_atf.mk | 26 ++++++++++++++++++++++++++
5 files changed, 38 insertions(+)
create mode 100644 package/odroidc2_atf/Config.in.host
create mode 100644 package/odroidc2_atf/odroidc2_atf.hash
create mode 100644 package/odroidc2_atf/odroidc2_atf.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 64af92dd2f..82044605b7 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -622,6 +622,7 @@ F: package/kvm-unit-tests
N: Dagg Stompler <daggs@gmx.com>
F: package/meson-tools/
+F: package/odroidc2_atf/
N: Daniel J. Leach <dleach@belcan.com>
F: package/dacapo/
diff --git a/package/Config.in.host b/package/Config.in.host
index e222e7e448..964ab00aec 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -50,6 +50,7 @@ menu "Host utilities"
source "package/mtools/Config.in.host"
source "package/mxsldr/Config.in.host"
source "package/odb/Config.in.host"
+ source "package/odroidc2_atf/Config.in.host"
source "package/omap-u-boot-utils/Config.in.host"
source "package/openocd/Config.in.host"
source "package/opkg-utils/Config.in.host"
diff --git a/package/odroidc2_atf/Config.in.host b/package/odroidc2_atf/Config.in.host
new file mode 100644
index 0000000000..b5307fb05d
--- /dev/null
+++ b/package/odroidc2_atf/Config.in.host
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_HOST_ODROIDC2_ATF
+ bool "host odroidc2_atf"
+ help
+ odroidc2_atf is a package that holst the minimal file needed for the ATF (ARM Trusted Firmware) from hardkernel's
+ uboot repository and uses it to allow safe boot of mainline u-boot kernels.
+ the files were taken without chaning from https://github.com/hardkernel/u-boot/tree/odroidc2-v2015.01
+
+ https://github.com/daggs1/odroidc2_atf
diff --git a/package/odroidc2_atf/odroidc2_atf.hash b/package/odroidc2_atf/odroidc2_atf.hash
new file mode 100644
index 0000000000..41ea3a6ba5
--- /dev/null
+++ b/package/odroidc2_atf/odroidc2_atf.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 991fb15908410c6c8a6ef2e0da368ca8e2b813d123382f0e8958814ad0aead97 odroidc2_atf-13a8560b2884cb5fa13537e1aa193e3cb7b2d996.tar.gz
diff --git a/package/odroidc2_atf/odroidc2_atf.mk b/package/odroidc2_atf/odroidc2_atf.mk
new file mode 100644
index 0000000000..ee2f9e85b3
--- /dev/null
+++ b/package/odroidc2_atf/odroidc2_atf.mk
@@ -0,0 +1,26 @@
+################################################################################
+#
+# Odroidc2ATF
+#
+################################################################################
+
+HOST_ODROIDC2_ATF_VERSION = 13a8560b2884cb5fa13537e1aa193e3cb7b2d996
+HOST_ODROIDC2_ATF_SITE = $(call github,daggs1,OdroidC2ATF,$(HOST_ODROIDC2_ATF_VERSION))
+HOST_ODROIDC2_ATF_LICENSE = GPL-2.0
+HOST_ODROIDC2_ATF_LICENSE_FILES = COPYING COPYING.txt README
+HOST_ODROIDC2_ATF_FIRMWARE_FOLDER = $(HOST_DIR)/usr/share/odroidc2_atf
+HOST_ODROIDC2_ATF_FIRMWARE_FILES = bins/bl1.bin.hardkernel bins/bl30.bin bins/bl301.bin bins/bl31.bin bins/bl2.package
+
+define HOST_ODROIDC2_ATF_BUILD_CMDS
+ $(MAKE) -C $(@D)/fip_create CC="$(HOSTCC)" CFLAGS="$(HOST_CFLAGS)" LDFLAGS="$(HOST_LDFLAGS)"
+endef
+
+define HOST_ODROIDC2_ATF_INSTALL_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/fip_create/fip_create $(HOST_DIR)/bin
+ mkdir -p $(HOST_ODROIDC2_ATF_FIRMWARE_FOLDER)
+ $(foreach f,$(HOST_ODROIDC2_ATF_FIRMWARE_FILES),
+ $(INSTALL) -D -m 0644 $(@D)/$(f) $(HOST_ODROIDC2_ATF_FIRMWARE_FOLDER)/
+ )
+endef
+
+$(eval $(host-generic-package))
--
2.27.0
next prev parent reply other threads:[~2020-07-17 16:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 16:46 [Buildroot] [PATCH 1/4] meson-tools: new Package Dagg Stompler
2020-07-17 16:46 ` Dagg Stompler [this message]
2020-09-03 18:50 ` [Buildroot] [PATCH 2/4] odroidc2_atf: " Thomas Petazzoni
2020-07-17 16:46 ` [Buildroot] [PATCH 3/4] board/odroidc2: add board Dagg Stompler
2020-09-03 18:53 ` Thomas Petazzoni
2020-07-17 16:46 ` [Buildroot] [PATCH 4/4] configs/odroidc2: add defconfig Dagg Stompler
2020-08-29 22:12 ` [Buildroot] [PATCH 1/4] meson-tools: new Package 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=20200717164643.4702-2-daggs@gmx.com \
--to=daggs@gmx.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