<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/svanheule/tools/include, branch main</title>
<subtitle>Staging tree of Sander Vanheule</subtitle>
<id>https://git.openwrt.org/openwrt/staging/svanheule/atom?h=main</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/svanheule/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/svanheule/'/>
<updated>2025-05-19T22:47:37Z</updated>
<entry>
<title>treewide: strip trailing whitespace</title>
<updated>2025-05-19T22:47:37Z</updated>
<author>
<name>Mieczyslaw Nalewaj</name>
</author>
<published>2025-05-19T12:27:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/svanheule/commit/?id=a238170e570eb3d093aae1611e4ae7f98f6f9bfc'/>
<id>urn:sha1:a238170e570eb3d093aae1611e4ae7f98f6f9bfc</id>
<content type='text'>
Strip trailing whitespace in all code:
find . -type f | grep "\.c$" | xargs sed -i 's/[ \t]\+$//'
find . -type f | grep "\.h$" | xargs sed -i 's/[ \t]\+$//'
find . -type f | grep "\.dts$" | xargs sed -i 's/[ \t]\+$//'
find . -type f | grep "\.dtsi$" | xargs sed -i 's/[ \t]\+$//'

Signed-off-by: Mieczyslaw Nalewaj &lt;namiltd@yahoo.com&gt;
Link: https://github.com/openwrt/openwrt/pull/18626
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: add more linux include files to fix x86 build on macos</title>
<updated>2024-05-07T10:50:27Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2024-05-07T10:18:08Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/svanheule/commit/?id=c3d4598c0129671d534e5556d25b00229fc22095'/>
<id>urn:sha1:c3d4598c0129671d534e5556d25b00229fc22095</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<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.openwrt.org/openwrt/staging/svanheule/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.openwrt.org/openwrt/staging/svanheule/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.openwrt.org/openwrt/staging/svanheule/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.openwrt.org/openwrt/staging/svanheule/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.openwrt.org/openwrt/staging/svanheule/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.openwrt.org/openwrt/staging/svanheule/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.openwrt.org/openwrt/staging/svanheule/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.openwrt.org/openwrt/staging/svanheule/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>
</feed>
