libpayload: Inject head.S into libc, remove separate class
Integrate head.S directly into libc and remove all instances of head.o. * Drop 'separate class' entry for head.S. * Drop special treament for head.o inside lpgcc. * Change the .text in `x86/head.S` to `.section .text._entry`. * Drop arch/mock/head.c, initially added as a dummy file. Change-Id: I156d781908fcc38d455bbf9f2c29e5ab95c7775a Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82478 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
CFLAGS += -mthumb -march=armv7-a
|
||||
arm_asm_flags = -Wa,-mthumb -Wa,-mimplicit-it=always -Wa,-mno-warn-deprecated
|
||||
|
||||
head.o-y += head.S
|
||||
libc-y += head.S
|
||||
libc-y += eabi_compat.c
|
||||
libc-y += main.c sysinfo.c
|
||||
libc-y += timer.c coreboot.c util.S
|
||||
@@ -44,5 +44,4 @@ libc-$(CONFIG_LP_GPL) += memcpy.S memset.S memmove.S
|
||||
libgdb-y += gdb.c
|
||||
|
||||
# Add other classes here when you put assembly files into them!
|
||||
head.o-S-ccopts += $(arm_asm_flags)
|
||||
libc-S-ccopts += $(arm_asm_flags)
|
||||
|
@@ -29,7 +29,7 @@
|
||||
CFLAGS += -march=armv8-a
|
||||
arm64_asm_flags =
|
||||
|
||||
head.o-y += head.S
|
||||
libc-y += head.S
|
||||
libc-y += main.c sysinfo.c
|
||||
libc-y += timer.c coreboot.c util.S
|
||||
libc-y += virtual.c
|
||||
@@ -42,5 +42,4 @@ libc-y += mmu.c
|
||||
libgdb-y += gdb.c
|
||||
|
||||
# Add other classes here when you put assembly files into them!
|
||||
head.o-S-ccopts += $(arm64_asm_flags)
|
||||
libc-S-ccopts += $(arm64_asm_flags)
|
||||
libc-S-ccopts += $(arm64_asm_flags)
|
||||
|
@@ -1,7 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
head.o-y += head.c
|
||||
|
||||
libc-y += virtual.c
|
||||
|
||||
CFLAGS += -Wno-address-of-packed-member
|
||||
|
@@ -1,3 +0,0 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
/* This file is empty on purpose. It should not be used. */
|
@@ -30,7 +30,7 @@ ifneq ($(CONFIG_LP_COMPILER_LLVM_CLANG),y)
|
||||
CFLAGS += -mpreferred-stack-boundary=2
|
||||
endif
|
||||
|
||||
head.o-y += head.S
|
||||
libc-y += head.S
|
||||
libc-y += main.c sysinfo.c
|
||||
libc-y += timer.c coreboot.c util.S
|
||||
libc-y += exec.S virtual.c
|
||||
|
@@ -29,7 +29,7 @@
|
||||
|
||||
.code32
|
||||
.global _entry
|
||||
.text
|
||||
.section .text._entry
|
||||
.align 4
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user