All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm/fiptool : provides fiptool for packaging
@ 2020-06-22 14:16 Khasim Mohammed
  2020-06-23  7:05 ` Diego Sueiro
  0 siblings, 1 reply; 3+ messages in thread
From: Khasim Mohammed @ 2020-06-22 14:16 UTC (permalink / raw)
  To: meta-arm; +Cc: nd, Khasim Syed Mohammed

Firmware Image Package (FIP), is a packaging format used
by TF-A to package the firmware images in a single binary,
this tool is used to package the binaries in FIP format.

Change-Id: Ie4108915c5d63be340d6f53148a6dff03d6d48e7
Issue-Id: PLATFORMS-3134
Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com>
---
 .../fiptool/fiptool-native_2.3.bb             | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb

diff --git a/meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb b/meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb
new file mode 100644
index 0000000..25ca111
--- /dev/null
+++ b/meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb
@@ -0,0 +1,29 @@
+# Firmware Image Package (FIP)
+# It is a packaging format used by TF-A to package the
+# firmware images in a single binary.
+
+DESCRIPTION = "fiptool - Trusted Firmware tool for packaging"
+LICENSE = "BSD-3-Clause"
+
+SRC_URI = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;destsuffix=fiptool-${PV};protocol=https;"
+LIC_FILES_CHKSUM = "file://docs/license.rst;md5=189505435dbcdcc8caa63c46fe93fa89"
+
+# Use fiptool from TF-A v2.3
+SRCREV = "ecd27ad85f1eba29f6bf92c39dc002c85b07dad5"
+
+DEPENDS += "openssl-native"
+
+inherit native
+
+do_compile () {
+    # These changes are needed to have the fiptool compiling and executing properly
+    sed -i '/^LDLIBS/ s,$, \$\{BUILD_LDFLAGS},' ${S}/tools/fiptool/Makefile
+    sed -i '/^INCLUDE_PATHS/ s,$, \$\{BUILD_CFLAGS},' ${S}/tools/fiptool/Makefile
+
+    oe_runmake fiptool
+}
+
+do_install () {
+    install -d ${D}${bindir}/
+    install -m 0755 tools/fiptool/fiptool ${D}${bindir}
+}
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm/fiptool : provides fiptool for packaging
  2020-06-22 14:16 [PATCH] arm/fiptool : provides fiptool for packaging Khasim Mohammed
@ 2020-06-23  7:05 ` Diego Sueiro
  2020-06-24 18:39   ` [meta-arm] " Jon Mason
  0 siblings, 1 reply; 3+ messages in thread
From: Diego Sueiro @ 2020-06-23  7:05 UTC (permalink / raw)
  To: meta-arm

On Mon, Jun 22, 2020 at 03:16 PM, Khasim Mohammed wrote:

>
> Firmware Image Package (FIP), is a packaging format used
> by TF-A to package the firmware images in a single binary,
> this tool is used to package the binaries in FIP format.
> 
> Change-Id: Ie4108915c5d63be340d6f53148a6dff03d6d48e7
> Issue-Id: PLATFORMS-3134
> Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com>

Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>

> ---
>  .../fiptool/fiptool-native_2.3.bb             | 29 +++++++++++++++++++
>  1 file changed, 29 insertions(+)
>  create mode 100644 meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb
> 
> diff --git a/meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb
> b/meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb
> new file mode 100644
> index 0000000..25ca111
> --- /dev/null
> +++ b/meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb
> @@ -0,0 +1,29 @@
> +# Firmware Image Package (FIP)
> +# It is a packaging format used by TF-A to package the
> +# firmware images in a single binary.
> +
> +DESCRIPTION = "fiptool - Trusted Firmware tool for packaging"
> +LICENSE = "BSD-3-Clause"
> +
> +SRC_URI =
> "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;destsuffix=fiptool-${PV};protocol=https;"
> +LIC_FILES_CHKSUM =
> "file://docs/license.rst;md5=189505435dbcdcc8caa63c46fe93fa89"
> +
> +# Use fiptool from TF-A v2.3
> +SRCREV = "ecd27ad85f1eba29f6bf92c39dc002c85b07dad5"
> +
> +DEPENDS += "openssl-native"
> +
> +inherit native
> +
> +do_compile () {
> +    # These changes are needed to have the fiptool compiling and executing
> properly
> +    sed -i '/^LDLIBS/ s,$, \$\{BUILD_LDFLAGS},' ${S}/tools/fiptool/Makefile
> +    sed -i '/^INCLUDE_PATHS/ s,$, \$\{BUILD_CFLAGS},'
> ${S}/tools/fiptool/Makefile
> +
> +    oe_runmake fiptool
> +}
> +
> +do_install () {
> +    install -d ${D}${bindir}/
> +    install -m 0755 tools/fiptool/fiptool ${D}${bindir}
> +}
> -- 
> 2.17.1
> 
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-arm] [PATCH] arm/fiptool : provides fiptool for packaging
  2020-06-23  7:05 ` Diego Sueiro
@ 2020-06-24 18:39   ` Jon Mason
  0 siblings, 0 replies; 3+ messages in thread
From: Jon Mason @ 2020-06-24 18:39 UTC (permalink / raw)
  To: Diego Sueiro; +Cc: meta-arm

On Tue, Jun 23, 2020 at 12:05:37AM -0700, Diego Sueiro wrote:
> On Mon, Jun 22, 2020 at 03:16 PM, Khasim Mohammed wrote:
> 
> >
> > Firmware Image Package (FIP), is a packaging format used
> > by TF-A to package the firmware images in a single binary,
> > this tool is used to package the binaries in FIP format.
> > 
> > Change-Id: Ie4108915c5d63be340d6f53148a6dff03d6d48e7
> > Issue-Id: PLATFORMS-3134
> > Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com>
> 
> Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>

Pulled into master.

Thanks,
Jon

> 
> > ---
> >  .../fiptool/fiptool-native_2.3.bb             | 29 +++++++++++++++++++
> >  1 file changed, 29 insertions(+)
> >  create mode 100644 meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb
> > 
> > diff --git a/meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb
> > b/meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb
> > new file mode 100644
> > index 0000000..25ca111
> > --- /dev/null
> > +++ b/meta-arm/recipes-devtools/fiptool/fiptool-native_2.3.bb
> > @@ -0,0 +1,29 @@
> > +# Firmware Image Package (FIP)
> > +# It is a packaging format used by TF-A to package the
> > +# firmware images in a single binary.
> > +
> > +DESCRIPTION = "fiptool - Trusted Firmware tool for packaging"
> > +LICENSE = "BSD-3-Clause"
> > +
> > +SRC_URI =
> > "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;destsuffix=fiptool-${PV};protocol=https;"
> > +LIC_FILES_CHKSUM =
> > "file://docs/license.rst;md5=189505435dbcdcc8caa63c46fe93fa89"
> > +
> > +# Use fiptool from TF-A v2.3
> > +SRCREV = "ecd27ad85f1eba29f6bf92c39dc002c85b07dad5"
> > +
> > +DEPENDS += "openssl-native"
> > +
> > +inherit native
> > +
> > +do_compile () {
> > +    # These changes are needed to have the fiptool compiling and executing
> > properly
> > +    sed -i '/^LDLIBS/ s,$, \$\{BUILD_LDFLAGS},' ${S}/tools/fiptool/Makefile
> > +    sed -i '/^INCLUDE_PATHS/ s,$, \$\{BUILD_CFLAGS},'
> > ${S}/tools/fiptool/Makefile
> > +
> > +    oe_runmake fiptool
> > +}
> > +
> > +do_install () {
> > +    install -d ${D}${bindir}/
> > +    install -m 0755 tools/fiptool/fiptool ${D}${bindir}
> > +}
> > -- 
> > 2.17.1
> > 
> >

> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-24 18:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-22 14:16 [PATCH] arm/fiptool : provides fiptool for packaging Khasim Mohammed
2020-06-23  7:05 ` Diego Sueiro
2020-06-24 18:39   ` [meta-arm] " Jon Mason

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.