summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Westermann <bernd.westermann@it-west.de>2019-07-17 09:57:58 +0200
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2019-07-17 15:21:27 +0200
commit1e4bc6ef34c1c782bf22128c04847543200fdb0c (patch)
treee5e9965be0307e9d44b447322fba800d63246d1f
parent393c71c804785481b4578faae9723b4456f5cd29 (diff)
downloadmeta-phytec-1e4bc6ef34c1c782bf22128c04847543200fdb0c.tar.bz2
meta-phytec-1e4bc6ef34c1c782bf22128c04847543200fdb0c.zip
UPSTREAM: recipes-bsp: imx-kobs: add imx-kobs recipe
Add imx-kobs recipe. imx-kobs is a tool to create and write Freescale/NXP I.MX NAND boot related boot data structure to nand flash. Signed-off-by: Bernd Westermann <bernd.westermann@it-west.de> Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rw-r--r--recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch32
-rw-r--r--recipes-bsp/imx-kobs/imx-kobs_git.bb19
2 files changed, 51 insertions, 0 deletions
diff --git a/recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch b/recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch
new file mode 100644
index 0000000..9502664
--- /dev/null
+++ b/recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch
@@ -0,0 +1,32 @@
+From c183a648958ab4454247cfd88d01da7730a53d19 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Thu, 11 May 2017 00:59:07 -0700
+Subject: [PATCH] Add missing includes as pointed out by musl
+
+These headers are indrectly included when building with
+glibc, this is exposed when compiling with musl systems
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ src/mtd.h | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/mtd.h b/src/mtd.h
+index 6cb0ca2..0eaea48 100644
+--- a/src/mtd.h
++++ b/src/mtd.h
+@@ -25,9 +25,12 @@
+ #ifndef MTD_H
+ #define MTD_H
+
++#define _GNU_SOURCE
++#include <fcntl.h>
+ #include <mtd/mtd-user.h>
+ #include <endian.h>
+ #include <stdint.h>
++#include <stddef.h>
+
+ #include "BootControlBlocks.h"
+ #include "rom_nand_hamming_code_ecc.h"
+--
+2.12.2
diff --git a/recipes-bsp/imx-kobs/imx-kobs_git.bb b/recipes-bsp/imx-kobs/imx-kobs_git.bb
new file mode 100644
index 0000000..864cbe5
--- /dev/null
+++ b/recipes-bsp/imx-kobs/imx-kobs_git.bb
@@ -0,0 +1,19 @@
+# Copyright (C) 2013-2016 Freescale Semiconductor
+# Copyright 2017-2018 NXP
+# Copyright 2018 (C) O.S. Systems Software LTDA.
+
+SUMMARY = "Nand boot write source"
+SECTION = "base"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
+
+PV = "5.5+git${SRCPV}"
+SRC_URI = "git://github.com/NXPmicro/imx-kobs.git;protocal=https \
+ file://0001-Add-missing-includes-as-pointed-out-by-musl.patch \
+"
+SRCREV = "a0e9adce2fb7fcd57e794d7f9a5deba0f94f521b"
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig
+
+COMPATIBLE_MACHINE = "(imx)"