]>
git.ipfire.org Git - people/ms/ipfire-2.x.git/log
Michael Tremer [Wed, 10 Jul 2024 18:22:34 +0000 (18:22 +0000)]
Config: Fix the path for the stripper
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 18:14:56 +0000 (18:14 +0000)]
flash-images: Fix argument order for copying files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 18:12:01 +0000 (18:12 +0000)]
make.sh: Only catch the error code that triggered the timer
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 17:49:28 +0000 (17:49 +0000)]
Config: Build packages with the new macros
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 17:49:03 +0000 (17:49 +0000)]
core-updates: Don't line-break make macros
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 17:48:26 +0000 (17:48 +0000)]
Config: Show the transformed paths when creating tarballs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 17:48:05 +0000 (17:48 +0000)]
Config: Make the ARCHIVE_* variables generally available
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 17:40:40 +0000 (17:40 +0000)]
make.sh: Ignore directories as packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 17:40:11 +0000 (17:40 +0000)]
make.sh: Store the PID in a variable to avoid $! being overwritten
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 17:19:46 +0000 (17:19 +0000)]
Config: Remove ./ from filenames in archives
I am not sure if this would actually create any problems, but it looks
ugly and is inconsistent with the older code.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 17:19:21 +0000 (17:19 +0000)]
Config: Don't quote arguments in Makefiles
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 17:16:48 +0000 (17:16 +0000)]
Config: Reorganise the arguments for COPY_FILES
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 17:02:24 +0000 (17:02 +0000)]
intel-microcode: Hardlink all files to save space
This will save about 3 MiB.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 16:54:33 +0000 (16:54 +0000)]
core-updates: Refactor how we package the archive
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 15:41:17 +0000 (15:41 +0000)]
core-updates: Remove importing the meta file
We don't use these any more and even if we did, we cannot import any
variables into a make script just like that.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 14:26:49 +0000 (14:26 +0000)]
flash-images: Fix typo
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 09:50:35 +0000 (09:50 +0000)]
make.sh: Fix checksum generation of the toolchain once again
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 08:49:57 +0000 (08:49 +0000)]
make.sh: Join compression arguments as a string
Otherwise, the array gets split and tar cannot identify which option
belongs to where.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 08:48:01 +0000 (08:48 +0000)]
gcc: Build libstdc++ in parallel
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 10 Jul 2024 08:46:30 +0000 (08:46 +0000)]
gcc: Fix limits.h in first toolchain pass
This is necessary so that the compiler is using the correct glibc
headers.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 22:08:04 +0000 (22:08 +0000)]
make.sh: Use the print_line function for correct padding
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 22:07:28 +0000 (22:07 +0000)]
make.sh: Don't be verbose when creating the packages dir
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 21:26:25 +0000 (21:26 +0000)]
make.sh: Erase the line when resizing the screen
This should leave less clutter, but there is still some.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 21:22:23 +0000 (21:22 +0000)]
make.sh: Remove the PWD variable
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 21:21:33 +0000 (21:21 +0000)]
make.sh: Refactor the terminal output
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 20:22:15 +0000 (20:22 +0000)]
make.sh: Enable the timer for the toolchain, too
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 20:20:17 +0000 (20:20 +0000)]
Config: Unexport lots of environment variables
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 20:17:05 +0000 (20:17 +0000)]
make.sh: Always create /root in the chroot environment
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 20:16:41 +0000 (20:16 +0000)]
make.sh: Fix mounting the QEMU helper binary
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 20:16:15 +0000 (20:16 +0000)]
make.sh: Set PATH before entering the chroot environment
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 19:56:52 +0000 (19:56 +0000)]
make.sh: Fix toolchain checksum validation
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 19:53:15 +0000 (19:53 +0000)]
make.sh: Export BUILD_DIR and LOG_DIR
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 19:53:00 +0000 (19:53 +0000)]
make.sh: Create the /tools symlink to the right place
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 19:46:30 +0000 (19:46 +0000)]
make.sh: Pass extra options in lfsmake1
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 19:25:17 +0000 (19:25 +0000)]
cdrom: Fix typo
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 19:24:55 +0000 (19:24 +0000)]
.gitignore: Ignore images_* directories
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 19:24:14 +0000 (19:24 +0000)]
flash-images: Create the base image as a sparse file
This will be much faster as it creates less IO.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 19:23:44 +0000 (19:23 +0000)]
make.sh: Use less aggressive compression for Zstandard
Otherwise this takes way too long.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 19:23:11 +0000 (19:23 +0000)]
make.sh: Rewrite how we are looking for rootfiles
No function changes, just performance.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 17:52:02 +0000 (17:52 +0000)]
flash-images: Don't mess with depmod
This file could not be created anyways as the directory did not exist.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 17:51:37 +0000 (17:51 +0000)]
images: Ensure that all mount points are created
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 17:47:04 +0000 (17:47 +0000)]
make.sh: Drop stripping
This will massively improve the build process because we will only strip
the files that we need. The build system will remain as is.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 17:46:48 +0000 (17:46 +0000)]
make.sh: Correctly pass ZSTD_OPT
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 17:46:15 +0000 (17:46 +0000)]
make.sh: Use --long for Zstandard compression
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 17:38:12 +0000 (17:38 +0000)]
flash-images: Collect files again instead of relying on the tarball
This has always been an ugly hack.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 17:36:10 +0000 (17:36 +0000)]
flash-images: There is no need to for the mount check any more
We always start with a fresh mount namespace, so there cannot be
anything left.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 17:33:22 +0000 (17:33 +0000)]
Config: Create common functions to create archives
The compression code is very messy because it has changed so many times.
This cleans this up and creates common functions that can be used for
the ISO images as well as packages.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 17:32:32 +0000 (17:32 +0000)]
cdrom: Fix syntax error
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 16:52:26 +0000 (16:52 +0000)]
archive.files: Make this slightly more efficient
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 16:44:37 +0000 (16:44 +0000)]
Config: Remove debugging code
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 16:42:11 +0000 (16:42 +0000)]
make.sh: Create Core Update packages, too
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 16:41:25 +0000 (16:41 +0000)]
make.sh: Create loop devices as block devices
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 16:04:47 +0000 (16:04 +0000)]
make.sh: Don't drop into the lfs/ directory when entering a shell
This is not a very useful place to be.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 15:56:41 +0000 (15:56 +0000)]
make.sh: Refactor building packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 15:32:21 +0000 (15:32 +0000)]
make.sh: Simplify the initial configuration a little bit more
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 15:11:35 +0000 (15:11 +0000)]
make.sh: Change execute() so that it can be used outside the namespaces, too
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 15:11:19 +0000 (15:11 +0000)]
make.sh: Use the new package function to download sources
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 15:10:57 +0000 (15:10 +0000)]
make.sh: tail on the preparation log file, too
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 15:01:58 +0000 (15:01 +0000)]
make.sh: Explicitely download packages when building the toolchain
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 15:00:42 +0000 (15:00 +0000)]
make.sh: Don't revalidate the images all the time
Calling b2 causes make to verify all source which creates a lot of IO.
This is not really necessary because install will do the same and the
build would fail if the source checksums didn't match.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 14:59:45 +0000 (14:59 +0000)]
make.sh: Refactor the execute function
The first version was a little bit messy with all the checks in all
sorts of places. We now create one large array and update it whenever
the configuration changes.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 14:09:56 +0000 (14:09 +0000)]
make.sh: Create a large unified function to run commands
This now includes the toolchain for which we need to set up the same
environment, except slightly differently.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 13:01:27 +0000 (13:01 +0000)]
cdrom+flash-images: Write images to the images directory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 10:32:24 +0000 (10:32 +0000)]
make.sh: Split environment and make variables
This got very messed up in the past and I think we would benefit greatly
from splitting this again for a less cluttered environment in the build
chroot and reusability of the make commands for the different stages.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 10:19:37 +0000 (10:19 +0000)]
make.sh: Call the correct target for checksum check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 10:19:05 +0000 (10:19 +0000)]
make.sh: Bind-mount the QEMU helper instead of copying the binary
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 10:18:23 +0000 (10:18 +0000)]
make.sh: Install the QEMU helper only once
This needs to be done only once when we initialize the environment.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 09:33:33 +0000 (09:33 +0000)]
make.sh: Pass variables before the commands
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 9 Jul 2024 08:36:39 +0000 (08:36 +0000)]
make.sh: Correctly pass the command return code in run_command
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 8 Jul 2024 16:32:27 +0000 (16:32 +0000)]
flash-images: No need to sleep for automount any more
I am not sure whether automount is being used at all any more, but since
we are now running in our own namespace, it certainly has no business
here.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 8 Jul 2024 16:24:07 +0000 (16:24 +0000)]
make.sh: Create and mount and images directory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 8 Jul 2024 16:18:57 +0000 (16:18 +0000)]
make.sh: Add a tail command to stream any logs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 7 Jul 2024 17:26:55 +0000 (17:26 +0000)]
make.sh: Pass on individual build arguments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 15:42:05 +0000 (15:42 +0000)]
make.sh: Don't generate any documentation in the source directory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 15:39:05 +0000 (15:39 +0000)]
make.sh: Kill all child processes if unshare terminates
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 15:32:45 +0000 (15:32 +0000)]
make.sh: Update the runtime after the interrupt
This is a lot better because this puts the code where it is being
executed and allows us to run run_command in a subshell, too.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 15:00:59 +0000 (15:00 +0000)]
make.sh: Build the entire distribution in one go
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 14:08:18 +0000 (14:08 +0000)]
make.sh: Fix indentation
No functional changes.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 14:02:41 +0000 (14:02 +0000)]
make.sh: Move a comment to where it should be
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 14:02:12 +0000 (14:02 +0000)]
make.sh: Launch the timer only when we need it
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 14:01:26 +0000 (14:01 +0000)]
make.sh: Have the background timer update the process runtime
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 13:37:15 +0000 (13:37 +0000)]
make.sh: Create a timer co-process
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 10:47:12 +0000 (10:47 +0000)]
make.sh: Don't export loads of variables in the main script
We clear and reset the environment when we launch any build commands and
therefore don't need to do this here.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 10:46:11 +0000 (10:46 +0000)]
make.sh: Don't mess with Bash's command hashing
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 10:45:00 +0000 (10:45 +0000)]
make.sh: Refactor downloading sources
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 10:43:26 +0000 (10:43 +0000)]
make.sh: run_command: Fix basedir in and outside the chroot
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 10:25:27 +0000 (10:25 +0000)]
make.sh: Disconnect standard input from make commands
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 10:24:15 +0000 (10:24 +0000)]
make.sh: Move download and check to lfsmake2 and out of the common check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 10:23:45 +0000 (10:23 +0000)]
make.sh: Add --quiet to run_command
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 10:19:33 +0000 (10:19 +0000)]
make.sh: Allow run_command to execute multiple actions at a time
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 10:18:49 +0000 (10:18 +0000)]
make.sh: Move lfscommoncheck out of run_command
We would quite likely create an infinite loop here later and so should
rather treat run_command as a low-level function.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 10:14:41 +0000 (10:14 +0000)]
make.sh: Remove some dead code
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 10:11:57 +0000 (10:11 +0000)]
make.sh: Show total runtime of commands after they are finished
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 10:06:53 +0000 (10:06 +0000)]
make.sh: Add helper function to run a make command
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 09:52:24 +0000 (09:52 +0000)]
make.sh: Fix checking if we have a fake environment
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 09:49:14 +0000 (09:49 +0000)]
Config: Drop toolchain URL
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 09:48:56 +0000 (09:48 +0000)]
make.sh: Refactor uploading sources
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 09:45:39 +0000 (09:45 +0000)]
make.sh: Make the disk space check optional
There is little value in running this when entering a shell...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 09:42:20 +0000 (09:42 +0000)]
make.sh: Mount the log directory for the correct architecture
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 5 Jul 2024 09:39:50 +0000 (09:39 +0000)]
make.sh: Refactor compression the toolchain
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>