forked from Imagelibrary/rtems
amd64: Refactor amd64 and amd64efi spec files
Add a common group and object spec files for the amd64 and amd64efi BSPs
This commit is contained in:
committed by
Amar Takhar
parent
dd882e1291
commit
087645e58f
@@ -7,6 +7,14 @@ build-type: option
|
||||
copyrights:
|
||||
- Copyright (C) 2020 embedded brains GmbH & Co. KG
|
||||
default:
|
||||
- enabled-by: x86_64/amd64efi
|
||||
value:
|
||||
- -fshort-wchar
|
||||
- -maccumulate-outgoing-args
|
||||
- -fno-stack-protector
|
||||
- -fno-stack-check
|
||||
- -mno-red-zone
|
||||
- -mcmodel=large
|
||||
- enabled-by: true
|
||||
value:
|
||||
- -mno-red-zone
|
||||
|
||||
@@ -9,50 +9,13 @@ cppflags: []
|
||||
enabled-by: true
|
||||
family: amd64
|
||||
includes: []
|
||||
install:
|
||||
- destination: ${BSP_INCLUDEDIR}
|
||||
source:
|
||||
- bsps/x86_64/amd64/include/apic.h
|
||||
- bsps/x86_64/amd64/include/bsp.h
|
||||
- bsps/x86_64/amd64/include/clock.h
|
||||
- bsps/x86_64/amd64/include/pic.h
|
||||
- bsps/x86_64/amd64/include/start.h
|
||||
- destination: ${BSP_LIBDIR}
|
||||
source:
|
||||
- bsps/x86_64/amd64/start/linkcmds
|
||||
install: []
|
||||
links:
|
||||
- role: build-dependency
|
||||
uid: ../../obj
|
||||
- role: build-dependency
|
||||
uid: ../../objirq
|
||||
- role: build-dependency
|
||||
uid: ../../objmem
|
||||
- role: build-dependency
|
||||
uid: ../../opto2
|
||||
- role: build-dependency
|
||||
uid: abi
|
||||
- role: build-dependency
|
||||
uid: start
|
||||
- role: build-dependency
|
||||
uid: ../grp
|
||||
- role: build-dependency
|
||||
uid: ../../bspopts
|
||||
uid: grp
|
||||
source:
|
||||
- bsps/shared/cache/nocache.c
|
||||
- bsps/shared/dev/btimer/btimer-cpucounter.c
|
||||
- bsps/shared/dev/getentropy/getentropy-cpucounter.c
|
||||
- bsps/shared/dev/serial/console-termios-init.c
|
||||
- bsps/shared/dev/serial/console-termios.c
|
||||
- bsps/shared/irq/irq-default-handler.c
|
||||
- bsps/shared/start/bspfatal-default.c
|
||||
- bsps/shared/start/gettargethash-default.c
|
||||
- bsps/shared/start/sbrk.c
|
||||
- bsps/x86_64/amd64/clock/clock.c
|
||||
- bsps/x86_64/amd64/console/console.c
|
||||
- bsps/x86_64/amd64/interrupts/idt.c
|
||||
- bsps/x86_64/amd64/interrupts/isr_handler.S
|
||||
- bsps/x86_64/amd64/interrupts/pic.c
|
||||
- bsps/x86_64/amd64/start/bspstart.c
|
||||
- bsps/x86_64/amd64/start/bspreset.c
|
||||
- bsps/x86_64/amd64/start/page.c
|
||||
type: build
|
||||
|
||||
@@ -11,32 +11,10 @@ family: amd64
|
||||
includes:
|
||||
- bsps/shared/freebsd/stand/efi/include
|
||||
- bsps/shared/freebsd/stand/efi/include/amd64
|
||||
install:
|
||||
- destination: ${BSP_INCLUDEDIR}
|
||||
source:
|
||||
- bsps/x86_64/amd64/include/apic.h
|
||||
- bsps/x86_64/amd64/include/bsp.h
|
||||
- bsps/x86_64/amd64/include/clock.h
|
||||
- bsps/x86_64/amd64/include/pic.h
|
||||
- bsps/x86_64/amd64/include/start.h
|
||||
- destination: ${BSP_LIBDIR}
|
||||
source:
|
||||
- bsps/x86_64/amd64/start/linkcmds
|
||||
install: []
|
||||
links:
|
||||
- role: build-dependency
|
||||
uid: ../../obj
|
||||
- role: build-dependency
|
||||
uid: ../../objirq
|
||||
- role: build-dependency
|
||||
uid: ../../objmem
|
||||
- role: build-dependency
|
||||
uid: ../../opto2
|
||||
- role: build-dependency
|
||||
uid: efiabi
|
||||
- role: build-dependency
|
||||
uid: start
|
||||
- role: build-dependency
|
||||
uid: ../grp
|
||||
- role: build-dependency
|
||||
uid: ../../optmultiboot
|
||||
- role: build-dependency
|
||||
@@ -52,33 +30,18 @@ links:
|
||||
- role: build-dependency
|
||||
uid: ../../optefibs
|
||||
- role: build-dependency
|
||||
uid: ../../bspopts
|
||||
uid: ../../objefi
|
||||
- role: build-dependency
|
||||
uid: grp
|
||||
- role: build-dependency
|
||||
uid: optldpagesize
|
||||
- role: build-dependency
|
||||
uid: ../../objefi
|
||||
source:
|
||||
- bsps/shared/cache/nocache.c
|
||||
- bsps/shared/dev/btimer/btimer-cpucounter.c
|
||||
- bsps/shared/dev/getentropy/getentropy-cpucounter.c
|
||||
- bsps/shared/dev/serial/console-termios-init.c
|
||||
- bsps/shared/dev/serial/console-termios.c
|
||||
- bsps/shared/irq/irq-default-handler.c
|
||||
- bsps/shared/start/bspfatal-default.c
|
||||
- bsps/shared/start/gettargethash-default.c
|
||||
- bsps/shared/start/sbrk.c
|
||||
- bsps/x86_64/amd64/clock/eficlock.c
|
||||
- bsps/x86_64/amd64/console/eficonsole.c
|
||||
- bsps/x86_64/amd64/console/efistop.c
|
||||
- bsps/x86_64/amd64/console/efigop.c
|
||||
- bsps/x86_64/amd64/console/outch.c
|
||||
- bsps/x86_64/amd64/console/console.c
|
||||
- bsps/x86_64/amd64/interrupts/idt.c
|
||||
- bsps/x86_64/amd64/interrupts/isr_handler.S
|
||||
- bsps/x86_64/amd64/interrupts/pic.c
|
||||
- bsps/x86_64/amd64/start/bspstart.c
|
||||
- bsps/x86_64/amd64/start/bspreset.c
|
||||
- bsps/x86_64/amd64/start/multiboot2.c
|
||||
- bsps/x86_64/amd64/start/efimem.c
|
||||
- bsps/x86_64/amd64/start/page.c
|
||||
type: build
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
actions:
|
||||
- get-string: null
|
||||
- split: null
|
||||
- env-append: null
|
||||
build-type: option
|
||||
copyrights:
|
||||
- Copyright (C) 2020 embedded brains GmbH & Co. KG
|
||||
default:
|
||||
- enabled-by: true
|
||||
value:
|
||||
- -fshort-wchar
|
||||
- -maccumulate-outgoing-args
|
||||
- -fno-stack-protector
|
||||
- -fno-stack-check
|
||||
- -mno-red-zone
|
||||
- -mcmodel=large
|
||||
description: |
|
||||
ABI flags
|
||||
enabled-by: true
|
||||
links: []
|
||||
name: ABI_FLAGS
|
||||
type: build
|
||||
31
spec/build/bsps/x86_64/amd64/grp.yml
Normal file
31
spec/build/bsps/x86_64/amd64/grp.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
build-type: group
|
||||
cflags: []
|
||||
copyrights:
|
||||
- Copyright (C) 2024 Matheus Pecoraro
|
||||
cppflags: []
|
||||
cxxflags: []
|
||||
enabled-by: true
|
||||
includes: []
|
||||
install: []
|
||||
ldflags: []
|
||||
links:
|
||||
- role: build-dependency
|
||||
uid: ../grp
|
||||
- role: build-dependency
|
||||
uid: abi
|
||||
- role: build-dependency
|
||||
uid: obj
|
||||
- role: build-dependency
|
||||
uid: start
|
||||
- role: build-dependency
|
||||
uid: ../../obj
|
||||
- role: build-dependency
|
||||
uid: ../../objirq
|
||||
- role: build-dependency
|
||||
uid: ../../objmem
|
||||
- role: build-dependency
|
||||
uid: ../../bspopts
|
||||
type: build
|
||||
use-after: []
|
||||
use-before: []
|
||||
38
spec/build/bsps/x86_64/amd64/obj.yml
Normal file
38
spec/build/bsps/x86_64/amd64/obj.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
build-type: objects
|
||||
cflags: []
|
||||
copyrights:
|
||||
- Copyright (C) 2024 Matheus Pecoraro
|
||||
cppflags: []
|
||||
cxxflags: []
|
||||
enabled-by: true
|
||||
includes: []
|
||||
install:
|
||||
- destination: ${BSP_INCLUDEDIR}
|
||||
source:
|
||||
- bsps/x86_64/amd64/include/apic.h
|
||||
- bsps/x86_64/amd64/include/bsp.h
|
||||
- bsps/x86_64/amd64/include/clock.h
|
||||
- bsps/x86_64/amd64/include/pic.h
|
||||
- bsps/x86_64/amd64/include/start.h
|
||||
- destination: ${BSP_LIBDIR}
|
||||
source:
|
||||
- bsps/i386/pc386/start/linkcmds
|
||||
links: []
|
||||
source:
|
||||
- bsps/shared/cache/nocache.c
|
||||
- bsps/shared/dev/btimer/btimer-cpucounter.c
|
||||
- bsps/shared/dev/getentropy/getentropy-cpucounter.c
|
||||
- bsps/shared/dev/serial/console-termios-init.c
|
||||
- bsps/shared/dev/serial/console-termios.c
|
||||
- bsps/shared/irq/irq-default-handler.c
|
||||
- bsps/shared/start/bspfatal-default.c
|
||||
- bsps/shared/start/gettargethash-default.c
|
||||
- bsps/shared/start/sbrk.c
|
||||
- bsps/x86_64/amd64/interrupts/idt.c
|
||||
- bsps/x86_64/amd64/interrupts/isr_handler.S
|
||||
- bsps/x86_64/amd64/interrupts/pic.c
|
||||
- bsps/x86_64/amd64/start/bspstart.c
|
||||
- bsps/x86_64/amd64/start/bspreset.c
|
||||
- bsps/x86_64/amd64/start/page.c
|
||||
type: build
|
||||
Reference in New Issue
Block a user