Lintian overrides and package modernization
- Use dh_systemd to handle service management
- Clean up lintian warnings
Change-Id: I1eada023516c6425e0c45b7fb739705663ca0585
diff --git a/debian/control b/debian/control
index 9b3c423..81fa44e 100644
--- a/debian/control
+++ b/debian/control
@@ -1,17 +1,30 @@
Source: uboot-imx
Maintainer: Coral <coral-support@google.com>
-Build-Depends: bc, debhelper, device-tree-compiler, gcc-aarch64-linux-gnu, imx-atf, imx-firmware:all, imx-mkimage
+Build-Depends: bc,
+ debhelper (>=10),
+ device-tree-compiler,
+ dh-systemd,
+ gcc-aarch64-linux-gnu,
+ imx-atf,
+ imx-firmware:all,
+ imx-mkimage
Section: misc
Priority: optional
+Standards-Version: 3.9.8
Package: uboot-imx
Section: misc
Priority: optional
Architecture: arm64 armhf
-Description: U-Boot for the AIY Board
+Depends: ${misc:Depends}
+Description: U-Boot for the Coral Edge TPU Dev Board
+ u-boot bootloader for the i.MX8 processor of the Edge
+ TPU dev board.
Package: uboot-mkimage
Section: misc
Priority: optional
Architecture: all
+Depends: ${misc:Depends}
Description: mkimage tool from uboot
+ Tool to convert images into u-boot's format.
diff --git a/debian/copyright b/debian/copyright
index d943fc1..3994e03 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,6 +1,6 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: uboot-imx
-Source: https://aiyprojects.googlesource.com/uboot-imx
+Source: https://coral.googlesource.com/uboot-imx
Files: *
Copyright: Copyright 2018 Google, LLC <coral-support@google.com>
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
new file mode 100644
index 0000000..d0c6351
--- /dev/null
+++ b/debian/lintian-overrides
@@ -0,0 +1,2 @@
+# This file is in /boot to be found by u-boot, not Linux.
+uboot-imx: non-etc-file-marked-as-conffile boot/overlays.txt
diff --git a/debian/postinst b/debian/postinst
index f991013..d480045 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -1,5 +1,7 @@
-#!/bin/bash
-systemctl enable uboot-imx
+#!/bin/bash -e
+
+#DEBHELPER#
+
if [[ -e /dev/mmcblk0boot0 ]]; then
- systemctl start uboot-imx
-fi
\ No newline at end of file
+ deb-systemd-helper start uboot-imx
+fi
diff --git a/debian/prerm b/debian/prerm
deleted file mode 100644
index 3c2c005..0000000
--- a/debian/prerm
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-systemctl disable uboot-imx
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 1ff34cd..b10c304 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,7 @@
IMX_FIRMWARE_DIR=/usr/share/imx-firmware/imx8m
%:
- dh $@
+ dh $@ --with systemd
override_dh_auto_build:
make CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm mx8mq_phanbell_defconfig _all