summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeshav Amburay2014-09-03 22:17:32 -0400
committerKeshav Amburay2014-09-03 22:17:32 -0400
commitd040679569c44fbb4b5c3ce52755808e675cf43c (patch)
tree01491c11d1715ed0fe91dae6cfd6541e6bf47107
parent50c0bbd2126147097dd49578de186abedbd2959d (diff)
downloadaur-d040679569c44fbb4b5c3ce52755808e675cf43c.tar.gz
bump pkgver
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD11
-rw-r--r--edk2-basetools-add-gcc4.9-support.patch238
3 files changed, 7 insertions, 249 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 466ddbbcc8e..17d544f8920 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = uefi-shell-svn
pkgdesc = UEFI Shell v2 - from Tianocore EDK2 - SVN Version
- pkgver = 16039
+ pkgver = 16056
pkgrel = 1
url = http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ShellPkg
install = uefi-shell.install
@@ -9,16 +9,15 @@ pkgbase = uefi-shell-svn
license = BSD
makedepends = subversion
makedepends = python2
- provides = uefi-shell=16039
+ makedepends = nasm
+ provides = uefi-shell=16056
conflicts = uefi-shell
options = !strip
options = !makeflags
- source = edk2-basetools-add-gcc4.9-support.patch
source = tianocore-edk2-svn_BaseTools::svn+https://svn.code.sf.net/p/edk2/code/trunk/edk2/BaseTools
source = tianocore-edk2-svn_MdePkg::svn+https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdePkg
source = tianocore-edk2-svn_MdeModulePkg::svn+https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdeModulePkg
source = tianocore-edk2-svn_ShellPkg::svn+https://svn.code.sf.net/p/edk2/code/trunk/edk2/ShellPkg
- sha1sums = fd92560dbc2f5c8c7bd36def1f836441e7529b30
sha1sums = SKIP
sha1sums = SKIP
sha1sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 54246a11190..e13a01d543f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,14 +26,14 @@ _COMPILER="GCC49"
_pkgname="uefi-shell"
pkgname="${_pkgname}-svn"
-pkgver=16039
+pkgver=16056
pkgrel=1
pkgdesc="UEFI Shell v2 - from Tianocore EDK2 - SVN Version"
url="http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ShellPkg"
arch=('x86_64' 'i686')
license=('BSD')
-makedepends=('subversion' 'python2')
+makedepends=('subversion' 'python2' 'nasm')
options=('!strip' '!makeflags')
@@ -42,14 +42,13 @@ provides=("uefi-shell=${pkgver}")
install="${_pkgname}.install"
-source=('edk2-basetools-add-gcc4.9-support.patch')
+source=()
for _DIR_ in BaseTools MdePkg MdeModulePkg ShellPkg ; do
source+=("${_TIANO_DIR_}_${_DIR_}::svn+${_TIANOCORE_SVN_URL}/${_DIR_}")
done
-sha1sums=('fd92560dbc2f5c8c7bd36def1f836441e7529b30'
- 'SKIP'
+sha1sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
@@ -89,8 +88,6 @@ _prepare_tianocore_sources() {
mkdir -p "${_UDK_DIR}/Conf/"
mkdir -p "${_UDK_DIR}/Build/"
- # msg "Fix GenFw: ERROR 3000: Invalid, Unsupported section alignment"
- # patch -Np1 -i "${srcdir}/edk2-basetools-add-gcc4.9-support.patch" || true
sed 's|--gc-sections|--gc-sections --build-id=none|g' -i "${EDK_TOOLS_PATH}/Conf/tools_def.template"
msg "Use python2 for UDK BaseTools"
diff --git a/edk2-basetools-add-gcc4.9-support.patch b/edk2-basetools-add-gcc4.9-support.patch
deleted file mode 100644
index 1a0535a9e75..00000000000
--- a/edk2-basetools-add-gcc4.9-support.patch
+++ /dev/null
@@ -1,238 +0,0 @@
-commit c6fc66d237880efa556a93fd97a3701ffb04432b
-Author: Eric Dong <eric.dong@intel.com>
-Date: Mon Jul 21 09:59:06 2014 +0000
-
- Refine code to follow good coding style.
-
- Contributed-under: TianoCore Contribution Agreement 1.0
- Signed-off-by: Eric Dong <eric.dong@intel.com>
-
- git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15666 6f19259b-4bc3-4df7-8a09-765794883524
-
-diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template
-index f99ddf6..f9e1e6c 100644
---- a/BaseTools/Conf/tools_def.template
-+++ b/BaseTools/Conf/tools_def.template
-@@ -162,6 +162,9 @@ DEFINE GCC47_X64_PREFIX = /usr/bin/
- DEFINE GCC48_IA32_PREFIX = /usr/bin/
- DEFINE GCC48_X64_PREFIX = /usr/bin/
-
-+DEFINE GCC49_IA32_PREFIX = /usr/bin/
-+DEFINE GCC49_X64_PREFIX = /usr/bin/
-+
- DEFINE UNIX_IASL_BIN = ENV(IASL_PREFIX)iasl
- DEFINE WIN_ASL_BIN_DIR = C:\ASL
- DEFINE WIN_IASL_BIN = DEF(WIN_ASL_BIN_DIR)\iasl.exe
-@@ -307,6 +310,12 @@ DEFINE SOURCERY_CYGWIN_TOOLS = /cygdrive/c/Program Files/CodeSourcery/Sourcery G
- # Required to build platforms or ACPI tables:
- # Intel(r) ACPI Compiler v20101013 from
- # http://www.acpica.org/downloads/previous_releases.php
-+# GCC49 -Linux- Requires:
-+# GCC 4.9
-+# Optional:
-+# Required to build platforms or ACPI tables:
-+# Intel(r) ACPI Compiler v20101013 from
-+# http://www.acpica.org/downloads/previous_releases.php
- # ELFGCC -Linux- Requires:
- # GCC(this tool chain uses whatever version of gcc and binutils that is installed in /usr/bin)
- # Optional:
-@@ -3216,6 +3225,22 @@ DEFINE GCC48_AARCH64_DLINK_FLAGS = DEF(GCC_ARM_AARCH64_DLINK_COMMON)
- DEFINE GCC48_ARM_ASLDLINK_FLAGS = DEF(GCC47_ARM_ASLDLINK_FLAGS)
- DEFINE GCC48_AARCH64_ASLDLINK_FLAGS = DEF(GCC_ARM_AARCH64_ASLDLINK_FLAGS)
-
-+DEFINE GCC49_IA32_CC_FLAGS = DEF(GCC48_IA32_CC_FLAGS)
-+DEFINE GCC49_X64_CC_FLAGS = DEF(GCC48_X64_CC_FLAGS)
-+DEFINE GCC49_IA32_X64_DLINK_COMMON = -nostdlib -n -q --gc-sections --script=$(EDK_TOOLS_PATH)/Scripts/gcc4.9-ld-script
-+DEFINE GCC49_IA32_X64_ASLDLINK_FLAGS = DEF(GCC49_IA32_X64_DLINK_COMMON) --entry ReferenceAcpiTable -u ReferenceAcpiTable
-+DEFINE GCC49_IA32_X64_DLINK_FLAGS = DEF(GCC49_IA32_X64_DLINK_COMMON) --entry $(IMAGE_ENTRY_POINT) -u $(IMAGE_ENTRY_POINT) -Map $(DEST_DIR_DEBUG)/$(BASE_NAME).map
-+DEFINE GCC49_X64_DLINK_FLAGS = DEF(GCC49_IA32_X64_DLINK_FLAGS) -melf_x86_64 --oformat=elf64-x86-64
-+DEFINE GCC49_ASM_FLAGS = DEF(GCC48_ASM_FLAGS)
-+DEFINE GCC49_ARM_ASM_FLAGS = DEF(GCC48_ARM_ASM_FLAGS)
-+DEFINE GCC49_AARCH64_ASM_FLAGS = DEF(GCC48_AARCH64_ASM_FLAGS)
-+DEFINE GCC49_ARM_CC_FLAGS = DEF(GCC48_ARM_CC_FLAGS)
-+DEFINE GCC49_AARCH64_CC_FLAGS = DEF(GCC48_AARCH64_CC_FLAGS)
-+DEFINE GCC49_ARM_DLINK_FLAGS = DEF(GCC48_ARM_DLINK_FLAGS)
-+DEFINE GCC49_AARCH64_DLINK_FLAGS = DEF(GCC_ARM_AARCH64_DLINK_COMMON)
-+DEFINE GCC49_ARM_ASLDLINK_FLAGS = DEF(GCC48_ARM_ASLDLINK_FLAGS)
-+DEFINE GCC49_AARCH64_ASLDLINK_FLAGS = DEF(GCC_ARM_AARCH64_ASLDLINK_FLAGS)
-+
- ####################################################################################
- #
- # Unix GCC And Intel Linux ACPI Compiler
-@@ -3769,6 +3794,126 @@ RELEASE_GCC48_AARCH64_CC_FLAGS = DEF(GCC48_AARCH64_CC_FLAGS) -Wno-unused-but-s
-
- ####################################################################################
- #
-+# GCC 4.9 - This configuration is used to compile under Linux to produce
-+# PE/COFF binaries using GCC 4.9.
-+#
-+####################################################################################
-+*_GCC49_*_*_FAMILY = GCC
-+
-+*_GCC49_*_MAKE_PATH = make
-+*_GCC49_*_ASL_PATH = DEF(UNIX_IASL_BIN)
-+
-+*_GCC49_*_PP_FLAGS = DEF(GCC_PP_FLAGS)
-+*_GCC49_*_ASLPP_FLAGS = DEF(GCC_ASLPP_FLAGS)
-+*_GCC49_*_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS)
-+*_GCC49_*_VFRPP_FLAGS = DEF(GCC_VFRPP_FLAGS)
-+*_GCC49_*_APP_FLAGS =
-+*_GCC49_*_ASL_FLAGS = DEF(IASL_FLAGS)
-+*_GCC49_*_ASL_OUTFLAGS = DEF(IASL_OUTFLAGS)
-+
-+##################
-+# GCC49 IA32 definitions
-+##################
-+*_GCC49_IA32_OBJCOPY_PATH = DEF(GCC49_IA32_PREFIX)objcopy
-+*_GCC49_IA32_CC_PATH = DEF(GCC49_IA32_PREFIX)gcc
-+*_GCC49_IA32_SLINK_PATH = DEF(GCC49_IA32_PREFIX)ar
-+*_GCC49_IA32_DLINK_PATH = DEF(GCC49_IA32_PREFIX)ld
-+*_GCC49_IA32_ASLDLINK_PATH = DEF(GCC49_IA32_PREFIX)ld
-+*_GCC49_IA32_ASM_PATH = DEF(GCC49_IA32_PREFIX)gcc
-+*_GCC49_IA32_PP_PATH = DEF(GCC49_IA32_PREFIX)gcc
-+*_GCC49_IA32_VFRPP_PATH = DEF(GCC49_IA32_PREFIX)gcc
-+*_GCC49_IA32_ASLCC_PATH = DEF(GCC49_IA32_PREFIX)gcc
-+*_GCC49_IA32_ASLPP_PATH = DEF(GCC49_IA32_PREFIX)gcc
-+*_GCC49_IA32_RC_PATH = DEF(GCC49_IA32_PREFIX)objcopy
-+
-+*_GCC49_IA32_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS) -m32
-+*_GCC49_IA32_ASLDLINK_FLAGS = DEF(GCC49_IA32_X64_ASLDLINK_FLAGS) -m elf_i386
-+*_GCC49_IA32_ASM_FLAGS = DEF(GCC49_ASM_FLAGS) -m32 -march=i386
-+*_GCC49_IA32_CC_FLAGS = DEF(GCC49_IA32_CC_FLAGS) -Os
-+*_GCC49_IA32_DLINK_FLAGS = DEF(GCC49_IA32_X64_DLINK_FLAGS) -m elf_i386 --oformat=elf32-i386
-+*_GCC49_IA32_RC_FLAGS = DEF(GCC_IA32_RC_FLAGS)
-+*_GCC49_IA32_OBJCOPY_FLAGS =
-+
-+##################
-+# GCC49 X64 definitions
-+##################
-+*_GCC49_X64_OBJCOPY_PATH = DEF(GCC49_X64_PREFIX)objcopy
-+*_GCC49_X64_CC_PATH = DEF(GCC49_X64_PREFIX)gcc
-+*_GCC49_X64_SLINK_PATH = DEF(GCC49_X64_PREFIX)ar
-+*_GCC49_X64_DLINK_PATH = DEF(GCC49_X64_PREFIX)ld
-+*_GCC49_X64_ASLDLINK_PATH = DEF(GCC49_X64_PREFIX)ld
-+*_GCC49_X64_ASM_PATH = DEF(GCC49_X64_PREFIX)gcc
-+*_GCC49_X64_PP_PATH = DEF(GCC49_X64_PREFIX)gcc
-+*_GCC49_X64_VFRPP_PATH = DEF(GCC49_X64_PREFIX)gcc
-+*_GCC49_X64_ASLCC_PATH = DEF(GCC49_X64_PREFIX)gcc
-+*_GCC49_X64_ASLPP_PATH = DEF(GCC49_X64_PREFIX)gcc
-+*_GCC49_X64_RC_PATH = DEF(GCC49_X64_PREFIX)objcopy
-+
-+*_GCC49_X64_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS) -m64
-+*_GCC49_X64_ASLDLINK_FLAGS = DEF(GCC49_IA32_X64_ASLDLINK_FLAGS) -m elf_x86_64
-+*_GCC49_X64_ASM_FLAGS = DEF(GCC49_ASM_FLAGS) -m64
-+*_GCC49_X64_CC_FLAGS = DEF(GCC49_X64_CC_FLAGS)
-+*_GCC49_X64_DLINK_FLAGS = DEF(GCC49_X64_DLINK_FLAGS)
-+*_GCC49_X64_RC_FLAGS = DEF(GCC_X64_RC_FLAGS)
-+*_GCC49_X64_OBJCOPY_FLAGS =
-+
-+##################
-+# GCC49 ARM definitions
-+##################
-+*_GCC49_ARM_CC_PATH = ENV(GCC49_ARM_PREFIX)gcc
-+*_GCC49_ARM_SLINK_PATH = ENV(GCC49_ARM_PREFIX)ar
-+*_GCC49_ARM_DLINK_PATH = ENV(GCC49_ARM_PREFIX)ld
-+*_GCC49_ARM_ASLDLINK_PATH = ENV(GCC49_ARM_PREFIX)ld
-+*_GCC49_ARM_ASM_PATH = ENV(GCC49_ARM_PREFIX)gcc
-+*_GCC49_ARM_PP_PATH = ENV(GCC49_ARM_PREFIX)gcc
-+*_GCC49_ARM_VFRPP_PATH = ENV(GCC49_ARM_PREFIX)gcc
-+*_GCC49_ARM_ASLCC_PATH = ENV(GCC49_ARM_PREFIX)gcc
-+*_GCC49_ARM_ASLPP_PATH = ENV(GCC49_ARM_PREFIX)gcc
-+*_GCC49_ARM_RC_PATH = ENV(GCC49_ARM_PREFIX)objcopy
-+
-+*_GCC49_ARM_ARCHCC_FLAGS = -mthumb
-+*_GCC49_ARM_PLATFORM_FLAGS = -march=armv7-a
-+
-+*_GCC49_ARM_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS)
-+*_GCC49_ARM_ASLDLINK_FLAGS = DEF(GCC49_ARM_ASLDLINK_FLAGS)
-+*_GCC49_ARM_ASM_FLAGS = DEF(GCC49_ARM_ASM_FLAGS)
-+*_GCC49_ARM_DLINK_FLAGS = DEF(GCC49_ARM_DLINK_FLAGS)
-+*_GCC49_ARM_PLATFORM_FLAGS = -march=armv7-a
-+*_GCC49_ARM_PP_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEF(GCC_PP_FLAGS)
-+*_GCC49_ARM_RC_FLAGS = DEF(GCC_ARM_RC_FLAGS)
-+*_GCC49_ARM_VFRPP_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEF(GCC_VFRPP_FLAGS)
-+
-+ DEBUG_GCC49_ARM_CC_FLAGS = DEF(GCC49_ARM_CC_FLAGS) -O0
-+RELEASE_GCC49_ARM_CC_FLAGS = DEF(GCC49_ARM_CC_FLAGS) -Wno-unused-but-set-variable
-+
-+##################
-+# GCC49 AARCH64 definitions
-+##################
-+*_GCC49_AARCH64_CC_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
-+*_GCC49_AARCH64_SLINK_PATH = ENV(GCC49_AARCH64_PREFIX)ar
-+*_GCC49_AARCH64_DLINK_PATH = ENV(GCC49_AARCH64_PREFIX)ld
-+*_GCC49_AARCH64_ASLDLINK_PATH = ENV(GCC49_AARCH64_PREFIX)ld
-+*_GCC49_AARCH64_ASM_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
-+*_GCC49_AARCH64_PP_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
-+*_GCC49_AARCH64_VFRPP_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
-+*_GCC49_AARCH64_ASLCC_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
-+*_GCC49_AARCH64_ASLPP_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
-+*_GCC49_AARCH64_RC_PATH = ENV(GCC49_AARCH64_PREFIX)objcopy
-+
-+*_GCC49_AARCH64_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS)
-+*_GCC49_AARCH64_ASLDLINK_FLAGS = DEF(GCC49_AARCH64_ASLDLINK_FLAGS)
-+*_GCC49_AARCH64_ASM_FLAGS = DEF(GCC49_AARCH64_ASM_FLAGS)
-+*_GCC49_AARCH64_DLINK_FLAGS = DEF(GCC49_AARCH64_DLINK_FLAGS)
-+*_GCC49_AARCH64_PLATFORM_FLAGS =
-+*_GCC49_AARCH64_PP_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEF(GCC_PP_FLAGS)
-+*_GCC49_AARCH64_RC_FLAGS = DEF(GCC_AARCH64_RC_FLAGS)
-+*_GCC49_AARCH64_VFRPP_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEF(GCC_VFRPP_FLAGS)
-+
-+ DEBUG_GCC49_AARCH64_CC_FLAGS = DEF(GCC49_AARCH64_CC_FLAGS) -O0
-+RELEASE_GCC49_AARCH64_CC_FLAGS = DEF(GCC49_AARCH64_CC_FLAGS) -Wno-unused-but-set-variable
-+
-+####################################################################################
-+#
- # Cygwin GCC And Intel ACPI Compiler
- #
- ####################################################################################
-diff --git a/BaseTools/Scripts/gcc4.9-ld-script b/BaseTools/Scripts/gcc4.9-ld-script
-new file mode 100644
-index 0000000..b692328
---- /dev/null
-+++ b/BaseTools/Scripts/gcc4.9-ld-script
-@@ -0,0 +1,44 @@
-+/* OUTPUT_FORMAT(efi-bsdrv-x86_64) */
-+SECTIONS
-+{
-+ /* . = 0 + SIZEOF_HEADERS; */
-+ . = 0x280;
-+ .text ALIGN(0x20) :
-+ {
-+ *(.text .stub .text.* .gnu.linkonce.t.*)
-+ . = ALIGN(0x20);
-+ } =0x90909090
-+ .data ALIGN(0x40) :
-+ {
-+ *(
-+ .rodata .rodata.* .gnu.linkonce.r.*
-+ .data .data.* .gnu.linkonce.d.*
-+ .bss .bss.*
-+ *COM*
-+ )
-+ . = ALIGN(0x20);
-+ }
-+ .eh_frame ALIGN(0x20) :
-+ {
-+ KEEP (*(.eh_frame))
-+ }
-+ .got ALIGN(0x20) :
-+ {
-+ *(.got .got.*)
-+ . = ALIGN(0x20);
-+ }
-+ .rela ALIGN(0x20) :
-+ {
-+ *(.rela .rela.*)
-+ }
-+ /DISCARD/ : {
-+ *(.note.GNU-stack) *(.gnu_debuglink)
-+ *(.interp)
-+ *(.dynsym)
-+ *(.dynstr)
-+ *(.dynamic)
-+ *(.hash)
-+ *(.comment)
-+ }
-+}
-+