<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/hauke/tools/include, branch master</title>
<subtitle>Hauke Mehrtens staging tree</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/hauke/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/hauke/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/hauke/'/>
<updated>2023-11-02T19:20:53Z</updated>
<entry>
<title>tools: macOS: types.h: fix missing unsigned types</title>
<updated>2023-11-02T19:20:53Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-10-30T19:31:03Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/hauke/commit/?id=4a8961f1dfba33b1e9a38dd0ecb3a8b03c46edbb'/>
<id>urn:sha1:4a8961f1dfba33b1e9a38dd0ecb3a8b03c46edbb</id>
<content type='text'>
For some reason unsigned types were not added in commit 0a06fcf608dd
("build: fix kernel 5.4 on macos"), which led to bunch of hacks, like
commit 3cc57ba4627c ("uboot-sunxi: add missing type __u64") or
commit 997ff740dc44 ("uboot-mediatek: fix build on Mac OS X").

So lets add the missing unsigned types to workaround it in a bit more
maintainable way.

Fixes: #13833
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>tools/include: add more endian macros</title>
<updated>2023-10-29T14:56:41Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2023-01-11T17:39:02Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/hauke/commit/?id=169757c7fd483787fb910c9d7b366fcd91ead49f'/>
<id>urn:sha1:169757c7fd483787fb910c9d7b366fcd91ead49f</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>tools: update elf.h</title>
<updated>2023-03-19T17:20:18Z</updated>
<author>
<name>Mathew McBride</name>
</author>
<published>2023-02-23T05:51:36Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/hauke/commit/?id=c98e09f01bc6788644d22ffd02cd7aaaef63f5ea'/>
<id>urn:sha1:c98e09f01bc6788644d22ffd02cd7aaaef63f5ea</id>
<content type='text'>
OpenWrt contains a 2012 copy of glibc's elf.h, which predates the
introduction of some newer architectures like Arm64 and RISC-V.

Linux 5.13 introduced the "gen-hyprel" tool into the kernel compile
(when virtualization/KVM is enabled) which requires EM_AARCH64 to be
defined.

arch/arm64/kvm/hyp/nvhe/gen-hyprel.c: In function 'init_elf':
arch/arm64/kvm/hyp/nvhe/gen-hyprel.c:289:43: error: 'EM_AARCH64'
  undeclared (first use in this function); did you mean 'EM_IA_64'?
  289 |  assert_eq(elf16toh(elf.ehdr-&gt;e_machine), EM_AARCH64, "%u");
      |                                           ^~~~~~~~~~

Update the copy of elf.h from the latest glibc to fix this.

Compile-tested: ath79, armvirt, mpc85xx, x86
Run-tested: armvirt

Signed-off-by: Mathew McBride &lt;matt@traverse.com.au&gt;
</content>
</entry>
<entry>
<title>build: fix kernel 5.4 on macos</title>
<updated>2020-03-14T13:20:06Z</updated>
<author>
<name>Kevin Darbyshire-Bryant</name>
</author>
<published>2020-03-13T17:56:40Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/hauke/commit/?id=0a06fcf608ddf1f5db389decf266283392344784'/>
<id>urn:sha1:0a06fcf608ddf1f5db389decf266283392344784</id>
<content type='text'>
As part of the kernel build process there are utilities built to run on
the host system that expect linux kernel headers to be available.
Unfortunately macos/darwin doesn't have these headers.

vdso2c requires types.h so provide a minimal stub to satisfy it.

Signed-off-by: Kevin Darbyshire-Bryant &lt;ldir@darbyshire-bryant.me.uk&gt;
</content>
</entry>
<entry>
<title>tools: Update endian definitions for Mac OSX</title>
<updated>2018-12-19T15:08:30Z</updated>
<author>
<name>Kevin Darbyshire-Bryant</name>
</author>
<published>2018-12-18T11:08:28Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/hauke/commit/?id=99ddff0c7f836e05156a0a084b2895ef2607811d'/>
<id>urn:sha1:99ddff0c7f836e05156a0a084b2895ef2607811d</id>
<content type='text'>
  - it appears (at least from OS X verison 10.10, Yosemite) that the
    big and little endian defintions have changed.

    the older

       #include &lt;sys/_endian.h&gt;
       #include &lt;architecture/byte_order.h&gt;

    reference yielded the following warning:

         #define __bswap_16(x)      NXSwapShort(x)
                                    ^
       /usr/include/architecture/byte_order.h:45:1: note: 'NXSwapShort' has been explicitly marked deprecated here

    For the new OS X editions, it seems that we need to refer to:

      #include &lt;netinet/in.h&gt;
      #include &lt;libkern/OSByteOrder.h&gt;

    and respectively use 'OSSwapInt16', 'OSSwapInt32', &amp; 'OSSwapInt64', in
    place of 'NXSwapShort', 'NXSwapLong' &amp; 'NXSwapLongLong'.

Signed-off-by: Kevin Darbyshire-Bryant &lt;ldir@darbyshire-bryant.me.uk&gt;
</content>
</entry>
<entry>
<title>tools: host/include/getline.h: Remove</title>
<updated>2017-04-26T08:29:39Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2017-04-12T20:18:49Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/hauke/commit/?id=74f9c9c1594f205f975723f60448077090a8f014'/>
<id>urn:sha1:74f9c9c1594f205f975723f60448077090a8f014</id>
<content type='text'>
Seems to be useful only for old and unsupported operating systems. Removed and adjusted the mtd-utils Makefile.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: host/include/getline.h: fix FreeBSD 8.0+ support</title>
<updated>2015-05-08T12:09:26Z</updated>
<author>
<name>Imre Kaloz</name>
</author>
<published>2015-05-08T12:09:26Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/hauke/commit/?id=c1a8ff39fc9dc66db7cde605baa2326744ca8e8c'/>
<id>urn:sha1:c1a8ff39fc9dc66db7cde605baa2326744ca8e8c</id>
<content type='text'>
Signed-off-by: Jo-Philipp Wich &lt;jow@openwrt.org&gt;
Signed-off-by: Imre Kaloz &lt;kaloz@openwrt.org&gt;

SVN-Revision: 45628
</content>
</entry>
<entry>
<title>tools: include endian.h from byteswap.h to ensure that bswap_* is available</title>
<updated>2013-07-06T14:49:08Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2013-07-06T14:49:08Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/hauke/commit/?id=0c10f3911dfe532dc26e56d45460ed885281f695'/>
<id>urn:sha1:0c10f3911dfe532dc26e56d45460ed885281f695</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 37183
</content>
</entry>
<entry>
<title>build: BSD compile fixes</title>
<updated>2013-03-07T17:32:29Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2013-03-07T17:32:29Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/hauke/commit/?id=1f77bfff9608f97996bffdb28dabec4e787631f6'/>
<id>urn:sha1:1f77bfff9608f97996bffdb28dabec4e787631f6</id>
<content type='text'>
following patch allows to build images for Qemu ARM on
OpenBSD 5.2 amd64 and FreeBSD 9.1 amd64.

Mostly small pieces of code changes to get things right on the
specific platform.

Updated the README to describe better, which tools on the host
are required. Added some kind of prepare scripts to install needed
tools on BSD via packages.

Signed-off-by: Waldemar Brodkorb &lt;mail@waldemar-brodkorb.de&gt;

SVN-Revision: 35900
</content>
</entry>
<entry>
<title>kernel: fix portability issues on the x86 specific relocs host tool, fixes build on mac os x</title>
<updated>2012-07-20T12:28:50Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2012-07-20T12:28:50Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/hauke/commit/?id=b1f318de533bd8bb8eba8a1d25752b2a4de83d07'/>
<id>urn:sha1:b1f318de533bd8bb8eba8a1d25752b2a4de83d07</id>
<content type='text'>
SVN-Revision: 32783
</content>
</entry>
</feed>
