mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
4
board/orangepi/common/extlinux.conf
Normal file
4
board/orangepi/common/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
LABEL default
|
||||
kernel /boot/%LINUXIMAGE%
|
||||
devicetreedir /boot
|
||||
append root=PARTUUID=%PARTUUID% rootwait console=${console} rootfstype=ext4 quiet panic=10
|
||||
20
board/orangepi/common/genimage.cfg
Normal file
20
board/orangepi/common/genimage.cfg
Normal file
@@ -0,0 +1,20 @@
|
||||
image sdcard.img {
|
||||
partition u-boot {
|
||||
in-partition-table = false
|
||||
image = "u-boot-sunxi-with-spl.bin"
|
||||
offset = 8K
|
||||
size = 1000K # 1MB - 8KB(offset) - 16KB(GPT)
|
||||
}
|
||||
|
||||
hdimage {
|
||||
partition-table-type = gpt
|
||||
gpt-location = 1008K # 1MB - 16KB(GPT)
|
||||
gpt-no-backup = true
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
offset = 1M
|
||||
image = "rootfs.ext4"
|
||||
partition-uuid = %PARTUUID%
|
||||
}
|
||||
}
|
||||
34
board/orangepi/common/post-build.sh
Executable file
34
board/orangepi/common/post-build.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
|
||||
linux_image()
|
||||
{
|
||||
if grep -Eq "^BR2_LINUX_KERNEL_UIMAGE=y$" ${BR2_CONFIG}; then
|
||||
echo "uImage"
|
||||
elif grep -Eq "^BR2_LINUX_KERNEL_IMAGE=y$" ${BR2_CONFIG}; then
|
||||
echo "Image"
|
||||
elif grep -Eq "^BR2_LINUX_KERNEL_IMAGEGZ=y$" ${BR2_CONFIG}; then
|
||||
echo "Image.gz"
|
||||
else
|
||||
echo "zImage"
|
||||
fi
|
||||
}
|
||||
|
||||
generic_getty()
|
||||
{
|
||||
if grep -Eq "^BR2_TARGET_GENERIC_GETTY=y$" ${BR2_CONFIG}; then
|
||||
echo ""
|
||||
else
|
||||
echo "s/\s*console=\S*//"
|
||||
fi
|
||||
}
|
||||
|
||||
PARTUUID="$($HOST_DIR/bin/uuidgen)"
|
||||
|
||||
install -d "$TARGET_DIR/boot/extlinux/"
|
||||
|
||||
sed -e "$(generic_getty)" \
|
||||
-e "s/%LINUXIMAGE%/$(linux_image)/g" \
|
||||
-e "s/%PARTUUID%/$PARTUUID/g" \
|
||||
"board/orangepi/common/extlinux.conf" > "$TARGET_DIR/boot/extlinux/extlinux.conf"
|
||||
|
||||
sed "s/%PARTUUID%/$PARTUUID/g" "board/orangepi/common/genimage.cfg" > "$BINARIES_DIR/genimage.cfg"
|
||||
Reference in New Issue
Block a user