Source: u-boot
Version: 2016.03+dfsg1-4
Severity: wishlist

u-boot 2016.03 works for me on a DRA74 EVM (aka Vayu) board.  Please
apply the attached patch to add a package for this platform.

The master branch of u-boot.git currently doesn't build because the
patch "board: ti: AM57xx: Add detection logic for AM57xx-evm" refers to
files in board/ti/common/ which does not exist.  I based this patch on
the last unstable version.

Ben.

-- System Information:
Debian Release: 8.4
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 
Ben Hutchings
Software Developer, Codethink Ltd.

From: Ben Hutchings <ben.hutchi...@codethink.co.uk>
Date: Wed, 18 May 2016 15:38:53 +0100
Subject: [PATCH] Build dra7 package, with dra74_evm as the initial target

---
 debian/control                       | 14 ++++++++++++++
 debian/targets                       |  3 +++
 debian/u-boot-dra7.install           |  2 ++
 debian/u-boot-dra7.lintian-overrides | 14 ++++++++++++++
 4 files changed, 33 insertions(+)
 create mode 100755 debian/u-boot-dra7.install
 create mode 100644 debian/u-boot-dra7.lintian-overrides

diff --git a/debian/control b/debian/control
index 7d8c621ae123..aad0e16103f1 100644
--- a/debian/control
+++ b/debian/control
@@ -131,6 +131,20 @@ Description: A boot loader for Raspberry PI systems
  platforms.
  ${uboot:platforms}
 
+Package: u-boot-dra7
+Architecture: armhf
+Multi-Arch: same
+Depends: ${misc:Depends}
+Description: A boot loader for dra7 systems
+ Das U-Boot is a cross-platform bootloader for embedded systems,
+ used as the default boot loader by several board vendors.  It is
+ intended to be easy to port and to debug, and runs on many
+ supported architectures, including PPC, ARM, MIPS, x86, m68k,
+ NIOS, and Microblaze.
+ .
+ This package includes boot loaders for various TI DRA7xx platforms.
+ ${uboot:platforms}
+
 Package: u-boot-tools
 Architecture: linux-any
 Multi-Arch: foreign
diff --git a/debian/targets b/debian/targets
index 29c4cd0700f5..2b1a2c67ea4c 100644
--- a/debian/targets
+++ b/debian/targets
@@ -26,6 +26,9 @@ armel	rpi		rpi		u-boot.bin
 # Rick Thomas <rbtho...@rcthomas.org>
 armel	-		sheevaplug	u-boot.kwb
 
+# Ben Hutchings <ben.hutchi...@codethink.co.uk>
+armhf	dra7		dra74_evm	u-boot.img spl/u-boot-spl.bin MLO
+
 # Ian Campbell <i...@debian.org>
 armhf	exynos		arndale		u-boot-dtb.bin spl/arndale-spl.bin
 
diff --git a/debian/u-boot-dra7.install b/debian/u-boot-dra7.install
new file mode 100755
index 000000000000..df53d1b4c09a
--- /dev/null
+++ b/debian/u-boot-dra7.install
@@ -0,0 +1,2 @@
+#!/bin/sh
+debian/bin/u-boot-install-targets dra7
diff --git a/debian/u-boot-dra7.lintian-overrides b/debian/u-boot-dra7.lintian-overrides
new file mode 100644
index 000000000000..cacba5b8b25f
--- /dev/null
+++ b/debian/u-boot-dra7.lintian-overrides
@@ -0,0 +1,14 @@
+
+# There are no file conflicts across architectures for u-boot, as each
+# target is only installed on a single architecture. In theory, some
+# targets could be built on multiple architectures, but could instead install
+# the package for the architecture needed.
+u-boot-dra7 [armhf]: arch-dependent-file-not-in-arch-specific-directory usr/lib/u-boot/dra74_evm/uboot.elf
+
+# These bootloaders need to be statically linked.
+u-boot-dra7 [armhf]: statically-linked-binary usr/lib/u-boot/dra74_evm/uboot.elf
+
+u-boot-dra7: description-synopsis-starts-with-article
+
+# Synopsys is the name of a company, not a misspelling.
+u-boot-dra7: spelling-error-in-copyright Synopsys Synopsis
-- 
2.8.1

Reply via email to