<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/tools/mkimage, branch v19.07.0</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v19.07.0</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v19.07.0'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2019-09-12T02:25:03Z</updated>
<entry>
<title>tools: mkimage: fix __u64 typedef conflict with new glibc</title>
<updated>2019-09-12T02:25:03Z</updated>
<author>
<name>Yousong Zhou</name>
</author>
<published>2019-09-11T13:25:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=f54bc3985a2fbc30256d9aee8ea3b60b8aee593a'/>
<id>urn:sha1:f54bc3985a2fbc30256d9aee8ea3b60b8aee593a</id>
<content type='text'>
Including "sys/stat.h" from newer glibc will cause __u64 from linux uapi
header to be included, causing compilation failure for u-boot tools
USE_HOSTCC

Remove typedef for __u64 in include/compiler.h to fix the issue.  It should be
safe because as of u-boot-2018.03, no ref to __u64 is found under u-boot tools/
directory

Error message snippet follows

	  HOSTCC  tools/mkenvimage.o
	In file included from /usr/include/asm-generic/types.h:7,
			 from /usr/include/asm/types.h:5,
			 from /usr/include/linux/types.h:5,
			 from /usr/include/linux/stat.h:5,
			 from /usr/include/bits/statx.h:30,
			 from /usr/include/sys/stat.h:446,
			 from tools/mkenvimage.c:21:
	/usr/include/asm-generic/int-ll64.h:31:42: error: conflicting types for '__u64'
	   31 | __extension__ typedef unsigned long long __u64;
	      |                                          ^~~~~
	In file included from &lt;command-line&gt;:
	././include/compiler.h:69:18: note: previous declaration of '__u64' was here
	   69 | typedef uint64_t __u64;
	      |                  ^~~~~
	make[5]: *** [scripts/Makefile.host:116: tools/mkenvimage.o] Error 1

Ref: https://forum.openwrt.org/t/compile-error-19-07/44423
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1699194
Signed-off-by: Yousong Zhou &lt;yszhou4tech@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/mkimage: use http download server (fixes FS#2052)</title>
<updated>2019-03-07T12:28:30Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2019-03-05T12:18:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=fd8705e635a9392c51f7a644ae4211cb14cbe298'/>
<id>urn:sha1:fd8705e635a9392c51f7a644ae4211cb14cbe298</id>
<content type='text'>
Fixes timeouts with trying to access the FTP site.
Also remove mirror2.openwrt.org, which does not keep current tarballs

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>tools: mkimage: provide dtc path during build</title>
<updated>2018-04-19T06:34:34Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2018-04-19T06:26:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a656ea0bdb5d3d4a4948457942e84faa5a4f5cfe'/>
<id>urn:sha1:a656ea0bdb5d3d4a4948457942e84faa5a4f5cfe</id>
<content type='text'>
The new mkimage version requires a CONFIG_MKIMAGE_DTC_PATH variable to be
provided during build, in order to hardcode a path to a suitable DT
compiler executable.

Failure to do so will result in stray "sh: 1: -I: not found" errors when
invoking mkimage for FIT image generation.

Fix the issue by supplying "dtc" as CONFIG_MKIMAGE_DTC_PATH value during
build. As we intend our host utilities to be relocatable and since we're
already overriding PATH when invoking mkimage, an absolute path is not
required.

Fixes: b13e981d72 ("tools/mkimage: update to version 2018.03")
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>tools/mkimage: update to version 2018.03</title>
<updated>2018-04-18T21:59:32Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2018-04-14T21:00:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=b13e981d72c14ba4c39f85f0d24a8f7947a1b2c4'/>
<id>urn:sha1:b13e981d72c14ba4c39f85f0d24a8f7947a1b2c4</id>
<content type='text'>
This activates support for fit images and some other new mkimage
features. Some of the patches were applied upstream and could be
removed.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>tools/mkimage: copy mkenvimage to bin directory</title>
<updated>2018-02-13T09:01:52Z</updated>
<author>
<name>Evgeniy Didin</name>
</author>
<published>2018-02-12T16:42:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=063fa4cfa28a6bdf502cebed3f984fc738bfad25'/>
<id>urn:sha1:063fa4cfa28a6bdf502cebed3f984fc738bfad25</id>
<content type='text'>
For some boards u-boot binary environment file is required,
which is generated by mkenvimage utility. But in OpenWrt there
is no separate support for mkenvimage, which is a part of u-boot tools.
mkenvimage gets built in u-boot/tools as well as mkimage anyways.

So lets just copy mkenvimage to the $(STAGING_DIR_HOST)/bin/ directory.

Signed-off-by: Evgeniy Didin &lt;Evgeniy.Didin@synopsys.com&gt;
CC: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;
CC: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
CC: John Crispin &lt;john@phrozen.org&gt;
</content>
</entry>
<entry>
<title>tools/mkimage: fix musl build</title>
<updated>2017-08-23T13:12:15Z</updated>
<author>
<name>Marty Plummer</name>
</author>
<published>2017-08-11T07:11:39Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=9ebb23cf51c78802dc01cdbf37f65440c5325dab'/>
<id>urn:sha1:9ebb23cf51c78802dc01cdbf37f65440c5325dab</id>
<content type='text'>
Taken from: http://git.denx.de/?p=u-boot.git;a=commit;h=26e355d131a6b56ea78a156c1cee4f6ba0500b37

Signed-off-by: Marty Plummer &lt;ntzrmtthihu777@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: mkimage: pass crypto libraries through HOST_LOADLIBES (FS#381)</title>
<updated>2017-01-11T02:48:30Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2017-01-11T01:43:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=69be65b594c4fafbc4e58dd3cd235547f02a33ca'/>
<id>urn:sha1:69be65b594c4fafbc4e58dd3cd235547f02a33ca</id>
<content type='text'>
Since linker argument order is significant on modern host compilers, pass
the required libcrypto libraries through the HOST_LOADLIBES variable in
order to ensure proper order of the final linker command line.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>tools: mkimage: use pkg-config to discover libcrypto linker flags</title>
<updated>2017-01-05T13:21:27Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2017-01-05T13:15:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=0c03650160d388f5dd83ba3e30da5d8223acf283'/>
<id>urn:sha1:0c03650160d388f5dd83ba3e30da5d8223acf283</id>
<content type='text'>
LibreSSL's libcrypto.so has an indirect dependency to librt for clock_gettime()
on Linux.

Use pkg-config to portably discover the required linker flags.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>treewide: clean up download hashes</title>
<updated>2016-12-16T21:39:22Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2016-12-16T16:32:10Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=720b99215da295a2e7b4acdef30b58bec6acedc2'/>
<id>urn:sha1:720b99215da295a2e7b4acdef30b58bec6acedc2</id>
<content type='text'>
Replace *MD5SUM with *HASH, replace MD5 hashes with SHA256

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>mkimage: fix openssl 1.1.x compat fix with libressl</title>
<updated>2016-11-30T19:24:33Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2016-11-30T19:24:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=e678c9f764c37f963e6667777b6a05bddcf05ea5'/>
<id>urn:sha1:e678c9f764c37f963e6667777b6a05bddcf05ea5</id>
<content type='text'>
libressl sets OPENSSL_VERSION_NUMBER to 0x20000000L, which breaks API
checks based on it.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
</feed>
