mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
package/sunxi-mali-utgard-driver: handle patching the Buildroot way
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Giulio Benetti <giulio.benetti@benettiengineering.com> Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
54d48c8cad
commit
545704bd52
@@ -0,0 +1,39 @@
|
|||||||
|
From 079ed8aa57ba6629b992c3d0d01904d3e5170d3b Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||||
|
Date: Wed, 5 Jun 2024 13:06:16 +0200
|
||||||
|
Subject: [PATCH] build.sh: do not apply patches
|
||||||
|
|
||||||
|
In Buildroot, we handle applying the patches in a generic way, with
|
||||||
|
appropriate tools (e.g. with a proper tar).
|
||||||
|
|
||||||
|
Upstream: not applicable
|
||||||
|
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
|
||||||
|
---
|
||||||
|
build.sh | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/build.sh b/build.sh
|
||||||
|
index d1fedff..26efc53 100755
|
||||||
|
--- a/build.sh
|
||||||
|
+++ b/build.sh
|
||||||
|
@@ -10,6 +10,8 @@ BUILD_OPTS="USING_UMP=0
|
||||||
|
USING_DEVFREQ=1"
|
||||||
|
|
||||||
|
apply_patches() {
|
||||||
|
+ return 0 # Patching handled by Buildroot
|
||||||
|
+
|
||||||
|
pushd $2
|
||||||
|
|
||||||
|
quilt push -a
|
||||||
|
@@ -22,6 +24,8 @@ apply_patches() {
|
||||||
|
}
|
||||||
|
|
||||||
|
unapply_patches() {
|
||||||
|
+ return 0 # Patching handled by Buildroot
|
||||||
|
+
|
||||||
|
pushd $2
|
||||||
|
|
||||||
|
quilt pop -a
|
||||||
|
--
|
||||||
|
2.45.1
|
||||||
|
|
||||||
@@ -16,8 +16,7 @@ SUNXI_MALI_UTGARD_DRIVER_MAKE_OPTS = \
|
|||||||
|
|
||||||
define SUNXI_MALI_UTGARD_DRIVER_USE_APPLY_PATCHES
|
define SUNXI_MALI_UTGARD_DRIVER_USE_APPLY_PATCHES
|
||||||
ln -sf $(SUNXI_MALI_UTGARD_REV)/series $(@D)/patches
|
ln -sf $(SUNXI_MALI_UTGARD_REV)/series $(@D)/patches
|
||||||
$(SED) 's|quilt push -a|$(TOPDIR)/support/scripts/apply-patches.sh . ../patches|' \
|
$(APPLY_PATCHES) $(@D)/$(SUNXI_MALI_UTGARD_REV) $(@D)/patches
|
||||||
$(@D)/build.sh
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
SUNXI_MALI_UTGARD_DRIVER_POST_PATCH_HOOKS += SUNXI_MALI_UTGARD_DRIVER_USE_APPLY_PATCHES
|
SUNXI_MALI_UTGARD_DRIVER_POST_PATCH_HOOKS += SUNXI_MALI_UTGARD_DRIVER_USE_APPLY_PATCHES
|
||||||
|
|||||||
Reference in New Issue
Block a user