From 7b10e6e724192e2736a1951cb1b846ab4e03bac0 Mon Sep 17 00:00:00 2001 From: Jami Kettunen Date: Sun, 6 Dec 2020 20:24:39 +0200 Subject: [PATCH] BUILDING: Add needed misc fixes for SFOS 3.4 building --- BUILDING.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/BUILDING.md b/BUILDING.md index c687a22..d03a9ec 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -68,11 +68,31 @@ HA_BUILD $ mka hybris-boot ## Building SFOS packages & rootfs +Before beginning, run the following to avoid a few errors while building and pulling repo updates: +``` +croot +cd external/libhybris +git checkout master +cd - +cd hybris/mw/sailfish-fpd-community +git checkout master +cd - +``` + To pull updates and start (re)building all locally required SFOS packages & the rootfs, run the following command (full build takes ~20 minutes for me): ``` PLATFORM_SDK $ build_all_packages ``` +For now here's also a temporary "fix" for `repo problem: nothing provides sailfish-fpd-community needed by pattern:jolla-configuration-...`: +``` +croot +cp droid-local-repo/$DEVICE/sailfish-fpd-community/droid-*.rpm /tmp +bp -b hybris/mw/sailfish-fpd-community -s rpm/sailfish-fpd-community.spec +mv /tmp/droid-*.rpm droid-local-repo/$DEVICE/sailfish-fpd-community/ +bp -vi +``` + As the rootfs `mic` build command line is now included in `build_packages.sh` steps, this is all you need to get a rather tiny (~380 MB) flashable SFOS zip file! Look into the [flashing guide](FLASHING.md) on how to proceed afterwards. When just droid configs have been modified, `build_device_configs` will be enough. Same goes for droid HAL stuff with `build_droid_hal` instead. Building with these commands instead will be substantially faster than rebuilding everything (which is unnecessary 99% of the time anyways).