Commit da94a6b7 authored by Eetu's avatar Eetu

[NemoMobile] Change prepare for NemoMobile

parent c11e80c6
build/
src/
downloads/
sstate-cache/
tmp/
uninative/
FROM ubuntu:disco
# Install packages required to build AsteroidOS
# Install packages required to build NemoMobile
RUN apt update && apt upgrade -y && apt install -y git build-essential cpio diffstat gawk chrpath texinfo python2 python3 wget shared-mime-info
# Add the en_US.utf8 locale because it is required and not installed by default in minimal Ubuntu images
RUN apt-get install -y locales && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
WORKDIR /asteroid
WORKDIR /nemo
......@@ -57,38 +57,40 @@ elif [[ "$1" == "git-"* ]]; then
done
# Prepare bitbake
else
mkdir -p src build/conf
ROOTDIR=`pwd`
mkdir -p src build/conf tmp sstate-cache downloads uninative
if [ "$#" -gt 0 ]; then
export MACHINE=${1}
else
export MACHINE=dory
export MACHINE=qemux86
fi
# Fetch all the needed layers in src/
clone_dir src/oe-core https://github.com/openembedded/openembedded-core.git thud
clone_dir src/oe-core/bitbake https://github.com/openembedded/bitbake.git 1.40
clone_dir src/meta-openembedded https://github.com/openembedded/meta-openembedded.git thud
clone_dir src/meta-qt5 https://github.com/meta-qt5/meta-qt5 master 201fcf27cf07d60b7d6ab89c7dcefe2190217745
clone_dir src/meta-smartphone https://github.com/shr-distribution/meta-smartphone thud
clone_dir src/meta-asteroid https://github.com/AsteroidOS/meta-asteroid master
clone_dir src/meta-anthias-hybris https://github.com/AsteroidOS/meta-anthias-hybris master
clone_dir src/meta-bass-hybris https://github.com/AsteroidOS/meta-bass-hybris master
clone_dir src/meta-dory-hybris https://github.com/AsteroidOS/meta-dory-hybris master
clone_dir src/meta-lenok-hybris https://github.com/AsteroidOS/meta-lenok-hybris master
clone_dir src/meta-mtk6580-hybris https://github.com/AsteroidOS/meta-mtk6580-hybris master
clone_dir src/meta-mooneye-hybris https://github.com/AsteroidOS/meta-mooneye-hybris master
clone_dir src/meta-sparrow-hybris https://github.com/AsteroidOS/meta-sparrow-hybris master
clone_dir src/meta-sprat-hybris https://github.com/AsteroidOS/meta-sprat-hybris master
clone_dir src/meta-swift-hybris https://github.com/AsteroidOS/meta-swift-hybris master
clone_dir src/meta-tetra-hybris https://github.com/AsteroidOS/meta-tetra-hybris master
clone_dir src/meta-wren-hybris https://github.com/AsteroidOS/meta-wren-hybris master
clone_dir src/meta-qt5 https://code.qt.io/yocto/meta-qt5.git 5.12
clone_dir src/meta-nemo https://source.necunos.com/nemomobile/meta-nemo.git master
# Create local.conf and bblayers.conf on first run
if [ ! -e build/conf/local.conf ]; then
echo -e "\e[32mWriting build/conf/local.conf\e[39m"
echo 'DISTRO = "asteroid"
PACKAGE_CLASSES = "package_ipk"' >> build/conf/local.conf
cat >> $ROOTDIR/build/conf/local.conf << EOF
DISTRO = "nemox86"
PACKAGE_CLASSES = "package_rpm"
PACKAGECONFIG_append_pn_gpgme = " python3"
PATCHRESOLVE = "noop"
TMPDIR = "$ROOTDIR/tmp/"
SSTATE_DIR ?= "$ROOTDIR/sstate-cache"
DL_DIR ?= "$ROOTDIR/downloads"
TARGET_USERNAME = "nemo"
QT_GIT_PROTOCOL = "https"
EOF
fi
if [ ! -e build/conf/bblayers.conf ]; then
......@@ -99,39 +101,28 @@ SRCDIR = "${@os.path.abspath(os.path.join("${TOPDIR}", "../src/"))}"
BBLAYERS = " \
${SRCDIR}/meta-qt5 \
${SRCDIR}/oe-core/meta \
${SRCDIR}/meta-asteroid \
${SRCDIR}/meta-nemo \
${SRCDIR}/meta-openembedded/meta-oe \
${SRCDIR}/meta-openembedded/meta-multimedia \
${SRCDIR}/meta-openembedded/meta-gnome \
${SRCDIR}/meta-openembedded/meta-networking \
${SRCDIR}/meta-smartphone/meta-android \
${SRCDIR}/meta-openembedded/meta-python \
${SRCDIR}/meta-openembedded/meta-filesystems \
${SRCDIR}/meta-anthias-hybris \
${SRCDIR}/meta-sparrow-hybris \
${SRCDIR}/meta-sprat-hybris \
${SRCDIR}/meta-tetra-hybris \
${SRCDIR}/meta-bass-hybris \
${SRCDIR}/meta-dory-hybris \
${SRCDIR}/meta-lenok-hybris \
${SRCDIR}/meta-mtk6580-hybris \
${SRCDIR}/meta-mooneye-hybris \
${SRCDIR}/meta-swift-hybris \
${SRCDIR}/meta-wren-hybris \
"' > build/conf/bblayers.conf
fi
# Init build env
cd src/oe-core
. ./oe-init-build-env ../../build > /dev/null
umask 022
echo "Welcome to the Asteroid compilation script.
echo "Welcome to the NemoMobile compilation script.
If you meet any issue you can report it to the project's github page:
https://github.com/AsteroidOS
If you meet any issue you can report it to the project's git page:
https://source.necunos.com/NemoMobile
You can now run the following command to get started with the compilation:
bitbake asteroid-image
bitbake nemox86-image
Have fun!"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment