<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/neocturne/tools/Makefile, branch main</title>
<subtitle>Staging tree of Nora Schiffer</subtitle>
<id>https://git.openwrt.org/openwrt/staging/neocturne/atom?h=main</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/neocturne/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/neocturne/'/>
<updated>2024-06-05T15:03:24Z</updated>
<entry>
<title>tools: remove kernel2minor</title>
<updated>2024-06-05T15:03:24Z</updated>
<author>
<name>Michał Kępień</name>
</author>
<published>2024-05-13T17:26:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/neocturne/commit/?id=77106faa37b9cdfe9468c82e31d289fd3f06192b'/>
<id>urn:sha1:77106faa37b9cdfe9468c82e31d289fd3f06192b</id>
<content type='text'>
Since the Yafut tool is now used for both updating the kernel on
MikroTik devices with NAND flash and preparing firmware images for
MikroTik devices with NOR flash, remove the kernel2minor utility from
the tree as it is no longer used for anything.

Signed-off-by: Michał Kępień &lt;openwrt@kempniu.pl&gt;
Link: https://github.com/openwrt/openwrt/pull/13453
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>mikrotik: switch to Yafut for building MikroTik NOR images</title>
<updated>2024-06-05T15:03:24Z</updated>
<author>
<name>Michał Kępień</name>
</author>
<published>2024-05-13T17:26:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/neocturne/commit/?id=a60721f2ed3b0152821d2a82e5e7ed115a8ae9cc'/>
<id>urn:sha1:a60721f2ed3b0152821d2a82e5e7ed115a8ae9cc</id>
<content type='text'>
The Yafut tool now has limited capabilities for working on filesystem
images stored in regular files.  This enables preparing Yaffs2 images
for devices with NOR flash using upstream Yaffs2 filesystem code instead
of the custom kernel2minor tool.

Since minimizing the size of the resulting filesystem image size is
important and upstream Yaffs2 code requires two allocator reserve blocks
to be available when writing a file to the filesystem, a trick is
employed while preparing an OpenWRT image: the blank filesystem image
that Yafut operates on initially contains two extra erase blocks that
are chopped off after the kernel file is written.  This is safe to do
because Yaffs2 has a true log structure and therefore only ever writes
sequentially (and the size of the kernel file is known beforehand).
While the two extra erase blocks are necessary for writes, Yaffs2 code
seems to be perfectly capable of reading back files from a "truncated"
filesystem that does not contain these extra erase blocks.

In terms of image size, this new approach is only marginally worse than
the current kernel2minor-based one: specifically, upstream Yaffs2 code
needs to write three object headers (each of which takes up an entire
data chunk) when the kernel file is written to the filesystem:

  - an object header for the kernel file when it is created,

  - an object header for the root directory when the kernel file is
    created,

  - an updated object header for the kernel file when the latter is
    fully written (so that its new size can be recorded).

kernel2minor only writes two of these headers, which is the absolute
minimum required for reading the file back.  This means that the
Yafut-based approach causes firmware images to be at most one erase
block (64 kB) larger than those created using kernel2minor, but only in
the very unfortunate scenario where the size of the kernel file is
really close to a multiple of the erase block size.

The rest of the calculations performed when the empty filesystem image
is first prepared stems from the Yaffs2 layout used by MikroTik NOR
devices: each 65,536-byte erase block contains 63 chunks, each of which
consists of 1024 bytes of data followed by 16-byte Yaffs tags without
ECC data; each such group of 63 chunks is then followed by 16 bytes of
padding, which translates to "-C 1040 -B 64k -E" in the Yafut
invocation.  Yaffs2 checkpoints and summaries are disabled (using
Yafut's -P and -S switches, respectively) as they are merely performance
optimizations that require extra storage space.  The -L and -M switches
are used to force little-endian or big-endian byte order (respectively)
in the resulting filesystem image, no matter what byte order the build
host uses.  The tr invocation is used to ensure that the filesystem
image is initialized with 0xFF bytes (which are an indicator of unused
space for Yaffs2 code).

Signed-off-by: Michał Kępień &lt;openwrt@kempniu.pl&gt;
Link: https://github.com/openwrt/openwrt/pull/13453
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: rework tools-core dependecies</title>
<updated>2024-04-06T09:24:18Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2024-04-03T19:17:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/neocturne/commit/?id=e09d3fd2904a35beaf5e27e81538cd8061b0ef36'/>
<id>urn:sha1:e09d3fd2904a35beaf5e27e81538cd8061b0ef36</id>
<content type='text'>
ZSTD and libdeflate do not depend on SED nor flock, so instead of the whole
for loop that will filter 2 out of 4 core packages just specify that patch
and tar depend on sed explicitly.

ZSTD now depends on libdeflate since libdeflate-gzip will then be used to
unpack ZSTD as well as most tool archives.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: make zstd tool core and xz tool non-core</title>
<updated>2024-04-06T09:24:18Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-04-02T23:10:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/neocturne/commit/?id=c3e43b7e654982f8f48ec63558806be2647da7e4'/>
<id>urn:sha1:c3e43b7e654982f8f48ec63558806be2647da7e4</id>
<content type='text'>
Make zstd tool core and xz tool non-core since zstd is the new default
for compression format.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: zstd: convert to make and drop meson dependency</title>
<updated>2024-04-06T09:24:18Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-04-02T23:07:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/neocturne/commit/?id=4b920e799fba445c450d9bc86843c0a37e202e7f'/>
<id>urn:sha1:4b920e799fba445c450d9bc86843c0a37e202e7f</id>
<content type='text'>
Convert to make and drop meson dependency since it's not a core tools
and can't depend on advanced build system like cmake or meson.

On top of this make is the official build support and cmake/meson are
supported by 3rd parties.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: add util-linux</title>
<updated>2024-03-11T19:17:25Z</updated>
<author>
<name>Weijie Gao</name>
</author>
<published>2024-01-09T15:20:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/neocturne/commit/?id=53e3851646f872a08010709c6503d4bc838b5a0b'/>
<id>urn:sha1:53e3851646f872a08010709c6503d4bc838b5a0b</id>
<content type='text'>
since kernel 6.4, commit bca2f3a9406b ("efi/zboot: Add BSS padding
before compression") introduces the use of hexdump to padding the
EFI kernel binary before compression.

util-linux which containing hexdump should then be compiled as a host
tool to guarantee not breaking the kernel build process.

Signed-off-by: Weijie Gao &lt;hackpascal@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/elfutils: add missing dependency to fix build error</title>
<updated>2023-10-30T08:08:39Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2023-10-30T08:08:39Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/neocturne/commit/?id=1d6f9bdfc052b83434dc3fa809e1e6ee6329864f'/>
<id>urn:sha1:1d6f9bdfc052b83434dc3fa809e1e6ee6329864f</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>elfutils: fix build and enable on non-linux systems</title>
<updated>2023-10-29T14:56:46Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2023-01-11T17:41:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/neocturne/commit/?id=5331e85d96346be4200ce206b2f4373e23af0f6f'/>
<id>urn:sha1:5331e85d96346be4200ce206b2f4373e23af0f6f</id>
<content type='text'>
Use gnulib for compatibility

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>tools: add mold, a modern linker</title>
<updated>2023-07-04T18:25:40Z</updated>
<author>
<name>Andre Heider</name>
</author>
<published>2023-01-27T16:53:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/neocturne/commit/?id=b1fa9e3d2bbbcbb1da522f23ac83d411136b74de'/>
<id>urn:sha1:b1fa9e3d2bbbcbb1da522f23ac83d411136b74de</id>
<content type='text'>
mold is a faster drop-in replacement for existing Unix linkers.

A single binary is able to link various targets, which is why this lives
in tools/.

All toolchain builds then just need to copy the linker over, hence avoiding
multiple builds with the same outcome.

Signed-off-by: Andre Heider &lt;a.heider@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/coreutils: bootstrap to local gnulib source</title>
<updated>2023-05-04T04:07:30Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2023-03-23T07:49:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/neocturne/commit/?id=09f8f21ae33402201c14a125a37b64746415642d'/>
<id>urn:sha1:09f8f21ae33402201c14a125a37b64746415642d</id>
<content type='text'>
Using the local gnulib source during bootstrap
allows for fine-grained control over the macros
and source files for use with coreutils
but part of gnulib instead of coreutils,
without having to wait for a release
or deal with gnulib as a git submodule.

In this case, the execution of autotools
must be skipped by force.
Autoconf and Automake during bootstrap on coreutils
only works right when using directly checked-out source.

There is a symbol in gnulib, @GNULIB_TIME@
that is not yet defined in coreutils source,
so we use the backup of lib/time.in.h instead
of the one provided by gnulib source.

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
</content>
</entry>
</feed>
