From: "Abhishek Shah" <abhishek.shah@broadcom.com>
To: devel@edk2.groups.io
Cc: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
Subject: Question: module compilation failure with less number of files
Date: Thu, 28 Jan 2021 17:47:14 +0530 [thread overview]
Message-ID: <CAKUFe6Z5GSBdXVHL8JoQ0SYEM1bT+KJn+2beQMHUG0fhP7-9xg@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2159 bytes --]
Hi All,
I am trying to compile some ACPI tables, and I observed that
if I specify less minimal tables/asl as Sources for ACPI tables module INF
file
(resulting in less size of overall module), compilation fails with below
error:
build.py...
: error F003: Output file for RAW section could not be found for
Platform/ARM/JunoPkg/AcpiTables/AcpiTables.inf
To reproduce this issue,
1) Apply below patch (just keeping Fadt.c here as example;
Other ways: just keep ASL file after removing some objects to reduce file
size; or keep combination of .c and .asl files - **as long as these files
are small**):
--------------------------------------------------------------------------------
diff --git a/Platform/ARM/JunoPkg/AcpiTables/AcpiTables.inf
b/Platform/ARM/JunoPkg/AcpiTables/AcpiTables.inf
index f140febc4a..1a489a0a8a 100644
--- a/Platform/ARM/JunoPkg/AcpiTables/AcpiTables.inf
+++ b/Platform/ARM/JunoPkg/AcpiTables/AcpiTables.inf
@@ -16,13 +16,8 @@
VERSION_STRING = 1.0
[Sources]
- Dsdt.asl
- Dbg2.aslc
- Spcr.aslc
Fadt.aslc
- Gtdt.aslc
Madt.aslc
- AcpiSsdtRootPci.asl # Juno R1 specific
[Packages]
ArmPkg/ArmPkg.dec
--------------------------------------------------------------------------------
2) Now compile the module:
export PACKAGES_PATH=`pwd`/edk2-platforms/
--------------------------------------------------------------------------------
build -a AARCH64 -t GCC5 -p Platform/ARM/JunoPkg/ArmJuno.dsc -m
Platform/ARM/JunoPkg/AcpiTables/AcpiTables.inf
Processing meta-data .
Architecture(s) = AARCH64
Build target = DEBUG
Toolchain = GCC5
Active Platform =
/projects/uefi/edk2-platforms/Platform/ARM/JunoPkg/ArmJuno.dsc
Active Module =
/projects/uefi/edk2-platforms/Platform/ARM/JunoPkg/AcpiTables/AcpiTables.inf
...
build.py...
: error F003: Output file for RAW section could not be found for
Platform/ARM/JunoPkg/AcpiTables/AcpiTables.inf
- Failed -
Build end time: 17:44:14, Jan.28 2021
Build total time: 00:00:04
--------------------------------------------------------------------------------
Can anyone help understand this behavior?
Regards,
Abhishek
[-- Attachment #1.2: Type: text/html, Size: 2701 bytes --]
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4181 bytes --]
next reply other threads:[~2021-01-28 12:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-28 12:17 Abhishek Shah [this message]
2021-01-28 18:16 ` Question: module compilation failure with less number of files Abhishek Shah
2021-01-28 18:29 ` [edk2-devel] " Michael D Kinney
2021-01-28 18:40 ` Abhishek Shah
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKUFe6Z5GSBdXVHL8JoQ0SYEM1bT+KJn+2beQMHUG0fhP7-9xg@mail.gmail.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox