mirror of
https://github.com/linuxboot/linuxboot
synced 2024-11-21 15:50:58 +00:00
config target to write current paremeters into .config file
This commit is contained in:
parent
be1a106c96
commit
eb0e90d671
1
.gitignore
vendored
1
.gitignore
vendored
@ -84,3 +84,4 @@ blobs/*/volume*
|
||||
edk2
|
||||
bzImage
|
||||
boards/*/volume-*
|
||||
.config
|
||||
|
14
Makefile
14
Makefile
@ -10,11 +10,21 @@ all: vendor linuxboot
|
||||
include Makefile.rules
|
||||
|
||||
# The config file should set the BOARD variable
|
||||
# as well as point to the bzImage and initrd.cpio files
|
||||
BOARD ?= qemu
|
||||
KERNEL ?= bzImage
|
||||
INITRD ?= initrd.cpio.xz
|
||||
|
||||
# Bring in the board specific things
|
||||
include boards/$(BOARD)/Makefile.board
|
||||
|
||||
# Create a .config file based on the current parameters
|
||||
config:
|
||||
echo '# Generated $(DATE)' > .config
|
||||
echo 'BOARD ?= $(BOARD)' >> .config
|
||||
echo 'KERNEL ?= $(KERNEL)' >> .config
|
||||
echo 'INITRD ?= $(INITRD)' >> .config
|
||||
|
||||
|
||||
# edk2 outputs will be in this deeply nested directory
|
||||
EDK2_OUTPUT_DIR := edk2/Build/MdeModule/DEBUG_GCC5/X64
|
||||
@ -48,8 +58,8 @@ linuxboot-$(BOARD).vol: \
|
||||
Initrd.ffs \
|
||||
|
||||
|
||||
Linux.ffs: bzImage
|
||||
Initrd.ffs: initrd.cpio.xz
|
||||
Linux.ffs: $(KERNEL)
|
||||
Initrd.ffs: $(INITRD)
|
||||
|
||||
RuntimeArchProtocolGuid := b7dfb4e1-052f-449f-87be-9818fc91b733
|
||||
AcpiTableProtocolGuid := FFE06BDD-6107-46A6-7BB2-5A9C7EC5275C
|
||||
|
Loading…
Reference in New Issue
Block a user