mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Add version and toolchain to img filename (#18)
* add version and toolchain to img filename --------- Co-authored-by: Apaczer <94932128+Apaczer@users.noreply.github.com>
This commit is contained in:
8
.github/workflows/rootfs.yml
vendored
8
.github/workflows/rootfs.yml
vendored
@@ -30,7 +30,7 @@ jobs:
|
||||
- uses: actions/cache@v3
|
||||
if: inputs.submodule
|
||||
with:
|
||||
path: ${{ inputs.submodule || '.' }}/output/images/miyoo-cfw-2.0.0.img
|
||||
path: ${{ inputs.submodule || '.' }}/output/images/miyoo-cfw-*.img
|
||||
key: ${{ steps.cache-key.outputs.key }}
|
||||
id: cache
|
||||
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: build image (uClibc)
|
||||
path: ${{ inputs.submodule || '.' }}/output/images/miyoo-cfw-2.0.0.img
|
||||
path: ${{ inputs.submodule || '.' }}/output/images/miyoo-cfw-*.img
|
||||
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
@@ -76,7 +76,7 @@ jobs:
|
||||
- uses: actions/cache@v3
|
||||
if: inputs.submodule
|
||||
with:
|
||||
path: ${{ inputs.submodule || '.' }}/output/images/miyoo-cfw-2.0.0.img
|
||||
path: ${{ inputs.submodule || '.' }}/output/images/miyoo-cfw-*.img
|
||||
key: ${{ steps.cache-key.outputs.key }}
|
||||
id: cache
|
||||
|
||||
@@ -93,7 +93,7 @@ jobs:
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: build image (musl)
|
||||
path: ${{ inputs.submodule || '.' }}/output/images/miyoo-cfw-2.0.0.img
|
||||
path: ${{ inputs.submodule || '.' }}/output/images/miyoo-cfw-*.img
|
||||
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
|
||||
@@ -34,7 +34,7 @@ image mainfs.vfat {
|
||||
}
|
||||
|
||||
|
||||
image miyoo-cfw-2.0.0.img {
|
||||
image ${IMAGE_NAME:-miyoo-cfw-2.0.0.img} {
|
||||
hdimage {}
|
||||
|
||||
partition u-boot {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
export IMAGE_NAME=${2}
|
||||
STARTDIR=`pwd`
|
||||
SELFDIR=`dirname \`realpath ${0}\``
|
||||
|
||||
cp -r board/miyoo/boot "${BINARIES_DIR}"
|
||||
cp -r board/miyoo/main "${BINARIES_DIR}"
|
||||
|
||||
support/scripts/genimage.sh ${1} -c board/miyoo/genimage-sdcard.cfg
|
||||
|
||||
@@ -20,7 +20,7 @@ BR2_TARGET_GENERIC_HOSTNAME="miyoo"
|
||||
BR2_TARGET_GENERIC_ISSUE="Welcome to Miyoo"
|
||||
BR2_ROOTFS_OVERLAY="board/miyoo/rootfs"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/miyoo/scripts/genimage.sh"
|
||||
BR2_ROOTFS_POST_SCRIPT_ARGS="${BR2_TARGET_UBOOT_SPL_NAME}"
|
||||
BR2_ROOTFS_POST_SCRIPT_ARGS="${BR2_TOOLCHAIN_BUILDROOT_VENDOR}-cfw-2.0.0${BR2_VERSION_FULL}_${BR2_TOOLCHAIN_BUILDROOT_LIBC}.img"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_GIT=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/MiyooCFW/kernel.git"
|
||||
|
||||
@@ -19,7 +19,7 @@ BR2_TARGET_GENERIC_HOSTNAME="miyoo"
|
||||
BR2_TARGET_GENERIC_ISSUE="Welcome to Miyoo"
|
||||
BR2_ROOTFS_OVERLAY="board/miyoo/rootfs"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/miyoo/scripts/genimage.sh"
|
||||
BR2_ROOTFS_POST_SCRIPT_ARGS="${BR2_TARGET_UBOOT_SPL_NAME}"
|
||||
BR2_ROOTFS_POST_SCRIPT_ARGS="${BR2_TOOLCHAIN_BUILDROOT_VENDOR}-cfw-2.0.0${BR2_VERSION_FULL}_${BR2_TOOLCHAIN_BUILDROOT_LIBC}.img"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_GIT=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/MiyooCFW/kernel.git"
|
||||
|
||||
Reference in New Issue
Block a user