<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/svanheule/toolchain/kernel-headers, branch main</title>
<subtitle>Staging tree of Sander Vanheule</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/svanheule/atom?h=main</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/svanheule/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/svanheule/'/>
<updated>2023-09-19T18:22:59Z</updated>
<entry>
<title>toolchain: assign PKG_CPE_ID</title>
<updated>2023-09-19T18:22:59Z</updated>
<author>
<name>Alexander Couzens</name>
</author>
<published>2023-09-18T22:23:40Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/svanheule/commit/?id=bcf02c5d3123a99c717ca33f1d7c6250acf0f33f'/>
<id>urn:sha1:bcf02c5d3123a99c717ca33f1d7c6250acf0f33f</id>
<content type='text'>
The PKG_CPE_ID links to NIST CPE version 2.2.
Assign PKG_CPE_ID to all remaining package which have a CPE ID.
Not every package has a CPE id.

Related: https://github.com/openwrt/packages/issues/8534
Signed-off-by: Alexander Couzens &lt;lynxis@fe80.eu&gt;
</content>
</entry>
<entry>
<title>toolchain: kernel-headers: remove debugging env dump</title>
<updated>2023-07-28T06:19:20Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-07-20T06:41:44Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/svanheule/commit/?id=def41cf2bab825e46a31eb0a9ccf51288edfe27d'/>
<id>urn:sha1:def41cf2bab825e46a31eb0a9ccf51288edfe27d</id>
<content type='text'>
Remove debugging `env` dump left over as build environments might
contain some sensitive information, which then might leak into the build
logs.

Fixes: 2105acbe2804 ("kernel-headers: fix compile error caused by wrong host include path when the toolchain is already built")
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>toolchain: kernel-headers: fix check target for external Git trees</title>
<updated>2023-07-28T06:19:19Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-07-20T13:48:39Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/svanheule/commit/?id=6b7f1ffbad732c5e1818f9387c02dda109c2748b'/>
<id>urn:sha1:6b7f1ffbad732c5e1818f9387c02dda109c2748b</id>
<content type='text'>
Executing following command currently fails:

 $ make toolchain/kernel-headers/{download,check} V=sc FIXUP=1
 ...
 include/kernel-version.mk:11: *** Missing kernel version/hash file for . Please create include/kernel-.  Stop.

So lets fix it by adding the necessary missing KERNEL_PATCHVER variable.

That additional kernel-build.mk include is needed to add another set of
missing variables:

 $ make toolchain/kernel-headers/{download,check} V=sc FIXUP=1
 ...
 Makefile:115: *** ERROR: Unknown pack format for file tmp/dl/.  Stop.

Fixes: 0765466a42f4 ("kernel: split kernel version to dedicated files")
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>kernel-headers: install isa-rev.h on mips to fix lzma-lader on linux 6.1</title>
<updated>2023-07-06T19:03:11Z</updated>
<author>
<name>Jonas Gorski</name>
</author>
<published>2023-07-06T19:01:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/svanheule/commit/?id=c22931b653633f368569f638258b41df7943f14a'/>
<id>urn:sha1:c22931b653633f368569f638258b41df7943f14a</id>
<content type='text'>
Since kernel 5.17+ the mips asm.h includes isa-rev.h, which itself was
added 4.17. Without it, lzma-loader will fail to build:

     make[3] -C target/linux compile
    make[5]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
    In file included from head.S:22:
    .../staging_dir/toolchain-mips_mips32_gcc-12.3.0_musl/include/asm/asm.h:22:10: fatal error: asm/isa-rev.h: No such file or directory
       22 | #include &lt;asm/isa-rev.h&gt;
          |          ^~~~~~~~~~~~~~~
    compilation terminated.
    make[6]: *** [Makefile:64: head.o] Error 1
    make[5]: *** [Makefile:345: compile] Error 2
    make[4]: *** [Makefile:24: compile] Error 2
    make[3]: *** [Makefile:11: compile] Error 2
        ERROR: target/linux failed to build.

So add the file to the files to install. We can do that unconditionally,
since the oldest supported kernel 5.15 already includes it, even it if
does not need it.

Signed-off-by: Jonas Gorski &lt;jonas.gorski@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: kernel-headers: kernel Git tree mirror hash</title>
<updated>2020-11-27T13:46:13Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2020-11-21T14:59:50Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/svanheule/commit/?id=796d51834c5be85771d26e433fd509cd3bef72e3'/>
<id>urn:sha1:796d51834c5be85771d26e433fd509cd3bef72e3</id>
<content type='text'>
Allow setting of mirror hash for Git kernel tree.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>toolchain: kernel-headers: fix check target for kernel Git tree</title>
<updated>2020-11-27T13:46:13Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2020-11-21T15:05:08Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/svanheule/commit/?id=bb7ba6b6a81d1fb7ac6075edfd8e8b713dd61db2'/>
<id>urn:sha1:bb7ba6b6a81d1fb7ac6075edfd8e8b713dd61db2</id>
<content type='text'>
Currently the check target fails if the kernel Git tree is used:

 $ make toolchain/kernel-headers/{download,check}

  make[2]: Entering directory 'toolchain/kernel-headers'
  Makefile:105: *** ERROR: Unknown pack format for file openwrt/tmp/dl/.  Stop.
  make[2]: Leaving directory 'toolchain/kernel-headers'
  toolchain/Makefile:100: recipe for target 'toolchain/kernel-headers/check' failed

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>toolchain/kernel-headers: don't use TARGET_CFLAGS</title>
<updated>2019-10-16T15:10:38Z</updated>
<author>
<name>Kevin Darbyshire-Bryant</name>
</author>
<published>2019-10-12T07:41:41Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/svanheule/commit/?id=14881b49d8d7e84f67074845d039f43df1a0d663'/>
<id>urn:sha1:14881b49d8d7e84f67074845d039f43df1a0d663</id>
<content type='text'>
Kernel utilities (e.g. scripts/kconfig/conf) are being built to run on
the host system at this stage, therefore it makes no sense to use the
target system CC flags.  Use HOSTCFLAGS instead

While we're here rename KMAKE macro to HOST_KMAKE to make it even more
obvious that we're building for host.

Signed-off-by: Kevin Darbyshire-Bryant &lt;ldir@darbyshire-bryant.me.uk&gt;
</content>
</entry>
<entry>
<title>kernel-headers: adjust PKG_ variables when using git clone method</title>
<updated>2018-01-27T15:46:45Z</updated>
<author>
<name>Alexandru Ardelean</name>
</author>
<published>2018-01-17T10:55:15Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/svanheule/commit/?id=ca7e8627dbbbcae0d1bfacea51d9b564617195de'/>
<id>urn:sha1:ca7e8627dbbbcae0d1bfacea51d9b564617195de</id>
<content type='text'>
When using an external git clone for the kernel repo,
the build would fail because the build won't download
[via git] the kernel tarball.

This is because the `toolchain/kernel-headers` assumes
that the kernel would get downloaded via normal HTTP.
The reason for this is the `HostBuild` rule, which
calls the `Download/default` rule.

To use the `Download/default` we just need to conditionally
adjust some PKG_ vars.

We can safely use `LINUX_VERSION` as it was already adjusted
in the `kernel-version.mk` to avoid collisions with other tarballs.

Fixes:
 https://bugs.openwrt.org/index.php?do=details&amp;task_id=503

Signed-off-by: Alexandru Ardelean &lt;ardeleanalex@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: use KERNEL_MAKE_FLAGS for kernel file compilations</title>
<updated>2017-10-29T15:17:05Z</updated>
<author>
<name>Karl Vogel</name>
</author>
<published>2017-10-13T09:10:03Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/svanheule/commit/?id=76378c6b9fe6aa7fcdbbc7c050ae6392b71a72b8'/>
<id>urn:sha1:76378c6b9fe6aa7fcdbbc7c050ae6392b71a72b8</id>
<content type='text'>
The build system already defines KERNEL_CROSS which defaults to TARGET_CROSS.
Make use of this variable for kernel makefiles.

Signed-off-by: Karl Vogel &lt;karl.vogel@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: remove old kernel-headers build directories</title>
<updated>2017-06-16T13:16:52Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2017-06-16T13:15:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/svanheule/commit/?id=76b62e602233d1a2e1f8ef1c0833bd22ebaaf832'/>
<id>urn:sha1:76b62e602233d1a2e1f8ef1c0833bd22ebaaf832</id>
<content type='text'>
Saves space after updating kernel versions

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
</feed>
