flashtool can write to the winterfell ROM

This commit is contained in:
Trammell hudson 2018-02-28 02:46:14 -05:00
parent 7283a5397a
commit 2facd55e44
No known key found for this signature in database
GPG Key ID: 687A5005935B1533
2 changed files with 28 additions and 1 deletions

View File

@ -5,7 +5,7 @@ CONFIG_LINUXBOOT_ROM=blobs/winterfell.rom
CONFIG_LINUX_CONFIG=config/linux-linuxboot.config
# If you want to build with the go-based u-root instead of Heads
CONFIG_UROOT=y
CONFIG_UROOT ?= y
ifeq "$(CONFIG_UROOT)" "y"
# The busybox will likely be redundant and can be trimmed for space.
@ -16,6 +16,7 @@ else
# These don't fit if u-root is turned on
CONFIG_CRYPTSETUP=y
CONFIG_FLASHROM=y
CONFIG_FLASHTOOLS=y
CONFIG_GPG=y
CONFIG_KEXEC=y
CONFIG_UTIL_LINUX=y

26
modules/flashtools Normal file
View File

@ -0,0 +1,26 @@
modules-$(CONFIG_FLASHTOOLS) += flashtools
flashtools_depends := $(musl_dep)
flashtools_version := git
flashtools_repo := ssh://git@github.com/osresearch/flashtools
flashtools_version := 0.0.1
flashtools_dir := flashtools-$(flashtools_version)
flashtools_tar := flashtools-$(flashtools_version).tar.gz
flashtools_url := https://github.com/osresearch/flashtools/archive/v$(flashtools_version).tar.gz
flashtools_hash := e8205aa3d19e536080f5974ed06ab9a88c4c3f37870c2f6a3a08a2f39302c22c
flashtools_target := \
$(CROSS_TOOLS) \
CFLAGS="-I$(INSTALL)/include" \
LDFLAGS="-L$(INSTALL)/lib" \
flashtools_output := \
flashtool \
peek \
poke \
flashtools_libraries := \
flashtools_configure :=