[mustang] give sensible defaults to UpgradeFirmware.efi

If UpgradeFirmware is called without a file argument (or with extra
arguments), it will try to open a file called apm_upgrade.cmd. If that
works, it will execute the instructions from the file. Otherwise, it
will print its usage instructions and fail.

Also, fix a minor typo: "writing" not "writting".

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
[mustang] use Red Hat GUID for DeviceTree stubs

commit 6675a21f prevents UEFI from letting non-spec defined variables be
added to the global or boot variables, and thus prevented the DTB update
hack from working. Use the RedHat GUID instead and
GetEnvironmentVariable() so that DTB updates work again.

Revised script to update the dtb:
#!/bin/bash
#uncomment the following line if you have dtc and want to build from dts
#dtc -o mustang.dtb -O dtb apm-mustang.dts

guid=0abba7dc-e516-4167-bbf5-4d9d1c739416
export guid

rm -f /sys/firmware/efi/efivars/DeviceTree*
split -db 932 mustang.dtb
DTB_FILESIZE=$(printf "%d" $(stat --printf="%s" mustang.dtb))
export DTB_FILESIZE
for ((i=$DTB_FILESIZE/932;i>=0;i--))
  do
  j=`printf "%02.2d" $i`
  export j
  myfile=`printf "mustangdtb%02.2d.uefi" $i`
  export myfile
  (printf "\x07\x00\x00\x00" ; cat x$j) > $myfile
  dd if=$myfile of=/sys/firmware/efi/efivars/DeviceTree$j-$guid bs=$(printf "%d" $(stat --printf="%s" $myfile))
done
rm -f x* mustangdtb*

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
Increment version number to 1.1-rh-0.10-rc3

Make the PLATFORM_VERSION and the PcdFirmwareVersionString match at the
same time.

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
hack for APM runtime memory size

This is a horrible hack to allow X-gene platform to set memory
size based on runtime detection of the installed DIMMs. It is
only a quick fix until the right way is found.
[mustang] -rh-0.10 release

Thoroughly QE'd.

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