Closed
Description
git_revision
will contain "/", and later sed
will fail.
Example log:
Build ONIE installer
+ arch=x86_64
+ machine=broadcom
+ platform=x86_64-broadcom-r0
+ installer_dir=installer
+ platform_conf=platform/broadcom/platform.conf
+ output_file=target/sonic-broadcom.bin
+ demo_type=OS
+ git_revision=taoyl/test.0-c8a315e
+ onie_image_part_size=32768
+ shift 9
+ [ ! -d installer ]
+ [ ! -r installer/sharch_body.sh ]
+ [ ! -d installer/x86_64 ]
+ [ ! -r installer/x86_64/install.sh ]
+ [ -n taoyl/test.0-c8a315e ]
+ [ -n 32768 ]
+ [ -r platform/broadcom/platform.conf ]
+ [ 1 -gt 0 ]
+ tmp_dir=
+ echo -n Building self-extracting install image .
Building self-extracting install image .+ mktemp --directory
+ tmp_dir=/tmp/tmp.85lbt3lbEE
+ tmp_installdir=/tmp/tmp.85lbt3lbEE/installer
+ mkdir /tmp/tmp.85lbt3lbEE/installer
+ cp -r installer/x86_64/install.sh installer/x86_64/macset.sh installer/x86_64/platforms /tmp/tmp.
85lbt3lbEE/installer
+ cp onie-image.conf /tmp/tmp.85lbt3lbEE/installer
+ echo
+ sed -e s/[\/&]/\\&/g
+ EXTRA_CMDLINE_LINUX=
+ sed -i -e s/%%DEMO_TYPE%%/OS/g -e s/%%GIT_REVISION%%/taoyl/test.0-c8a315e/g -e s/%%ONIE_IMAGE_PART
_SIZE%%/32768/ -e s/%%EXTRA_CMDLINE_LINUX%%// /tmp/tmp.85lbt3lbEE/installer/install.sh
sed: -e expression #2, char 26: unknown option to `s'
+ clean_up 1
+ rm -rf /tmp/tmp.85lbt3lbEE
+ exit 1
slave.mk:314: recipe for target 'target/sonic-broadcom.bin' failed
make: Leaving directory '/sonic'
make: *** [target/sonic-broadcom.bin] Error 1
Makefile:33: recipe for target 'target/sonic-broadcom.bin' failed
make: *** [target/sonic-broadcom.bin] Error 2