summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2019-05-29 17:15:52 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2019-05-29 17:15:52 -0700
commit5d7aa5dbf009b8c1cc1108fd96e97181a5992762 (patch)
tree571f32c9bfa56a49d956d5b8d306ae18053987ca
parent6a7ee62ea55a0325008e28e1279d811cebe8ad0e (diff)
parentfe60835a24ed0528887f081c6c2963fa9dc402a7 (diff)
Merge "EmbeddedPkg: Add optimization levels in FdtLib and LibUfdt"
-rw-r--r--EmbeddedPkg/Library/FdtLib/FdtLib.inf5
-rw-r--r--EmbeddedPkg/Library/LibUfdt/LibUfdt.inf2
2 files changed, 5 insertions, 2 deletions
diff --git a/EmbeddedPkg/Library/FdtLib/FdtLib.inf b/EmbeddedPkg/Library/FdtLib/FdtLib.inf
index f3da231143..808afa8cae 100644
--- a/EmbeddedPkg/Library/FdtLib/FdtLib.inf
+++ b/EmbeddedPkg/Library/FdtLib/FdtLib.inf
@@ -1,5 +1,5 @@
#/* @file
-# Copyright (c) 2011-2014, ARM Limited. All rights reserved.
+# Copyright (c) 2011-2014, 2019, ARM Limited. All rights reserved.
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -25,6 +25,9 @@
# VALID_ARCHITECTURES = ARM AARCH64
#
+[BuildOptions.AARCH64]
+ GCC:*_*_*_CC_FLAGS = -Oz
+
[Sources]
fdt_ro.c
fdt_rw.c
diff --git a/EmbeddedPkg/Library/LibUfdt/LibUfdt.inf b/EmbeddedPkg/Library/LibUfdt/LibUfdt.inf
index c376bb975d..073d118a8d 100644
--- a/EmbeddedPkg/Library/LibUfdt/LibUfdt.inf
+++ b/EmbeddedPkg/Library/LibUfdt/LibUfdt.inf
@@ -13,7 +13,7 @@
#
[BuildOptions.AARCH64]
- GCC:*_*_*_CC_FLAGS = -Wno-error
+ GCC:*_*_*_CC_FLAGS = -Wno-error -Oz
[Sources]
ufdt_convert.c