config target to write current paremeters into .config file

This commit is contained in:
Trammell hudson 2018-01-26 11:08:04 -05:00
parent be1a106c96
commit eb0e90d671
Failed to extract signature
2 changed files with 13 additions and 2 deletions

1
.gitignore vendored
View File

@ -84,3 +84,4 @@ blobs/*/volume*
edk2 edk2
bzImage bzImage
boards/*/volume-* boards/*/volume-*
.config

View File

@ -10,11 +10,21 @@ all: vendor linuxboot
include Makefile.rules include Makefile.rules
# The config file should set the BOARD variable # The config file should set the BOARD variable
# as well as point to the bzImage and initrd.cpio files
BOARD ?= qemu BOARD ?= qemu
KERNEL ?= bzImage
INITRD ?= initrd.cpio.xz
# Bring in the board specific things # Bring in the board specific things
include boards/$(BOARD)/Makefile.board 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 outputs will be in this deeply nested directory
EDK2_OUTPUT_DIR := edk2/Build/MdeModule/DEBUG_GCC5/X64 EDK2_OUTPUT_DIR := edk2/Build/MdeModule/DEBUG_GCC5/X64
@ -48,8 +58,8 @@ linuxboot-$(BOARD).vol: \
Initrd.ffs \ Initrd.ffs \
Linux.ffs: bzImage Linux.ffs: $(KERNEL)
Initrd.ffs: initrd.cpio.xz Initrd.ffs: $(INITRD)
RuntimeArchProtocolGuid := b7dfb4e1-052f-449f-87be-9818fc91b733 RuntimeArchProtocolGuid := b7dfb4e1-052f-449f-87be-9818fc91b733
AcpiTableProtocolGuid := FFE06BDD-6107-46A6-7BB2-5A9C7EC5275C AcpiTableProtocolGuid := FFE06BDD-6107-46A6-7BB2-5A9C7EC5275C