commit: 5770e9b04cfcddeb228520bd9961953a225639af
parent 5a498ee493837443b61eef73009cdd84b1d0cc70
Author: Michael Forney <mforney@mforney.org>
Date: Sat, 22 Feb 2020 18:12:00 -0800
Add u-boot 2020.01 for mkimage
Diffstat:
8 files changed, 77 insertions(+), 0 deletions(-)
diff --git a/pkg/gen.lua b/pkg/gen.lua
@@ -105,6 +105,7 @@ subgen 'tz'
subgen 'ubase'
subgen 'unzip'
subgen 'usbids'
+subgen 'u-boot'
subgen 'utf8proc'
subgen 'util-linux'
subgen 'velox'
diff --git a/pkg/u-boot/.gitignore b/pkg/u-boot/.gitignore
@@ -0,0 +1,2 @@
+/src
+/u-boot-2020.01.tar.bz2
diff --git a/pkg/u-boot/gen.lua b/pkg/u-boot/gen.lua
@@ -0,0 +1,62 @@
+cflags{
+ '-D USE_HOSTCC',
+ '-I $dir',
+ '-I $srcdir/tools',
+ '-idirafter $srcdir/include',
+ '-include $srcdir/include/compiler.h',
+}
+
+-- XXX: missing imximage.c and fdtdec_common.c, but seems to build without them
+local objs = objects[[
+ tools/(
+ aisimage.c
+ atmelimage.c
+ default_image.c
+ imagetool.c
+ imx8image.c
+ imx8mimage.c
+ kwbimage.c
+ lpc32xximage.c
+ mxsimage.c
+ omapimage.c
+ os_support.c
+ pblimage.c
+ pbl_crc32.c
+ vybridimage.c
+ stm32image.c
+ rkcommon.c
+ rkimage.c
+ rksd.c
+ rkspi.c
+ socfpgaimage.c
+ ublimage.c
+ zynqimage.c
+ zynqmpimage.c
+ zynqmpbif.c
+ gpimage.c
+ gpimage-common.c
+ mtk_image.c
+ )
+ common/(
+ bootm.c
+ image.c
+ hash.c
+ )
+ lib/(
+ crc16.c
+ crc32.c
+ fdtdec.c
+ md5.c
+ rc4.c
+ sha1.c
+ sha256.c
+ )
+]]
+
+exe('mkimage', {'tools/mkimage.c', objs})
+file('bin/mkimage', '755', '$outdir/mkimage')
+
+exe('dumpimage', {'tools/dumpimage.c', objs})
+file('bin/dumpimage', '755', '$outdir/dumpimage')
+
+fetch 'curl'
diff --git a/pkg/u-boot/generated/timestamp_autogenerated.h b/pkg/u-boot/generated/timestamp_autogenerated.h
@@ -0,0 +1,5 @@
+#define U_BOOT_DATE "Jan 6 2020"
+#define U_BOOT_TIME "15:56:46"
+#define U_BOOT_TZ "-0500"
+#define U_BOOT_DMI_DATE "01/06/2020"
+#define U_BOOT_BUILD_DATE 0x20200106
diff --git a/pkg/u-boot/generated/version_autogenerated.h b/pkg/u-boot/generated/version_autogenerated.h
@@ -0,0 +1,4 @@
+#define PLAIN_VERSION "2020.01"
+#define U_BOOT_VERSION "U-Boot " PLAIN_VERSION
+#define CC_VERSION_STRING "cc"
+#define LD_VERSION_STRING "ld"
diff --git a/pkg/u-boot/sha256 b/pkg/u-boot/sha256
@@ -0,0 +1 @@
+aa453c603208b1b27bd03525775a7f79b443adec577fdc6e8f06974025a135f1 u-boot-2020.01.tar.bz2
diff --git a/pkg/u-boot/url b/pkg/u-boot/url
@@ -0,0 +1 @@
+url = "ftp://ftp.denx.de/pub/u-boot/u-boot-2020.01.tar.bz2"
diff --git a/pkg/u-boot/ver b/pkg/u-boot/ver
@@ -0,0 +1 @@
+2020.01 r0