File tree Expand file tree Collapse file tree 1 file changed +0
-39
lines changed
Expand file tree Collapse file tree 1 file changed +0
-39
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
2- # shellcheck disable=SC2086
3-
4- common=$( dirname " $( readlink -f " $0 " ) " )
5- . " $common /lib.sh"
6-
7- # shellcheck disable=SC1091
8- . " $TARGET_DIR /etc/os-release"
9-
10- # The INFIX_* variables may be composed from BR2_* variables,
11- # so we source them last.
12- load_cfg BR2_ARCH
13- load_cfg BR2_DEFCONFIG
14- load_cfg BR2_EXTERNAL_INFIX_PATH
15- load_cfg BR2_TARGET_ROOTFS
16- load_cfg INFIX_ID
17-
18- # The default IMAGE_ID is infix-$BR2_ARCH but can be overridden
19- # for imaage names, and compat strings, like infix-r2s
20- if [ -n " $IMAGE_ID " ]; then
21- NAME=" $IMAGE_ID "
22- else
23- NAME=" $INFIX_ID " -$( echo " $BR2_ARCH " | tr _ - | sed ' s/x86-64/x86_64/' )
24- fi
25-
26- ver ()
27- {
28- if [ -n " $INFIX_RELEASE " ]; then
29- printf -- " -%s" " ${INFIX_RELEASE# v} "
30- return
31- fi
32- }
33-
34- diskimg=" ${NAME} $( ver) .qcow2"
352
363# Only for regular builds, not bootloader-only builds
374if [ " $BR2_TARGET_ROOTFS_SQUASHFS " = " y" ]; then
38- rel=$( ver)
39- ln -sf rootfs.squashfs " $BINARIES_DIR /${NAME}${rel} .img"
40- if [ -n " $rel " ]; then
41- ln -sf " ${NAME}${rel} .img" " $BINARIES_DIR /${NAME} .img"
42- fi
43-
445 cp " $BR2_EXTERNAL_INFIX_PATH /board/common/rootfs/usr/bin/onieprom" " $BINARIES_DIR /"
456
467 # Quick intro for beginners, with links to more information
You can’t perform that action at this time.
0 commit comments