]> xenbits.xensource.com Git - people/julieng/boot-wrapper-aarch64.git/commit
Add autotools configuration.
authorMatthew Leach <Matthew.Leach@arm.com>
Thu, 23 Jan 2014 17:29:26 +0000 (17:29 +0000)
committerMark Rutland <mark.rutland@arm.com>
Wed, 12 Mar 2014 11:15:25 +0000 (11:15 +0000)
commitbae4ae6a834cd15bf50f0ddc9a7331d8b0ac7168
treeede44c057db9d447028725f6a8e1ba08abe3ca60
parent20db29f89a11c023634ccaab152941a6afdf2d52
Add autotools configuration.

This patch adds a basic auto-tools configuration environment for the
bootwrapper consisting of the configure.ac file and the Makefile.am
file.

The configure.ac file includes several options and checks:
  - Ensure that an AArch64 compiler is used.
  - Add the mandatory --with-kernel-dir option that sets KERN_DIR.
  - Check that the correct base dtb file exists in KERN_DIR.
  - Add an option, --with-initrd, that allows a user to specify an
    initrd file to embed in the image.
  - Check for a working dtc and set DTC to the full-path to the
    executable.
  - Create the necessary symbolic links to the relevant kernel files.

The Makefile.am file includes several changes:

- Use a prebuilt dtb rather than a dts, which is decompiled to inject
  the chosen node.
- Use the configured compiler tool names.
- Use the configured SED program rather than assuming it is in PATH.

Signed-off-by: Matthew Leach <matthew.leach@arm.com>
[Mark: use dtb, add options, fix style issues, remove src/]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
.gitignore
Makefile [deleted file]
Makefile.am [new file with mode: 0644]
README
configure.ac [new file with mode: 0644]