From 2facd55e44ab5a7b6303268ff8dbf35c4cc6b07e Mon Sep 17 00:00:00 2001 From: Trammell hudson Date: Wed, 28 Feb 2018 02:46:14 -0500 Subject: [PATCH] flashtool can write to the winterfell ROM --- boards/winterfell.config | 3 ++- modules/flashtools | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 modules/flashtools diff --git a/boards/winterfell.config b/boards/winterfell.config index d946bdfc..4159a0e1 100644 --- a/boards/winterfell.config +++ b/boards/winterfell.config @@ -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 diff --git a/modules/flashtools b/modules/flashtools new file mode 100644 index 00000000..21686a84 --- /dev/null +++ b/modules/flashtools @@ -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 :=