mirror of
https://github.com/rosalinux/image-builder.git
synced 2025-02-23 10:22:50 +00:00
cleanup
This commit is contained in:
parent
5c716dd277
commit
90a77dcf26
7 changed files with 40 additions and 34 deletions
|
@ -1,3 +1,8 @@
|
|||
[Config]
|
||||
MinimumVersion=24
|
||||
Dependencies=
|
||||
u-boot
|
||||
|
||||
[Distribution]
|
||||
Distribution=rosa
|
||||
Release=rosa13
|
||||
|
@ -31,3 +36,9 @@ Timezone=Europe/Moscow
|
|||
Hostname=elara
|
||||
WithDocs=no
|
||||
CleanPackageMetadata=false
|
||||
|
||||
[Build]
|
||||
WithNetwork=yes
|
||||
|
||||
BuildSources=./:mkosi
|
||||
./mkosi.images/u-boot/configuration:configuration
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
set -x
|
||||
env
|
||||
ls -la ${SRCDIR}
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
echo "--- mkosi.build: args=$@"
|
||||
echo "--- mkosi.build: container=$container"
|
||||
|
||||
|
@ -16,7 +14,18 @@ echo "--- mkosi.build: builddir=$BUILDDIR"
|
|||
|
||||
cd $SRCDIR
|
||||
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
|
||||
cd u-boot
|
||||
git apply ${SRCDIR}/configuration/*.patch
|
9
device/rockchip/ok3568c/mkosi.images/u-boot/mkosi.conf
Normal file
9
device/rockchip/ok3568c/mkosi.images/u-boot/mkosi.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Output]
|
||||
Format=directory
|
||||
|
||||
[Content]
|
||||
Bootable=no
|
||||
|
||||
Packages=dnf
|
||||
rosa-repos-contrib
|
||||
rosa-repos
|
|
@ -1,6 +1,9 @@
|
|||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
set -x
|
||||
env
|
||||
ls -la ${SRCDIR}
|
||||
ls -la ${OUTPUTDIR}
|
||||
UBOOT_DIR="${SRCDIR}/mkosi"
|
||||
|
||||
pushd ${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
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue