<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/hauke/include/u-boot.mk, branch v23.05.0</title>
<subtitle>Hauke Mehrtens staging tree</subtitle>
<id>https://git.openwrt.org/openwrt/staging/hauke/atom?h=v23.05.0</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/hauke/atom?h=v23.05.0'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/'/>
<updated>2023-06-13T12:15:21Z</updated>
<entry>
<title>u-boot.mk: add support for config customization</title>
<updated>2023-06-13T12:15:21Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-06-02T11:54:20Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=c05c0699d4798b02f8ee88159236142e08c0c4cd'/>
<id>urn:sha1:c05c0699d4798b02f8ee88159236142e08c0c4cd</id>
<content type='text'>
Make it possible to easily customize U-Boot config options via new
`UBOOT_CUSTOMIZE_CONFIG` variable, so we don't need to patch config
files or override config step with shell hackery.

This generic approach uses `config` CLI to tweak the .config as needed,
for example:

 UBOOT_CUSTOMIZE_CONFIG := \
	--enable CMD_EFIDEBUG \
	--enable CMD_BOOTMENU \
	--enable AUTOBOOT \
	--enable AUTOBOOT_MENU_SHOW \
	--disable AUTOBOOT_KEYED \
	--disable AUTOBOOT_USE_MENUKEY \
	--disable BOOTMENU_DISABLE_UBOOT_CONSOLE \
	--set-val BOOTDELAY 2

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit 186b97590b9b2f47abc535c9df0687e00e60f78e)
</content>
</entry>
<entry>
<title>u-boot.mk: add LOCALVERSION (explicitly specify OpenWrt build)</title>
<updated>2022-02-28T22:54:52Z</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/hauke/commit/?id=d6aa9d9e071d9f23ed26f5142991bc66aefe20f5'/>
<id>urn:sha1:d6aa9d9e071d9f23ed26f5142991bc66aefe20f5</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;
Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
</content>
</entry>
<entry>
<title>u-boot.mk: always link host libraries static</title>
<updated>2021-10-24T16:00:49Z</updated>
<author>
<name>Andre Heider</name>
</author>
<published>2021-10-19T09:08:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=09465d802b8ce37ee87b6d104889059a6fa948e6'/>
<id>urn:sha1:09465d802b8ce37ee87b6d104889059a6fa948e6</id>
<content type='text'>
Host libraries are only build static, so let's pass --static to
pkg-config globally and remove the then unnecessary patches doing
exactly that individually.

Signed-off-by: Andre Heider &lt;a.heider@gmail.com&gt;
</content>
</entry>
<entry>
<title>u-boot.mk: fix pkg-config usage</title>
<updated>2021-10-24T16:00:49Z</updated>
<author>
<name>Andre Heider</name>
</author>
<published>2021-10-13T10:51:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=f262d2aae136d2fe60c3b7314a4a0c5f30d79062'/>
<id>urn:sha1:f262d2aae136d2fe60c3b7314a4a0c5f30d79062</id>
<content type='text'>
Using Host/Exports doesn't work as intended, explicitly add the
required vars so that u-boot finds the required libraries when building
its tools.

Signed-off-by: Andre Heider &lt;a.heider@gmail.com&gt;
</content>
</entry>
<entry>
<title>u-boot: support verbose build</title>
<updated>2021-06-12T08:46:39Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2020-08-29T20:24:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=a85aaa1bc299301ad741b6ef94d7580c9095f1be'/>
<id>urn:sha1:a85aaa1bc299301ad741b6ef94d7580c9095f1be</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</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/hauke/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/hauke/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/hauke/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/hauke/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/hauke/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>
</feed>
