summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-02-22 18:12:00 -0800
committerMichael Forney <mforney@mforney.org>2020-03-01 19:24:52 -0800
commit5770e9b04cfcddeb228520bd9961953a225639af (patch)
tree77680bef6983c8bd09c73ac29add132f02cb8186
parent5a498ee493837443b61eef73009cdd84b1d0cc70 (diff)
Add u-boot 2020.01 for mkimage
-rw-r--r--pkg/gen.lua1
-rw-r--r--pkg/u-boot/.gitignore2
-rw-r--r--pkg/u-boot/gen.lua62
-rw-r--r--pkg/u-boot/generated/timestamp_autogenerated.h5
-rw-r--r--pkg/u-boot/generated/version_autogenerated.h4
-rw-r--r--pkg/u-boot/sha2561
-rw-r--r--pkg/u-boot/url1
-rw-r--r--pkg/u-boot/ver1
8 files changed, 77 insertions, 0 deletions
diff --git a/pkg/gen.lua b/pkg/gen.lua
index 693f7c5b..073ee250 100644
--- 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
new file mode 100644
index 00000000..08796185
--- /dev/null
+++ 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
new file mode 100644
index 00000000..2be0ec3e
--- /dev/null
+++ 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
new file mode 100644
index 00000000..d1969196
--- /dev/null
+++ 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
new file mode 100644
index 00000000..c9f10600
--- /dev/null
+++ 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
new file mode 100644
index 00000000..581ae648
--- /dev/null
+++ 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
new file mode 100644
index 00000000..aeb89aa0
--- /dev/null
+++ 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
new file mode 100644
index 00000000..12db6de4
--- /dev/null
+++ b/pkg/u-boot/ver
@@ -0,0 +1 @@
+2020.01 r0