<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/barebox.git/scripts/include/linux, branch master</title>
<subtitle>git.pengutronix.de: git/barebox.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/'/>
<entry>
<title>include: move ARRAY_AND_SIZE to &lt;linux/kernel.h&gt;</title>
<updated>2021-11-01T09:08:38+00:00</updated>
<author>
<name>Ahmad Fatoum</name>
<email>a.fatoum@pengutronix.de</email>
</author>
<published>2021-10-30T14:17:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=1ba220dcc3a8bd0369555e7c41ed246e889038fe'/>
<id>1ba220dcc3a8bd0369555e7c41ed246e889038fe</id>
<content type='text'>
Linux defines this macro at multiple places. We define it once, but in
&lt;common.h&gt;, which is a bit heavy weight. Move it next to the
ARRAY_SIZE() definition.

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Link: https://lore.barebox.org/20211030141739.2207431-5-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Linux defines this macro at multiple places. We define it once, but in
&lt;common.h&gt;, which is a bit heavy weight. Move it next to the
ARRAY_SIZE() definition.

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Link: https://lore.barebox.org/20211030141739.2207431-5-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts: &lt;linux/bitops.h&gt;: fix references to undefined __BITS_PER_LONG</title>
<updated>2021-11-01T09:08:38+00:00</updated>
<author>
<name>Ahmad Fatoum</name>
<email>a.fatoum@pengutronix.de</email>
</author>
<published>2021-10-30T14:17:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=43cbf3f0b718a8c8b0cfc4bb351dde39c6ea9b05'/>
<id>43cbf3f0b718a8c8b0cfc4bb351dde39c6ea9b05</id>
<content type='text'>
No where do we define __BITS_PER_LONG, but we know about BITS_PER_LONG.
Fix it.

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Link: https://lore.barebox.org/20211030141739.2207431-2-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No where do we define __BITS_PER_LONG, but we know about BITS_PER_LONG.
Fix it.

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Link: https://lore.barebox.org/20211030141739.2207431-2-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>include: &lt;linux/bitops.h&gt;: discard left-over hweight code</title>
<updated>2021-11-01T09:08:38+00:00</updated>
<author>
<name>Ahmad Fatoum</name>
<email>a.fatoum@pengutronix.de</email>
</author>
<published>2021-10-30T14:17:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=547333d3c27882bae37ee5833d2dac6f31c29c97'/>
<id>547333d3c27882bae37ee5833d2dac6f31c29c97</id>
<content type='text'>
There are no definitions for __sw_hweight*, so no point in keeping the
prototypes around. The scripts version of the header also ultimately
tries to access non-existing normal headers, so fix that up as well.

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Link: https://lore.barebox.org/20211030141739.2207431-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are no definitions for __sw_hweight*, so no point in keeping the
prototypes around. The scripts version of the header also ultimately
tries to access non-existing normal headers, so fix that up as well.

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Link: https://lore.barebox.org/20211030141739.2207431-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts: Replace license and copyright boilerplate by SPDX identifiers</title>
<updated>2021-02-16T09:33:04+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2021-01-28T13:34:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=82626cca803682e5ea76e0b7a9563f4f6bae5370'/>
<id>82626cca803682e5ea76e0b7a9563f4f6bae5370</id>
<content type='text'>
Convert the files that licensecheck can determine to be licensed under
GPL-2.0-only or GPL-2.0-or-later and also convert the copyright statements
to SPDX.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Convert the files that licensecheck can determine to be licensed under
GPL-2.0-only or GPL-2.0-or-later and also convert the copyright statements
to SPDX.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts: define ALIGN(x) in scripts' &lt;linux/kernel.h&gt;</title>
<updated>2020-02-19T07:54:09+00:00</updated>
<author>
<name>Ahmad Fatoum</name>
<email>a.fatoum@pengutronix.de</email>
</author>
<published>2020-02-18T14:16:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=a876d16e6ad3736d01dd3d1d2e956c79cc9d9881'/>
<id>a876d16e6ad3736d01dd3d1d2e956c79cc9d9881</id>
<content type='text'>
To make code sharing between utilities in scripts/ and barebox easier,
define ALIGN in the scripts/include/linux/kernel.h as well for
compatibility with the barebox include/linux/kernel.h.

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To make code sharing between utilities in scripts/ and barebox easier,
define ALIGN in the scripts/include/linux/kernel.h as well for
compatibility with the barebox include/linux/kernel.h.

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts: removes uses of &lt;asm*/errno.h&gt; in favor of &lt;errno.h&gt;</title>
<updated>2019-05-28T08:36:09+00:00</updated>
<author>
<name>Ahmad Fatoum</name>
<email>a.fatoum@pengutronix.de</email>
</author>
<published>2019-05-27T09:57:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=9d192807d3aa2a4a818f3ca9fbc7ca08d388b383'/>
<id>9d192807d3aa2a4a818f3ca9fbc7ca08d388b383</id>
<content type='text'>
We can't assume &lt;asm/errno.h&gt; to be available on non-Linux hosts.
Furthermore, errno constants values aren't fixed and passing them
to libc perror(3)/strerror (3) would yield wrong results.
Fix this by using the standard &lt;errno.h&gt; header instead.

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We can't assume &lt;asm/errno.h&gt; to be available on non-Linux hosts.
Furthermore, errno constants values aren't fixed and passing them
to libc perror(3)/strerror (3) would yield wrong results.
Fix this by using the standard &lt;errno.h&gt; header instead.

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts: don't depend on system &lt;asm/types.h&gt;</title>
<updated>2019-05-28T08:36:09+00:00</updated>
<author>
<name>Ahmad Fatoum</name>
<email>a.fatoum@pengutronix.de</email>
</author>
<published>2019-05-27T09:57:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=d4eef0f4a68b67c573f21f785982a8eaf486617d'/>
<id>d4eef0f4a68b67c573f21f785982a8eaf486617d</id>
<content type='text'>
If we compile on non-Linux hosts, we can't assume this header to be
available. Thus typedef loff_t and [su](8|16|32|64) ourselves.

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we compile on non-Linux hosts, we can't assume this header to be
available. Thus typedef loff_t and [su](8|16|32|64) ourselves.

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts: includes: restrict strlcpy prototype to glibc</title>
<updated>2019-05-28T08:36:09+00:00</updated>
<author>
<name>Ahmad Fatoum</name>
<email>a.fatoum@pengutronix.de</email>
</author>
<published>2019-05-27T09:57:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=766ce4dcbe1fa710e9d292f30df806a5c73c2d7c'/>
<id>766ce4dcbe1fa710e9d292f30df806a5c73c2d7c</id>
<content type='text'>
Defining strlcpy here clashes on macOS, which has some compiler magic
around their strlcpy declaration. Fix this by inverting the check
to declare the prototype only if we are on __GLIBC__. As uClibc may
define __GLIBC__ as well, check for absence of its __UCLIBC__.

This is in-line with what Linux has been doing since 0215d59b15
("tools lib: Reinstate strlcpy() header guard with __UCLIBC__").

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Defining strlcpy here clashes on macOS, which has some compiler magic
around their strlcpy declaration. Fix this by inverting the check
to declare the prototype only if we are on __GLIBC__. As uClibc may
define __GLIBC__ as well, check for absence of its __UCLIBC__.

This is in-line with what Linux has been doing since 0215d59b15
("tools lib: Reinstate strlcpy() header guard with __UCLIBC__").

Signed-off-by: Ahmad Fatoum &lt;a.fatoum@pengutronix.de&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>recursive_action: add ACTION_SORT flag</title>
<updated>2019-01-08T15:37:40+00:00</updated>
<author>
<name>Baeuerle, Florian</name>
<email>Florian.Baeuerle@allegion.com</email>
</author>
<published>2018-12-19T14:02:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=99c1263dce3902a8961bcdcac9398bce51fccd1b'/>
<id>99c1263dce3902a8961bcdcac9398bce51fccd1b</id>
<content type='text'>
Add a flag to sort directory entries before recursing into them.

Since this part of lib/ is used inside barebox as well as in
scripts/bareboxenv.c, we cannot easily use stringlists from lib/, which
would have made the code a bit nicer.

Signed-off-by: Florian Bäuerle &lt;florian.baeuerle@allegion.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a flag to sort directory entries before recursing into them.

Since this part of lib/ is used inside barebox as well as in
scripts/bareboxenv.c, we cannot easily use stringlists from lib/, which
would have made the code a bit nicer.

Signed-off-by: Florian Bäuerle &lt;florian.baeuerle@allegion.com&gt;
Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts: Make list implementation usable</title>
<updated>2019-01-03T10:42:44+00:00</updated>
<author>
<name>Sascha Hauer</name>
<email>s.hauer@pengutronix.de</email>
</author>
<published>2019-01-03T10:38:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/barebox.git/commit/?id=baf8fc002ce67ca80f3bd7456b52a9bd2f10402d'/>
<id>baf8fc002ce67ca80f3bd7456b52a9bd2f10402d</id>
<content type='text'>
The list implementation in scripts/ includes poison.h which doesn't
exist. Remove the inclusion and add the defines from poison.h that we
need.

Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The list implementation in scripts/ includes poison.h which doesn't
exist. Remove the inclusion and add the defines from poison.h that we
need.

Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
