diff options
author | Gaël PORTAY <gael.portay@savoirfairelinux.com> | 2017-10-21 09:52:14 -0400 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-10-21 21:37:10 +0200 |
commit | d0b055239e10898b87ff8af02f8c4bd14426e3e7 (patch) | |
tree | c475b74213f3792e356dc09b9f3cce95509e82b9 /package/lua-sdl2/0001-Do-not-reference-host-directory-for-headers.patch | |
parent | 0629eb8449f1fdbcfc892722fee262a400b9e6c2 (diff) | |
download | buildroot-d0b055239e10898b87ff8af02f8c4bd14426e3e7.tar.gz buildroot-d0b055239e10898b87ff8af02f8c4bd14426e3e7.zip |
raspberrypi: post-image.sh fix gpu_mem option
The gpu_mem option is not using the proper option argument which causes sed to
fail.
+ case "${arg}" in
+ gpu_mem=ome/gportay/output-rpi3-qtwe/images
+ sed -e '/^ome/gportay/output-rpi3-qtwe/images=/s,=.*,=ome/gportay/output-rpi3-qtwe/images,' -i /home/gportay/output-rpi3-qtwe/images/rpi-firmware/config.txt
sed: -e expression #1, char 8: extra characters after command
+ case "${arg}" in
+ gpu_mem=ome/gportay/output-rpi3-qtwe/images
+ sed -e '/^ome/gportay/output-rpi3-qtwe/images=/s,=.*,=ome/gportay/output-rpi3-qtwe/images,' -i /home/gportay/output-rpi3-qtwe/images/rpi-firmware/config.txt
sed: -e expression #1, char 8: extra characters after command
The issue comes from the use of $1 instead of $arg to extract the gpu_mem
value. $1 is the $(BINARIES_DIR) which leads to a sed expression error.
Also, it adds the error flag to the shell script to prevent from such situation
and terminate the build in error.
Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lua-sdl2/0001-Do-not-reference-host-directory-for-headers.patch')
0 files changed, 0 insertions, 0 deletions