<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/include/u-boot.mk, branch v21.02.4</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.4</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.4'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2022-03-06T19:56:23Z</updated>
<entry>
<title>u-boot.mk: add LOCALVERSION (explicitly specify OpenWrt build)</title>
<updated>2022-03-06T19:56:23Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2022-02-21T17:55:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=f1e1daa6e8c71c2185aa37e737f968e9ad838c50'/>
<id>urn:sha1:f1e1daa6e8c71c2185aa37e737f968e9ad838c50</id>
<content type='text'>
For debugging purposes, we need to know if users are using modified
U-boot versions or not. Currently, the U-boot version is somehow
stripped. This is a little bit problematic when there are
backported/wip/to-upstream patches.

To make it more confusing, there was (before this commit) two U-boot
versioning. U-boot compiled by OpenWrt build bots are missing ``Build:``
This is also the case when the U-boot is compiled locally.

Example:
```
U-Boot SPL 2022.01 (Jan 27 2022 - 00:24:34 +0000)
U-Boot 2022.01 (Jan 27 2022 - 00:24:34 +0000)
```

On the other hand, if you run full build, you can at least see, where it
was compiled. Notice added ``Build:``.

Example:
```
U-Boot 2022.01 (Jan 27 2022 - 00:24:34 +0000), Build: jenkins-turris-os-packages-burstlab-omnia-216
```

In both cases, it is not clear to U-boot developers if it is an unmodified
build. This is also caused that there is a missing ``.git`` file from
U-boot folder, and so there is no history. It leads to that it can not
contain suffix ``-dirty`` (uncommitted modifications) or even something
else like number of commits, etc. [1]

When U-boot is compiled as it should be, the version should look like
this: ``U-Boot 2022.04-rc1-01173-g278195ea1f (Feb 11 2022 - 14:46:50 +0100)``
The date is not changed daily when there are new OpenWrt builds.

This commit adds OpenWrt specific version, which could be verified by
using strings.

```
$ strings bin/targets/mvebu/cortexa9/u-boot-omnia/u-boot-spl.kwb | grep -E "OpenWrt*"
U-Boot SPL 2022.01-OpenWrt-r18942+54-cbfce92367 (Feb 21 2022 - 13:17:34 +0000)
arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r18942+54-cbfce92367) 11.2.0
2022.01-OpenWrt-r18942+54-cbfce92367
U-Boot 2022.01-OpenWrt-r18942+54-cbfce92367 (Feb 21 2022 - 13:17:34 +0000)
```

[1] https://u-boot.readthedocs.io/en/latest/develop/version.html

Reported-by: Pali Rohár &lt;pali@kernel.org&gt;
Suggested-by: Karel Kočí &lt;karel.koci@nic.cz&gt;
[rebased for OpenWrt 21.02]
Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
(cherry picked from commit d6aa9d9e071d9f23ed26f5142991bc66aefe20f5)
</content>
</entry>
<entry>
<title>u-boot.mk: switch download to https</title>
<updated>2020-04-26T19:20:47Z</updated>
<author>
<name>Lucian Cristian</name>
</author>
<published>2020-04-19T12:52:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=60712bd536a4fcb4335b152b2b3a3544ccdf1cd0'/>
<id>urn:sha1:60712bd536a4fcb4335b152b2b3a3544ccdf1cd0</id>
<content type='text'>
ftp can cause problems on some networks switch primary download location
to https and add another mirror

Signed-off-by: Lucian Cristian &lt;lucian.cristian@gmail.com&gt;
</content>
</entry>
<entry>
<title>u-boot.mk: use openwrt url instead of lede project</title>
<updated>2019-08-18T15:14:13Z</updated>
<author>
<name>Luis Araneda</name>
</author>
<published>2019-08-18T14:59:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=b39ded4ab7e02cedd50810a206dadd71e1ea7fb7'/>
<id>urn:sha1:b39ded4ab7e02cedd50810a206dadd71e1ea7fb7</id>
<content type='text'>
The LEDE URL is automatically redirected to the OpenWRT one,
returning an HTTP 301 code (Moved Permanently).

Also, use https, as indicated by the redirect.

Signed-off-by: Luis Araneda &lt;luaraneda@gmail.com&gt;
</content>
</entry>
<entry>
<title>u-boot.mk: Fix building of recent U-Boot sources</title>
<updated>2019-01-26T20:46:32Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-01-23T21:25:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=66a4978b4355e3e8f860a87ca14c0f293931d038'/>
<id>urn:sha1:66a4978b4355e3e8f860a87ca14c0f293931d038</id>
<content type='text'>
This patch fixes following error with U-Boot 2019.01 on imx6:

 In file included from tools/lib/crc16.c:1:0:
 ./tools/../lib/crc16.c: In function 'crc16_ccitt':
 ./tools/../lib/crc16.c:70:2: error: 'for' loop initial declarations are only allowed in C99 mode
   for (int i = 0;  i &lt; len;  i++)
   ^
 ./tools/../lib/crc16.c:70:2: note: use option -std=c99 or -std=gnu99 to compile your code

Code was introduced in the upstream v2019.01-rc1-154-g51c2345:

 commit 51c2345bd24837f9f67f16268da6dc71573f1325
 Author: Philipp Tomsich &lt;philipp.tomsich@theobroma-systems.com&gt;
 Date:   Sun Nov 25 19:22:19 2018 +0100

    Roll CRC16-CCITT into the hash infrastructure

Upstream has added -std=gnu11 host flag in v2018.07-rc2-1-gfa89399:

 commit fa893990e9b53425af5f5059e04a2bffde91ccf9
 Author: Tom Rini &lt;trini@konsulko.com&gt;
 Date:   Tue Jun 19 23:53:54 2018 -0400

    Makefile: Ensure we build with -std=gnu11

Build tested on imx6: apalis, mx6sabresd, nitrogen6dl, nitrogen6dl2g,
                      nitrogen6q, nitrogen6q2g, nitrogen6s, nitrogen6s1g,
                      wandboard

Run tested: apalis (pending PR #1595)

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>u-boot.mk: add HOST_LDFLAGS to UBOOT_MAKE_FLAGS</title>
<updated>2018-02-10T19:52:31Z</updated>
<author>
<name>Alexandru Ardelean</name>
</author>
<published>2018-01-23T14:51:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=c72e6582c073b489348df3fedb273456d504559f'/>
<id>urn:sha1:c72e6582c073b489348df3fedb273456d504559f</id>
<content type='text'>
This will make sure that the build system's
paths for linking are available.
This is needed mostly for linking with tools/libressl.

Signed-off-by: Alexandru Ardelean &lt;ardeleanalex@gmail.com&gt;
</content>
</entry>
<entry>
<title>u-boot,at91bootstrap: fix incorrect HOSTCPPFLAGS variable</title>
<updated>2018-02-10T19:52:31Z</updated>
<author>
<name>Alexandru Ardelean</name>
</author>
<published>2018-01-22T15:30:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=df9781a4205c5191fe21e795f732cfdd37d982f9'/>
<id>urn:sha1:df9781a4205c5191fe21e795f732cfdd37d982f9</id>
<content type='text'>
This would should up as `$$(HOSTCPPFLAGS)` in the host CFLAGS.
```
make --jobserver-fds=3,4 -j -C &lt;openwrt&gt;/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/u-boot-A10-OLinuXino-Lime/u-boot-2017.07 CROSS_COMPILE=arm-openwrt-linux-muslgnueabi- DTC="&lt;openwrt&gt;/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/linux-sunxi_cortexa8/linux-4.9.76/scripts/dtc/dtc" HOSTCC="gcc" HOSTCFLAGS='-O2 -I&lt;openwrt&gt;/staging_dir/host/include -I&lt;openwrt&gt;/staging_dir/host/usr/include -I&lt;openwrt&gt;/staging_dir/hostpkg/include -I&lt;openwrt&gt;/staging_dir/target-arm_cortex-a8+vfpv3_musl_eabi/host/include $$(HOSTCPPFLAGS)' HOSTLDFLAGS="" BL31=&lt;openwrt&gt;/staging_dir/target-arm_cortex-a8+vfpv3_musl_eabi/image/bl31.bin
```

And then it would complain with:
```
 /bin/sh: 1: HOSTCPPFLAGS: not found
```

Also, HOSTCPPFLAGS does not exist.
The correct var is HOST_CPPFLAGS.

Signed-off-by: Alexandru Ardelean &lt;ardeleanalex@gmail.com&gt;
</content>
</entry>
<entry>
<title>u-boot.mk: pass HOSTCC and HOST_CFLAGS into the build</title>
<updated>2017-04-04T10:34:23Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2017-03-16T08:01:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=68139cc0e819b5f654c4f78468049eef035d28f7'/>
<id>urn:sha1:68139cc0e819b5f654c4f78468049eef035d28f7</id>
<content type='text'>
Cuts build time on Mac OS X in half by avoiding repeated $(shell) calls
from the build system

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>u-boot.mk: add support for overriding DEFAULT</title>
<updated>2017-01-25T06:48:43Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2017-01-25T06:33:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=1c0addb15608b7a0d73fd056524f505df02eb5e3'/>
<id>urn:sha1:1c0addb15608b7a0d73fd056524f505df02eb5e3</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>u-boot.mk: add UBOOT_MAKE_FLAGS variable similar to MAKE_FLAGS</title>
<updated>2017-01-25T06:48:43Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2017-01-25T06:28:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=1e14f01ed6d0cfff962c633bf130e96964c13e43'/>
<id>urn:sha1:1e14f01ed6d0cfff962c633bf130e96964c13e43</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>build: add generic build template for u-boot packages</title>
<updated>2017-01-24T15:21:24Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2017-01-22T18:33:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=31b16a3c7dd8fb379c7756d3366cc1b490491435'/>
<id>urn:sha1:31b16a3c7dd8fb379c7756d3366cc1b490491435</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
</feed>
