I forked esp-idf on github, then in an ubuntu terminal :
git clone https://github.com/marchingband/esp-idf
git checkout release/v4.4
git apply {local-path-to-the-patch}
git add . && git commit -m"apply eMMC patch" && git push origin release/v4.4
sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache jq
sudo pip install --upgrade pip
git clone https://github.com/espressif/esp32-arduino-lib-builder
cd esp32-arduino-lib-builder