Jump to content

About patch process


Recommended Posts

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".

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines