Follow-on to Mark L's cleanup of .gitignore

Signed-off-by: Al Stone <ahs3@redhat.com>
Update build version to -rh-0.4

Update the build version to -rh-0.4 and modify the PcdFirmwareVersionString
so that build version is visible on the command line.

A future patch will merge PcdFirmwareVersionString and PLATFORM_VERSION so
only one of them needs to be modified.

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
Don't print 1 seconds, print 1 second

During the count down, fix the syntax of the message.

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
Add manual dtb file build scripts and infrastructure

Add the APM Mustang dts files to the repository under a DeviceTree
directory, and add a script that needs to be manually run to convert the
dts files in to a DTB encoded as a UINT8 array called DeviceTreeBuff for
consumption by other parts of UEFI.

Also add the DeviceTree.inf file. The referenced DeviceTree.c file is
built by the script and isn't under revision control for now.

Some future patch may add support for calling makedtb.sh as part of
the `make tianocore` build process.

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
Add support for passing the DTB to grub

Check to see if the DeviceTreeBuff contains a valid DTB header, and if
it does, register the Buff with the DeviceTree GUID in the
ConfigurationTable for use by grub or other boot services.

This is miserable hacky code that uses magic numbers and needs
revising.

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>

Conflicts:
	ArmPlatformPkg/Bds/Bds.c
Use the sa2 version of the dtsi file for MustangA3

Taken from the sa2 kernel repository commit 7a8ba9df14d1d

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
[Mustang] Update .gitignore to handle eclipse and DeviceTree autogen

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
Signed-off-by: Al Stone <ahs3@redhat.com>
Stop ethernet at ExitBootServices

The Mustang ethernet driver uses DMA to fill receive buffers but the
driver was not being shut down at ExitBootServices. This cause incoming
network packets to corrupt kernel memory during boot before the kernel
reinitialized the ethernet hardware. Add an ExitBootServices event
handler to call the driver halt function.

Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
[Mustang] PXE boot if no boot order is found

Don't set a boot order in UEFI. Attempt to PXE boot if nothing is found,
but otherwise let efibootmgr handle setting the boot order.

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
Signed-off-by: Al Stone <ahs3@redhat.com>
Correct typos in the original patch for DT.

Signed-off-by: Al Stone <ahs3@redhat.com>
Setup the ICC bypass for GIC in EFI.

From a patch sent by APM, but munged so it applies.

Signed-off-by: Al Stone <ahs3@redhat.com>