Skip to content

Commit 0887eec

Browse files
leiludbkinder
authored andcommitted
doc: remove deprecated sos_bootargs
SOS bootargs is specified in vm_configurations.h in different scenarios. The files in devicemodel/samples/<board>/sos_bootargs_*.txt are removed. remove deprecated sos_bootargs in create-up2-images.sh Tracked-On: #3443 Signed-off-by: Lei Lu <leix.lu@intel.com>
1 parent 2e79501 commit 0887eec

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

doc/tutorials/create-up2-images.sh

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,13 @@ create_sos_images() {
4646
return 1
4747
}
4848

49-
SOS_BOOTARGS_DEBUG=sos_rootfs/usr/share/acrn/samples/apl-up2/sos_bootargs_debug.txt
50-
5149
if [[ ! ${ACRN_SBL} || ! -f ${ACRN_SBL} ]]
5250
then
5351
ACRN_SBL=sos_rootfs/usr/lib/acrn/acrn.apl-up2.sbl
5452
fi
5553

5654
if [ ${ACRN_HV_CODE_PATH} ]
5755
then
58-
SOS_BOOTARGS_DEBUG=${ACRN_HV_CODE_PATH}/devicemodel/samples/apl-up2/sos_bootargs_debug.txt
59-
6056
make -C ${ACRN_HV_CODE_PATH} clean || return 1
6157
make -C ${ACRN_HV_CODE_PATH} hypervisor BOARD=apl-up2 FIRMWARE=sbl || return 1
6258
ACRN_SBL=${ACRN_HV_CODE_PATH}/build/hypervisor/acrn.32.out
@@ -70,19 +66,11 @@ create_sos_images() {
7066

7167
echo "ACRN_SBL:"${ACRN_SBL}
7268

73-
if [ -f ${SOS_BOOTARGS_DEBUG} ]
74-
then
75-
echo -n "CMDLINE: "
76-
echo $(tr '\n' ' ' < $SOS_BOOTARGS_DEBUG) | tee tmp/cmdline
77-
else
78-
echo "sos_bootargs_debug.txt is not found"
79-
return 1
80-
fi
81-
69+
echo -n "Linux_bzImage" > tmp/linux.txt
8270
SOS_KERNEL=$(ls sos_rootfs/usr/lib/kernel/org.clearlinux.iot-lts2018-sos*)
8371
touch tmp/hv_cmdline
8472

85-
iasimage create -o iasImage -i 0x40300 -d tmp/bxt_dbg_priv_key.pem -p 4 tmp/hv_cmdline ${ACRN_SBL} tmp/cmdline ${SOS_KERNEL} ||
73+
iasimage create -o iasImage -i 0x40300 -d tmp/bxt_dbg_priv_key.pem -p 4 tmp/hv_cmdline ${ACRN_SBL} tmp/linux.txt ${SOS_KERNEL} ||
8674
{
8775
echo "stitch iasimage for sos_boot failed!"
8876
return 1

0 commit comments

Comments
 (0)