|
@@ -10,13 +10,7 @@ architecture.
|
|
|
|
|
|
The +BR2_GLOBAL_PATCH_DIR+ configuration option can be used to specify
|
|
The +BR2_GLOBAL_PATCH_DIR+ configuration option can be used to specify
|
|
a space separated list of one or more directories containing package
|
|
a space separated list of one or more directories containing package
|
|
-patches. By specifying multiple global patch directories, a user could
|
|
|
|
-implement a layered approach to patches. This could be useful when a
|
|
|
|
-user has multiple boards that share a common processor architecture.
|
|
|
|
-It is often the case that a subset of patches for a package need to be
|
|
|
|
-shared between the different boards a user has. However, each board
|
|
|
|
-may require specific patches for the package that build on top of the
|
|
|
|
-common subset of patches.
|
|
|
|
|
|
+patches.
|
|
|
|
|
|
For a specific version +<packageversion>+ of a specific package
|
|
For a specific version +<packageversion>+ of a specific package
|
|
+<packagename>+, patches are applied from +BR2_GLOBAL_PATCH_DIR+ as
|
|
+<packagename>+, patches are applied from +BR2_GLOBAL_PATCH_DIR+ as
|
|
@@ -63,35 +57,3 @@ are available at an URL. *Note:* +BR2_LINUX_KERNEL_PATCH+ specifies kernel
|
|
patches that are applied after patches available in +BR2_GLOBAL_PATCH_DIR+,
|
|
patches that are applied after patches available in +BR2_GLOBAL_PATCH_DIR+,
|
|
as it is done from a post-patch hook of the Linux package.
|
|
as it is done from a post-patch hook of the Linux package.
|
|
|
|
|
|
-An example directory structure for where a user has multiple
|
|
|
|
-directories specified for +BR2_GLOBAL_PATCH_DIR+ may look like this:
|
|
|
|
-
|
|
|
|
------
|
|
|
|
-board/
|
|
|
|
-+-- common-fooarch
|
|
|
|
-| +-- patches
|
|
|
|
-| +-- linux
|
|
|
|
-| | +-- linux-patch1.patch
|
|
|
|
-| | +-- linux-patch2.patch
|
|
|
|
-| +-- uboot
|
|
|
|
-| +-- foopkg
|
|
|
|
-+-- fooarch-board
|
|
|
|
- +-- patches
|
|
|
|
- +-- linux
|
|
|
|
- | +-- linux-patch3.patch
|
|
|
|
- +-- uboot
|
|
|
|
- +-- foopkg
|
|
|
|
------
|
|
|
|
-
|
|
|
|
-If the user has the +BR2_GLOBAL_PATCH_DIR+ configuration option set as
|
|
|
|
-follows:
|
|
|
|
-
|
|
|
|
------
|
|
|
|
-BR2_GLOBAL_PATCH_DIR="board/common-fooarch/patches board/fooarch-board/patches"
|
|
|
|
------
|
|
|
|
-
|
|
|
|
-Then the patches would applied as follows for the Linux kernel:
|
|
|
|
-
|
|
|
|
-. board/common-fooarch/patches/linux/linux-patch1.patch
|
|
|
|
-. board/common-fooarch/patches/linux/linux-patch2.patch
|
|
|
|
-. board/fooarch-board/patches/linux/linux-patch3.patch
|
|
|