summaryrefslogtreecommitdiff
path: root/pkg/u-boot/gen.lua
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 /pkg/u-boot/gen.lua
parent5a498ee493837443b61eef73009cdd84b1d0cc70 (diff)
Add u-boot 2020.01 for mkimage
Diffstat (limited to 'pkg/u-boot/gen.lua')
-rw-r--r--pkg/u-boot/gen.lua62
1 files changed, 62 insertions, 0 deletions
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'