This commit is contained in:
alexander stefanov 2025-01-27 20:42:02 +03:00
parent 5c716dd277
commit 90a77dcf26
7 changed files with 40 additions and 34 deletions

View file

@ -1,3 +1,8 @@
[Config]
MinimumVersion=24
Dependencies=
u-boot
[Distribution] [Distribution]
Distribution=rosa Distribution=rosa
Release=rosa13 Release=rosa13
@ -31,3 +36,9 @@ Timezone=Europe/Moscow
Hostname=elara Hostname=elara
WithDocs=no WithDocs=no
CleanPackageMetadata=false CleanPackageMetadata=false
[Build]
WithNetwork=yes
BuildSources=./:mkosi
./mkosi.images/u-boot/configuration:configuration

View file

@ -2,3 +2,4 @@
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
set -x set -x
env env
ls -la ${SRCDIR}

View file

@ -1,6 +1,4 @@
#!/bin/sh #!/bin/sh
set -x
echo "--- mkosi.build: args=$@" echo "--- mkosi.build: args=$@"
echo "--- mkosi.build: container=$container" echo "--- mkosi.build: container=$container"
@ -16,7 +14,18 @@ echo "--- mkosi.build: builddir=$BUILDDIR"
cd $SRCDIR cd $SRCDIR
echo "--- mkosi.build: clone u-boot" echo "--- mkosi.build: clone u-boot"
dnf in -y python2 --release 13
if [ -f "${SRCDIR}/mkosi/idbloader.img" ]; then
echo "--- mkosi.build: idbloader.img already exist, skipping u-boot build..."
exit 0
fi
dnf in -y --release 13 python2
dnf in -y --release 13 basesystem-build curl \
dnf git gcc-aarch64-linux-gnu \
binutils-aarch64-linux-gnu \
wget dtc bc
git clone https://github.com/radxa/u-boot.git --depth 1 -b next-dev-v2024.03 git clone https://github.com/radxa/u-boot.git --depth 1 -b next-dev-v2024.03
cd u-boot cd u-boot
git apply ${SRCDIR}/configuration/*.patch git apply ${SRCDIR}/configuration/*.patch

View file

@ -0,0 +1,9 @@
[Output]
Format=directory
[Content]
Bootable=no
Packages=dnf
rosa-repos-contrib
rosa-repos

View file

@ -1,6 +1,9 @@
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
set -x UBOOT_DIR="${SRCDIR}/mkosi"
env
ls -la ${SRCDIR} pushd ${OUTPUTDIR}
ls -la ${OUTPUTDIR} printf "write bootloader to the image...\n"
dd if=${UBOOT_DIR}/idbloader.img of=image.raw seek=64 conv=notrunc
dd if=${UBOOT_DIR}/u-boot.itb of=image.raw seek=16384 conv=notrunc
popd

View file

@ -1,27 +0,0 @@
[Distribution]
Distribution=rosa
Release=rosa13
Architecture=x86-64
[Output]
Format=directory
[Content]
Bootable=no
Packages=basesystem-build
curl
dnf
git
gcc-aarch64-linux-gnu
binutils-aarch64-linux-gnu
wget
dtc
bc
rosa-repos-contrib
rosa-repos
[Build]
WithNetwork=yes
BuildSources=./:mkosi
./configuration:configuration