<commit_before>SUMMARY = "Modern, feature-rich, cross-platform firmware development environment for the UEFI and PI specifications"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://BaseTools/License.txt;md5=a041d47c90fd51b4514d09a5127210e6 \
                   "

inherit deploy

PV = "0.0+${SRCPV}"

SRCREV_FORMAT = "edk2"

EDKBRANCH ?= "${MACHINE_ARCH}"
SRCREV_edk2 = "53596a72cd96f84c7ca83254246f3520a49861b1"
SRCREV_edk2_hikey = "eccdd98efb4a4ec8a13142313e8db08eb02e01ed"

ATFBRANCH ?= "${MACHINE_ARCH}"
SRCREV_atf = "68fc81743e8671312a98c364ba2b0d69429cf4c6"
SRCREV_atf_hikey = "<KEY>"

SRCREV_uefitools = "1a4887ae459b4c6242ac94fc5342c6c7200fb66c"

SRC_URI = "git://github.com/96boards/edk2.git;name=edk2;branch=${EDKBRANCH} \
           git://github.com/96boards/arm-trusted-firmware.git;name=atf;branch=${ATFBRANCH};destsuffix=git/atf \
           git://git.linaro.org/uefi/uefi-tools.git;name=uefitools;destsuffix=git/uefi-tools \
          "

S = "${WORKDIR}/git"

export AARCH64_TOOLCHAIN = "GCC49"
export EDK2_DIR = "${S}"
export UEFI_TOOLS_DIR = "${S}/uefi-tools"
export CROSS_COMPILE_64 = "${TARGET_PREFIX}"
export CROSS_COMPILE_32 = "${TARGET_PREFIX}"

# This is a bootloader, so unset OE LDFLAGS.
# OE assumes ld==gcc and passes -Wl,foo
LDFLAGS = ""

export UEFIMACHINE ?= "${MACHINE_ARCH}"

do_compile() {
    ${UEFI_TOOLS_DIR}/uefi-build.sh -b RELEASE -a ${S}/atf ${UEFIMACHINE}
}

do_install() {
    install -d ${D}/boot
    install -m 0644 ${S}/atf/build/${UEFIMACHINE}/release/*.bin ${D}/boot/
}<commit_msg>edk2: add cflag to put compiler in bare-metal mode<commit_after>SUMMARY = "Modern, feature-rich, cross-platform firmware development environment for the UEFI and PI specifications"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://BaseTools/License.txt;md5=a041d47c90fd51b4514d09a5127210e6 \
                   "

inherit deploy

PV = "0.0+${SRCPV}"

SRCREV_FORMAT = "edk2"

EDKBRANCH ?= "${MACHINE_ARCH}"
SRCREV_edk2 = "53596a72cd96f84c7ca83254246f3520a49861b1"
SRCREV_edk2_hikey = "eccdd98efb4a4ec8a13142313e8db08eb02e01ed"

ATFBRANCH ?= "${MACHINE_ARCH}"
SRCREV_atf = "68fc81743e8671312a98c364ba2b0d69429cf4c6"
SRCREV_atf_hikey = "ad26bebfac3aa8f0fa1503b78c22cfbea962fbfc"

SRCREV_uefitools = "1a4887ae459b4c6242ac94fc5342c6c7200fb66c"

SRC_URI = "git://github.com/96boards/edk2.git;name=edk2;branch=${EDKBRANCH} \
           git://github.com/96boards/arm-trusted-firmware.git;name=atf;branch=${ATFBRANCH};destsuffix=git/atf \
           git://git.linaro.org/uefi/uefi-tools.git;name=uefitools;destsuffix=git/uefi-tools \
          "

S = "${WORKDIR}/git"

export AARCH64_TOOLCHAIN = "GCC49"
export EDK2_DIR = "${S}"
export UEFI_TOOLS_DIR = "${S}/uefi-tools"
export CROSS_COMPILE_64 = "${TARGET_PREFIX}"
export CROSS_COMPILE_32 = "${TARGET_PREFIX}"

# Workaround a gcc 4.9 feature
# 
CFLAGS = " -fno-delete-null-pointer-checks"

# This is a bootloader, so unset OE LDFLAGS.
# OE assumes ld==gcc and passes -Wl,foo
LDFLAGS = ""

export UEFIMACHINE ?= "${MACHINE_ARCH}"

do_compile() {
    ${UEFI_TOOLS_DIR}/uefi-build.sh -b RELEASE -a ${S}/atf ${UEFIMACHINE}
}

do_install() {
    install -d ${D}/boot
    install -m 0644 ${S}/atf/build/${UEFIMACHINE}/release/*.bin ${D}/boot/
}
{'fraction_non_alphanumeric': 0.1416953393806694, 'fraction_numerical': 0.1010322177040976, 'mean_word_length': 4.825136612021858, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '491760', 'n_tokens_mistral': 1560, 'n_tokens_neox': 1384, 'n_words': 199}