[precise/lts-trusty,2/2] UBUNTU: Packaging: Make update-from-*master call copy-files
diff mbox series

Message ID 20190221165933.5616-3-cascardo@canonical.com
State New
Headers show
Series
  • Split copy-files from update-from-*master
Related show

Commit Message

Thadeu Lima de Souza Cascardo Feb. 21, 2019, 4:59 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1786013

Now that copy-files and local-magle are introduced, update-from-*master may
make use of them, instead of doing the copies and mangles itself. That makes it
easier to replace update-from-*master with a single script version for all
trees in the future.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
---
 debian.trusty/etc/update-from-trusty-master | 33 +--------------------
 1 file changed, 1 insertion(+), 32 deletions(-)

Patch
diff mbox series

diff --git a/debian.trusty/etc/update-from-trusty-master b/debian.trusty/etc/update-from-trusty-master
index 931435bd092a..62192d7dbf43 100755
--- a/debian.trusty/etc/update-from-trusty-master
+++ b/debian.trusty/etc/update-from-trusty-master
@@ -98,38 +98,7 @@  else
 	fi
 fi
 
-#
-# Pick up any master branch changes to udeb modules or firmware.
-#
-rsync -av --delete ${DEBIAN_SOURCE}/d-i/ ${DEBIAN_TARGET}/d-i
-
-#
-# Update configs from master
-#
-rsync -av --delete ${DEBIAN_SOURCE}/config/ ${DEBIAN_TARGET}/config
-
-#
-# Make sure signed module enforcement stays off until user space is ready.
-#
-sed -i 's/CONFIG_EFI_SECURE_BOOT_SIG_ENFORCE=y/CONFIG_EFI_SECURE_BOOT_SIG_ENFORCE=n/' ${DEBIAN_TARGET}/config/config.common.ubuntu
-
-#
-# Build in these 2 modules for arm in order to avoid
-# a missing __aeabi_uldivmod symbol.
-#
-for i in CONFIG_MEGARAID_LEGACY CONFIG_MEGARAID_MAILBOX CONFIG_MEGARAID_MM CONFIG_MEGARAID_NEWGEN CONFIG_MEGARAID_SAS
-do
-	echo "$i=n" >> ${DEBIAN_TARGET}/config/armhf/config.common.armhf
-done
-# Drop lowlatency
-sed -i 's/lowlatency//g' ${DEBIAN_TARGET}/rules.d/*.mk
-for i in lowlatency
-do
-	find ${DEBIAN_TARGET}/config | grep $i | xargs rm -f
-	find ${DEBIAN_TARGET}/control.d | grep $i | xargs rm -f
-done
-# Make sure CONFIG_SECURITY_APPARMOR_AA3_SEMANTICS=n
-sed -i 's/CONFIG_SECURITY_APPARMOR_AA3_SEMANTICS=y/CONFIG_SECURITY_APPARMOR_AA3_SEMANTICS=n/' ${DEBIAN_TARGET}/config/config.* ${DEBIAN_TARGET}/config/*/config.*
+"./${DEBIAN_TARGET}/scripts/helpers/copy-files"
 
 fakeroot debian/rules clean updateconfigs || exit 1