initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
[PATCH] Fix musl build
|
||||
|
||||
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
|
||||
---
|
||||
src/mtd.c | 1 +
|
||||
src/mtd.h | 5 +++++
|
||||
2 files changed, 6 insertions(+)
|
||||
|
||||
diff --git a/src/mtd.c b/src/mtd.c
|
||||
index 1edc441..6d2264c 100644
|
||||
--- a/src/mtd.c
|
||||
+++ b/src/mtd.c
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
+#include <stddef.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
diff --git a/src/mtd.h b/src/mtd.h
|
||||
index bd21add..debfc84 100644
|
||||
--- a/src/mtd.h
|
||||
+++ b/src/mtd.h
|
||||
@@ -31,6 +31,11 @@
|
||||
#include "BootControlBlocks.h"
|
||||
#include "rom_nand_hamming_code_ecc.h"
|
||||
|
||||
+// musl library doesn't define loff_t
|
||||
+#if !defined(__GLIBC__) && !defined(__UCLIBC__)
|
||||
+#define loff_t off_t
|
||||
+#endif
|
||||
+
|
||||
//------------------------------------------------------------------------------
|
||||
// Re-definitions of true and false, because the standard ones aren't good
|
||||
// enough?
|
||||
--
|
||||
2.5.1
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
[PATCH] Fix build for recent toolchains
|
||||
|
||||
Starting with Linux 4.4 headers, mtd-user.h isn't including stdint.h
|
||||
anymore which breaks the build.
|
||||
|
||||
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
|
||||
---
|
||||
src/BootControlBlocks.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/BootControlBlocks.h b/src/BootControlBlocks.h
|
||||
index 192eb61..aacdb64 100644
|
||||
--- a/src/BootControlBlocks.h
|
||||
+++ b/src/BootControlBlocks.h
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef BOOTCONTROLBLOCKS_H_
|
||||
#define BOOTCONTROLBLOCKS_H_
|
||||
|
||||
+#include <stdint.h>
|
||||
+
|
||||
#define NCB_FINGERPRINT1 0x504d5453 //!< 'STMP'
|
||||
#define NCB_FINGERPRINT2 0x2042434e //!< 'NCB<space>' - NAND Control Block
|
||||
#define NCB_FINGERPRINT3 0x4e494252 //!< 'RBIN' - ROM Boot Image Block - N
|
||||
--
|
||||
2.6.4
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_IMX_KOBS
|
||||
bool "imx-kobs"
|
||||
depends on BR2_arm # Only relevant for i.MX
|
||||
help
|
||||
The imx-kobs tool is used for writing images to NAND on i.MX
|
||||
platforms.
|
||||
|
||||
This library is provided by Freescale as-is and doesn't have
|
||||
an upstream.
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 5855c8964f908ad30e5d4500180ee57c51af68186289ef1bdf8553ee60d3b1f5 imx-kobs-a0e9adce2fb7fcd57e794d7f9a5deba0f94f521b.tar.gz
|
||||
sha256 204d8eff92f95aac4df6c8122bc1505f468f3a901e5a4cc08940e0ede1938994 COPYING
|
||||
@@ -0,0 +1,12 @@
|
||||
################################################################################
|
||||
#
|
||||
# imx-kobs
|
||||
#
|
||||
################################################################################
|
||||
|
||||
IMX_KOBS_VERSION = a0e9adce2fb7fcd57e794d7f9a5deba0f94f521b
|
||||
IMX_KOBS_SITE = $(call github,codeauroraforum,imx-kobs,$(IMX_KOBS_VERSION))
|
||||
IMX_KOBS_LICENSE = GPL-2.0+
|
||||
IMX_KOBS_LICENSE_FILES = COPYING
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user