mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Embedded: Automatically apply patches
When using local site, buildroot does not automatically apply patches. The buildroot manual recommends using the POST_RSYNC hook to apply patches if needed, so implement this to automatically apply patches. Resolves #671
This commit is contained in:
parent
7fdf3d033f
commit
3a20f1cc34
2 changed files with 11 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
diff --git a/src/OptionsPopup.qml b/src/OptionsPopup.qml
|
||||
diff --git src/OptionsPopup.qml src/OptionsPopup.qml
|
||||
index 568d1cd..9e36607 100644
|
||||
--- a/src/OptionsPopup.qml
|
||||
+++ b/src/OptionsPopup.qml
|
||||
--- src/OptionsPopup.qml
|
||||
+++ src/OptionsPopup.qml
|
||||
@@ -10,13 +10,19 @@ import QtQuick.Controls.Material 2.2
|
||||
import QtQuick.Window 2.15
|
||||
import "qmlcomponents"
|
||||
|
|
|
@ -12,4 +12,12 @@ RPI_IMAGER_LICENSE = Apache-2.0
|
|||
|
||||
RPI_IMAGER_DEPENDENCIES = qt5base qt5declarative qt5quickcontrols2 qt5svg qt5tools libarchive libcurl openssl
|
||||
|
||||
# Patches are automatically applied after download and extract, but when using
|
||||
# a local site there is no download-extract so the patches don't get applied.
|
||||
# Add a hook to do it manually when using the local site.
|
||||
define RPI_IMAGER_APPLY_PATCHES
|
||||
$(APPLY_PATCHES) $(@D) $(RPI_IMAGER_PKGDIR) *.patch
|
||||
endef
|
||||
RPI_IMAGER_POST_RSYNC_HOOKS += RPI_IMAGER_APPLY_PATCHES
|
||||
|
||||
$(eval $(cmake-package))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue