[elbe-devel] [PATCH] debianize: add support for arm64

Martin Kaistra martin.kaistra at linutronix.de
Thu Oct 5 11:00:39 CEST 2017


Signed-off-by: Martin Kaistra <martin.kaistra at linutronix.de>
---
 elbepack/debianize/base.py                     | 2 +-
 elbepack/makofiles/debianize/kernel/rules.mako | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/elbepack/debianize/base.py b/elbepack/debianize/base.py
index 41349570..71948001 100644
--- a/elbepack/debianize/base.py
+++ b/elbepack/debianize/base.py
@@ -54,7 +54,7 @@ class DebianizeBase (FormMultiPage):
         self.deb = { }
         self.tmpl_dir = None
 
-        self.archs = ["armhf", "armel", "amd64", "i386", "powerpc"]
+        self.archs = ["arm64", "armhf", "armel", "amd64", "i386", "powerpc"]
         self.formats = ["native", "git", "quilt"]
         self.releases = ["stable", "oldstable", "testing", "unstable", "experimental"]
 
diff --git a/elbepack/makofiles/debianize/kernel/rules.mako b/elbepack/makofiles/debianize/kernel/rules.mako
index 6515a15a..54c1645f 100755
--- a/elbepack/makofiles/debianize/kernel/rules.mako
+++ b/elbepack/makofiles/debianize/kernel/rules.mako
@@ -56,7 +56,7 @@ override_dh_auto_configure:
 override_dh_auto_build:
 	rm -rf include/config
 	$(MAKE) $(MAKE_OPTS) ${imgtype} modules
-	test ${k_arch} = arm && make -j`nproc` $(MAKE_OPTS) dtbs || true
+	(test ${k_arch} = arm || test ${k_arch} = arm64) && make -j`nproc` $(MAKE_OPTS) dtbs || true
 
 override_dh_auto_install:
 	mkdir -p $(MOD_PATH) $(FW_PATH) $(HDR_PATH) $(KERNEL_PATH) $(DTBS_PATH)
@@ -64,7 +64,7 @@ override_dh_auto_install:
 	$(MAKE) $(MAKE_OPTS) INSTALL_MOD_STRIP=1 modules_install
 	$(MAKE) $(MAKE_OPTS) firmware_install
 	$(MAKE) $(MAKE_OPTS) headers_install
-	test ${k_arch} = arm && make $(MAKE_OPTS) dtbs_install || true
+	(test ${k_arch} = arm || test ${k_arch} = arm64) && make $(MAKE_OPTS) dtbs_install || true
 	# Build kernel header package
 	rm -f "$(TMP_DIR)/lib/modules/$(REL)/build" "$(TMP_DIR)/lib/modules/$(REL)/source"
 	find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > $(DEB_DIR)/hdrsrcfiles
-- 
2.11.0




More information about the elbe-devel mailing list