Fix to build for internal project with 'INTERNAL=true'

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I4b130880f09437ec547f479f8846c75976f75849
This commit is contained in:
Dongjin Kim
2021-12-24 12:51:41 +09:00
parent 967d42cb1b
commit 5a43c1b0b7
3 changed files with 5 additions and 11 deletions

View File

@@ -1,11 +1,5 @@
#!/bin/sh
INTERNAL_APT=/etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list
if [ -f ${INTERNAL_APT} ]; then
sed -i "/internal/d" ${INTERNAL_APT}
fi
cat>>${INTERNAL_APT}<<__EOF
deb http://ppa.linuxfactory.or.kr focal internal
cat>/etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list<<__EOF
deb http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ internal
__EOF

View File

@@ -379,9 +379,8 @@ do_preinstall() {
${fixup}
done
if [ "x${INTERNAL}" = "x" ]; then
rm -f ${rootfs_mnt}${fixups_dir}/S00-internal-repository
fi
[ "x${INTERNAL}" = "xtrue" ] \
|| rm -f ${rootfs_mnt}${fixups_dir}/S00-internal-repository
QEMU_BINARY=$(qemu_binary ${ARCH})

View File

@@ -20,6 +20,7 @@ ODROID_STAMPER_DIR="/usr/share/odroid-stamper"
TOPDIR=${ODROID_STAMPER_CHECKOUT:-${ODROID_STAMPER_DIR}}
WORKDIR=$PWD
RUN_MENU=true
INTERNAL=${INTERNAL:-false}
DEFAULT_CONFIG=${WORKDIR}/.config