I did these:
HOST $
exec bash #or source ~/.bashrc
sudo mkdir -p $PLATFORM_SDK_ROOT/{targets,toolings,sdks/sfossdk}
sudo ln -s $PLATFORM_SDK_ROOT/sdks/sfossdk/$PLATFORM_SDK_ROOT/sdks/ubuntu/ $PLATFORM_SDK_ROOT/sdks/ubuntu
cd && curl -k -O http://releases.sailfishos.org/sdk/installers/3.1.7.deprecated/Sailfish_OS-3.3.0.16-Platform_SDK_Chroot-i486.tar.bz2
sudo tar --numeric-owner -p -xjf Sailfish_OS-3.3.0.16-Platform_SDK_Chroot-i486.tar.bz2 -C $PLATFORM_SDK_ROOT/sdks/sfossdk
mkdir -p $ANDROID_ROOT
#su: failed to execute /bin/bash: Resource temporarily unavailable
sudo sed -ri ‘s/2048/65535/’ /srv/mer/sdks/sfossdk/etc/security/limits.d/95-nproc-sdk.conf
sfossdk
PLATFORM_SDK $
sudo zypper ref -f
sudo zypper --non-interactive in bc pigz atruncate android-tools-hadk kmod
source ~/.hadk.env
RELEASE=3.3.0.16
cd && sdk-manage target install $VENDOR-$DEVICE-$PORT_ARCH http://releases.sailfishos.org/sdk/targets/Sailfish_OS-$RELEASE-Sailfish_SDK_Target-$PORT_ARCH.tar.7z --tooling SailfishOS-$RELEASE --tooling-url http://releases.sailfishos.org/sdk/targets/Sailfish_OS-$RELEASE-Sailfish_SDK_Tooling-i486.tar.7z
PLATFORM_SDK $ sdk-assistant list
SailfishOS-3.3.0.16
└─oneplus-enchilada-armv7hl
PLATFORM_SDK $
TARBALL=ubuntu-trusty-20180613-android-rootfs.tar.bz2
cd && curl -O https://releases.sailfishos.org/ubu/$TARBALL
UBUNTU_CHROOT=$PLATFORM_SDK_ROOT/sdks/ubuntu
sudo mkdir -p $UBUNTU_CHROOT
sudo tar --numeric-owner -xjf $TARBALL -C $UBUNTU_CHROOT
sudo sed “s/\tlocalhost/\t$(</parentroot/etc/hostname)/g” -i $UBUNTU_CHROOT/etc/hosts
[HOST] $
cd $ANDROID_ROOT
repo init -u git://github.com/mer-hybris/android.git -b hybris-16.0 --depth 1
git clone https://github.com/sailfish-oneplus6/local_manifests .repo/local_manifests/
git -C .repo/local_manifests/ checkout 17ddf5797
cd $ANDROID_ROOT
repo sync -c --force-sync --fetch-submodules --no-clone-bundle --no-tags
hybris-patches/apply-patches.sh --mb
git clone --recurse-submodules https://github.com/mer-hybris/libhybris hybris/mw/libhybris
git clone --recurse-submodules https://github.com/sailfish-oneplus6/droid-config-enchilada.git hybris/droid-configs
git clone https://github.com/sailfish-oneplus6/droid-hal-enchilada rpm
git clone https://github.com/mer-hybris/droid-hal-device.git rpm/dhd
sfossdk
Which device would you like to build for?
- enchilada (OnePlus 6)
- fajita (OnePlus 6T)
Choice: (1/2) 1
PLATFORM_SDK $
ubu
[HABUILD]
git -C hybris/hybris-boot/ pull --all
git -C hybris/hybris-boot/ checkout enchilada
sudo apt update
sudo apt install imagemagick
. build/envsetup.sh
breakfast $DEVICE
mka hybris-hal
echo “MINIMEDIA_AUDIOPOLICYSERVICE_ENABLE := 1” > external/droidmedia/env.mk
sed “s/Werror/Werror -Wno-unused-parameter/” -i frameworks/av/services/camera/libcameraservice/Android.mk
mka droidmedia audioflingerglue
[PLATFORM]
rpm/dhd/helpers/build_packages.sh
log: http://fars.ee/OjVq
modify:
CONFIG_UTS_NS=y
CONFIG_PID_NS=y
again:
[HABUILD] mka hybris-hal
[PLATFORM] rpm/dhd/helpers/build_packages.sh
log: http://fars.ee/FlH7
conflicts problem