To get started with Flyme patchrom, you'll need to get familiar with Git and Repo.
mkdir flyme
cd flyme
repo init -u https://github.com/FlymeOS/manifest.git -b nougat-7.1
repo sync -c -j4
git clone https://github.com/aymende7/flyme_devices_piccolo -b nougat-7.1 devices/piccolo
. build/envsetup.sh
cpiccolo
flyme fullota