alexparser Posted June 27, 2016 Posted June 27, 2016 Hi! I want to know in what order is executed the patching at compilation? Patched files are written into SRC files? How I can skip selected patch file? Thanks!
zador.blood.stained Posted June 27, 2016 Posted June 27, 2016 I want to know in what order is executed the patching at compilation? Order is determined by patch file names, LC_ALL=C sorting order. *** WARNING *** The locale specified by the environment affects sort order. Set LC_ALL=C to get the traditional sort order that uses native byte values. Patched files are written into SRC files? No. All files with .patch extensions are collected from $SRC/lib/patch/<uboot|kernel>/$LINUXFAMILY-$BRANCH and $SRC/userpatches/<uboot|kernel>/$LINUXFAMILY-$BRANCH How I can skip selected patch file? If you want to skip, for example, "lib/patch/kernel/sunxi-next/01-wens-banana-m1plus.patch", create an empty file "userpatches/kernel/sunxi-next/01-wens-banana-m1plus.patch" Patches with same file name in "userpatches" subdirectories have higher priority than ones in "lib/patch".
alexparser Posted June 28, 2016 Author Posted June 28, 2016 Thanks zador.blood.stained! Where can I see the source file after the patching process? For different versions of Linux (Debian Wheezy, Jessie or Ubuntu Trusty, Xenial) used the same patch files? How to do a custom patch file for FEX file?
zador.blood.stained Posted June 28, 2016 Posted June 28, 2016 Where can I see the source file after the patching process? In subdirectory of $SRC/sources for the target that you patched For different versions of Linux (Debian Wheezy, Jessie or Ubuntu Trusty, Xenial) used the same patch files? Yes How to do a custom patch file for FEX file? Patching is implemented only for kernel and u-boot sources. To change FEX file you can write a code that uses bin2fex, sed and fex2bin in userpatches/customize-image.sh Something like bin2fex /boot/script.bin /boot/script.fex sed -i 's/screen0_output_type = 3/screen0_output_type = 4' /boot/script.fex # remove symlink to preserve changes on board support package upgrade rm /boot/script.bin fex2bin /boot/script.fex /boot/script.bin In cusomize-image.sh you can check $RELEASE to distinguish between different distributions (wheezy, jessie, trusty or xenial)
Recommended Posts