Use EXTRA_IMAGE_NAME Image Builder variable instead of moving
This commit is contained in:
parent
5f8faea941
commit
2b5cbe32df
|
@ -134,25 +134,20 @@ pushd ${BOOTSOURCE}
|
||||||
git apply ${pwd}/patches/bootconfig-add.patch
|
git apply ${pwd}/patches/bootconfig-add.patch
|
||||||
popd
|
popd
|
||||||
|
|
||||||
make image PROFILE=${PROFILE} \
|
make image PROFILE=${PROFILE} EXTRA_IMAGE_NAME="dualeth" \
|
||||||
PACKAGES="${PACKAGES}" DISABLED_SERVICES="dropbear" FILES="files" || exit 1
|
PACKAGES="${PACKAGES}" DISABLED_SERVICES="dropbear" FILES="files" || exit 1
|
||||||
|
|
||||||
mv ${IMAGE_PATH}-squashfs-factory.img.gz ${IMAGE_PATH}-squashfs-factory-dualeth.img.gz
|
|
||||||
mv ${IMAGE_PATH}-squashfs-sysupgrade.img.gz ${IMAGE_PATH}-squashfs-sysupgrade-dualeth.img.gz
|
|
||||||
|
|
||||||
sed -i "s|,i2c_csi_dsi||g" ${BOOTSOURCE}/current.txt
|
sed -i "s|,i2c_csi_dsi||g" ${BOOTSOURCE}/current.txt
|
||||||
sed -i "s/CONFIG_TARGET_ROOTFS_PARTSIZE=.*/CONFIG_TARGET_ROOTFS_PARTSIZE=768/g" .config
|
sed -i "s/CONFIG_TARGET_ROOTFS_PARTSIZE=.*/CONFIG_TARGET_ROOTFS_PARTSIZE=768/g" .config
|
||||||
|
|
||||||
make image PROFILE=${PROFILE} \
|
make image PROFILE=${PROFILE} EXTRA_IMAGE_NAME="waveshare" \
|
||||||
PACKAGES=" \
|
PACKAGES=" \
|
||||||
${PACKAGES} cryptsetup kmod-ata-ahci smartmontools hdparm fdisk parted \
|
${PACKAGES} cryptsetup kmod-ata-ahci smartmontools hdparm fdisk parted \
|
||||||
kmod-hwmon-drivetemp btrfs-progs kmod-fs-btrfs kmod-nvme nvme-cli \
|
kmod-hwmon-drivetemp btrfs-progs kmod-fs-btrfs kmod-nvme nvme-cli \
|
||||||
docker dockerd docker-compose block-mount" \
|
docker dockerd docker-compose block-mount" \
|
||||||
DISABLED_SERVICES="dropbear" FILES="files" || exit 1
|
DISABLED_SERVICES="dropbear" FILES="files" || exit 1
|
||||||
|
|
||||||
mv ${IMAGE_PATH}-squashfs-factory.img.gz ${IMAGE_PATH}-squashfs-factory-waveshare.img.gz
|
|
||||||
mv ${IMAGE_PATH}-squashfs-sysupgrade.img.gz ${IMAGE_PATH}-squashfs-sysupgrade-waveshare.img.gz
|
|
||||||
|
|
||||||
|
|
||||||
cp ${pwd}/overlays/sensing.txt ${BOOTSOURCE}/current.txt
|
cp ${pwd}/overlays/sensing.txt ${BOOTSOURCE}/current.txt
|
||||||
cp ${pwd}/overlays/*.dtbo ${OVERLAYSOURCE}
|
cp ${pwd}/overlays/*.dtbo ${OVERLAYSOURCE}
|
||||||
|
@ -164,8 +159,7 @@ popd
|
||||||
|
|
||||||
sed -i "s/CONFIG_TARGET_ROOTFS_PARTSIZE=.*/CONFIG_TARGET_ROOTFS_PARTSIZE=308/g" .config
|
sed -i "s/CONFIG_TARGET_ROOTFS_PARTSIZE=.*/CONFIG_TARGET_ROOTFS_PARTSIZE=308/g" .config
|
||||||
|
|
||||||
|
make image PROFILE=${PROFILE} EXTRA_IMAGE_NAME="sensing" \
|
||||||
make image PROFILE=${PROFILE} \
|
|
||||||
PACKAGES="${PACKAGES} asterisk \
|
PACKAGES="${PACKAGES} asterisk \
|
||||||
asterisk-app-sms asterisk-pjsip asterisk-bridge-simple \
|
asterisk-app-sms asterisk-pjsip asterisk-bridge-simple \
|
||||||
asterisk-codec-alaw asterisk-codec-ulaw \
|
asterisk-codec-alaw asterisk-codec-ulaw \
|
||||||
|
@ -173,9 +167,6 @@ make image PROFILE=${PROFILE} \
|
||||||
asterisk-chan-quectel" \
|
asterisk-chan-quectel" \
|
||||||
DISABLED_SERVICES="dropbear" FILES="files" || exit 1
|
DISABLED_SERVICES="dropbear" FILES="files" || exit 1
|
||||||
|
|
||||||
mv ${IMAGE_PATH}-squashfs-factory.img.gz ${IMAGE_PATH}-squashfs-factory-sensing.img.gz
|
|
||||||
mv ${IMAGE_PATH}-squashfs-sysupgrade.img.gz ${IMAGE_PATH}-squashfs-sysupgrade-sensing.img.gz
|
|
||||||
|
|
||||||
|
|
||||||
cat ${BINPATH}/*.manifest
|
cat ${BINPATH}/*.manifest
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user