mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
Introduce $(board_build) variable
To be used in board configuration. Expands to the path of the board's build directory. Also simplifies main Makefile a bit. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This commit is contained in:
parent
fa8e8843c6
commit
8944710033
28
Makefile
28
Makefile
@ -31,6 +31,8 @@ build := $(pwd)/build
|
|||||||
config := $(pwd)/config
|
config := $(pwd)/config
|
||||||
INSTALL := $(pwd)/install
|
INSTALL := $(pwd)/install
|
||||||
log_dir := $(build)/log
|
log_dir := $(build)/log
|
||||||
|
# This is dynamic, must not expand right here
|
||||||
|
board_build = $(build)/$(BOARD)
|
||||||
|
|
||||||
# Controls how many parallel jobs are invoked in subshells
|
# Controls how many parallel jobs are invoked in subshells
|
||||||
CPUS ?= $(shell nproc)
|
CPUS ?= $(shell nproc)
|
||||||
@ -57,17 +59,17 @@ include $(CONFIG)
|
|||||||
CONFIG_HEADS ?= y
|
CONFIG_HEADS ?= y
|
||||||
|
|
||||||
# record the build date / git hashes and other files here
|
# record the build date / git hashes and other files here
|
||||||
HASHES := $(build)/$(BOARD)/hashes.txt
|
HASHES := $(board_build)/hashes.txt
|
||||||
|
|
||||||
# Create the board output directory if it doesn't already exist
|
# Create the board output directory if it doesn't already exist
|
||||||
BOARD_LOG := $(shell \
|
BOARD_LOG := $(shell \
|
||||||
mkdir -p "$(build)/$(BOARD)" ; \
|
mkdir -p "$(board_build)" ; \
|
||||||
echo "$(DATE) $(GIT_HASH) $(GIT_STATUS)" > "$(HASHES)" ; \
|
echo "$(DATE) $(GIT_HASH) $(GIT_STATUS)" > "$(HASHES)" ; \
|
||||||
)
|
)
|
||||||
|
|
||||||
ifeq "y" "$(CONFIG_LINUX_BUNDLED)"
|
ifeq "y" "$(CONFIG_LINUX_BUNDLED)"
|
||||||
# Create empty initrd for initial kernel "without" initrd.
|
# Create empty initrd for initial kernel "without" initrd.
|
||||||
$(shell cpio -o < /dev/null > $(build)/$(BOARD)/initrd.cpio)
|
$(shell cpio -o < /dev/null > $(board_build)/initrd.cpio)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# If V is set in the environment, do not redirect the tee
|
# If V is set in the environment, do not redirect the tee
|
||||||
@ -134,13 +136,13 @@ CROSS_TOOLS := \
|
|||||||
|
|
||||||
ifeq ($(CONFIG_COREBOOT), y)
|
ifeq ($(CONFIG_COREBOOT), y)
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
ifneq ($(CONFIG_COREBOOT_BOOTBLOCK),)
|
ifneq ($(CONFIG_COREBOOT_BOOTBLOCK),)
|
||||||
all: $(build)/$(BOARD)/$(CB_BOOTBLOCK_FILE)
|
all: $(board_build)/$(CB_BOOTBLOCK_FILE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
else ifeq ($(CONFIG_LINUXBOOT), y)
|
else ifeq ($(CONFIG_LINUXBOOT), y)
|
||||||
all: $(build)/$(BOARD)/$(LB_OUTPUT_FILE)
|
all: $(board_build)/$(LB_OUTPUT_FILE)
|
||||||
else
|
else
|
||||||
$(error "$(BOARD): neither CONFIG_COREBOOT nor CONFIG_LINUXBOOT is set?")
|
$(error "$(BOARD): neither CONFIG_COREBOOT nor CONFIG_LINUXBOOT is set?")
|
||||||
endif
|
endif
|
||||||
@ -155,7 +157,7 @@ FORCE:
|
|||||||
|
|
||||||
# Copies config while replacing predefined placeholders with actual values
|
# Copies config while replacing predefined placeholders with actual values
|
||||||
define install_config =
|
define install_config =
|
||||||
sed -e 's!@BOARD_BUILD_DIR@!$(build)/$(BOARD)!g' \
|
sed -e 's!@BOARD_BUILD_DIR@!$(board_build)!g' \
|
||||||
-e 's!@BLOB_DIR@!$(pwd)/blobs!g' \
|
-e 's!@BLOB_DIR@!$(pwd)/blobs!g' \
|
||||||
"$1" > "$2"
|
"$1" > "$2"
|
||||||
endef
|
endef
|
||||||
@ -529,7 +531,7 @@ $(build)/$(initrd_dir)/initrd.cpio.xz: $(initrd-y)
|
|||||||
#
|
#
|
||||||
# At the moment PowerPC can only load initrd bundled with the kernel.
|
# At the moment PowerPC can only load initrd bundled with the kernel.
|
||||||
#
|
#
|
||||||
bundle-$(CONFIG_LINUX_BUNDLED) += $(build)/$(BOARD)/$(LINUX_IMAGE_FILE).bundled
|
bundle-$(CONFIG_LINUX_BUNDLED) += $(board_build)/$(LINUX_IMAGE_FILE).bundled
|
||||||
all: $(bundle-y)
|
all: $(bundle-y)
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -593,13 +595,13 @@ modules.clean:
|
|||||||
# since we can't reflash the firmware in qemu to update the keychain. Instead,
|
# since we can't reflash the firmware in qemu to update the keychain. Instead,
|
||||||
# inject the public key ahead of time. Specify the location of the key with
|
# inject the public key ahead of time. Specify the location of the key with
|
||||||
# PUBKEY_ASC.
|
# PUBKEY_ASC.
|
||||||
inject_gpg: $(build)/$(BOARD)/$(CB_OUTPUT_FILE_GPG_INJ)
|
inject_gpg: $(board_build)/$(CB_OUTPUT_FILE_GPG_INJ)
|
||||||
|
|
||||||
$(build)/$(BOARD)/$(CB_OUTPUT_BASENAME)-gpg-injected.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/$(CB_OUTPUT_BASENAME)-gpg-injected.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
cp "$(build)/$(BOARD)/$(CB_OUTPUT_FILE)" \
|
cp "$(board_build)/$(CB_OUTPUT_FILE)" \
|
||||||
"$(build)/$(BOARD)/$(CB_OUTPUT_FILE_GPG_INJ)"
|
"$(board_build)/$(CB_OUTPUT_FILE_GPG_INJ)"
|
||||||
./bin/inject_gpg_key.sh --cbfstool "$(build)/$(coreboot_dir)/cbfstool" \
|
./bin/inject_gpg_key.sh --cbfstool "$(build)/$(coreboot_dir)/cbfstool" \
|
||||||
"$(build)/$(BOARD)/$(CB_OUTPUT_FILE_GPG_INJ)" "$(PUBKEY_ASC)"
|
"$(board_build)/$(CB_OUTPUT_FILE_GPG_INJ)" "$(PUBKEY_ASC)"
|
||||||
|
|
||||||
real.clean:
|
real.clean:
|
||||||
for dir in \
|
for dir in \
|
||||||
|
@ -43,5 +43,5 @@ export CONFIG_BOOT_REQ_HASH=n
|
|||||||
export CONFIG_BOOT_REQ_ROLLBACK=n
|
export CONFIG_BOOT_REQ_ROLLBACK=n
|
||||||
export CONFIG_BOOT_DEV="/dev/sda1"
|
export CONFIG_BOOT_DEV="/dev/sda1"
|
||||||
|
|
||||||
$(build)/$(BOARD)/linuxboot.rom: linuxboot.intermediate
|
$(board_build)/linuxboot.rom: linuxboot.intermediate
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ export CONFIG_BOARD_NAME="qemu-coreboot-fbwhiptail"
|
|||||||
run:
|
run:
|
||||||
qemu-system-x86_64 \
|
qemu-system-x86_64 \
|
||||||
--machine q35 \
|
--machine q35 \
|
||||||
--bios $(build)/$(BOARD)/$(CB_OUTPUT_FILE) \
|
--bios $(board_build)/$(CB_OUTPUT_FILE) \
|
||||||
-object rng-random,filename=/dev/urandom,id=rng0 \
|
-object rng-random,filename=/dev/urandom,id=rng0 \
|
||||||
-device virtio-rng-pci,rng=rng0 \
|
-device virtio-rng-pci,rng=rng0 \
|
||||||
-netdev user,id=u1 -device e1000,netdev=u1 \
|
-netdev user,id=u1 -device e1000,netdev=u1 \
|
||||||
|
@ -60,7 +60,7 @@ run:
|
|||||||
qemu-system-x86_64 \
|
qemu-system-x86_64 \
|
||||||
--machine q35 \
|
--machine q35 \
|
||||||
--serial /dev/tty \
|
--serial /dev/tty \
|
||||||
--bios $(build)/$(BOARD)/$(CB_OUTPUT_FILE) \
|
--bios $(board_build)/$(CB_OUTPUT_FILE) \
|
||||||
-object rng-random,filename=/dev/urandom,id=rng0 \
|
-object rng-random,filename=/dev/urandom,id=rng0 \
|
||||||
-device virtio-rng-pci,rng=rng0 \
|
-device virtio-rng-pci,rng=rng0 \
|
||||||
-netdev user,id=u1 -device e1000,netdev=u1 \
|
-netdev user,id=u1 -device e1000,netdev=u1 \
|
||||||
|
@ -52,6 +52,6 @@ run:
|
|||||||
-global driver=cfi.pflash01,property=secure,value=on \
|
-global driver=cfi.pflash01,property=secure,value=on \
|
||||||
-redir tcp:5555::22 \
|
-redir tcp:5555::22 \
|
||||||
--serial $(or $(SERIAL),/dev/tty) \
|
--serial $(or $(SERIAL),/dev/tty) \
|
||||||
-drive if=pflash,format=raw,unit=0,file=$(build)/$(BOARD)/linuxboot.rom
|
-drive if=pflash,format=raw,unit=0,file=$(board_build)/linuxboot.rom
|
||||||
stty sane
|
stty sane
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal --ifd --image
|
|||||||
# per CONFIG_BOOTSCRIPT script above.
|
# per CONFIG_BOOTSCRIPT script above.
|
||||||
#
|
#
|
||||||
# Below, we just move produced ROM with a name appended with -top.rom for clarity.
|
# Below, we just move produced ROM with a name appended with -top.rom for clarity.
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,MV 4MB top ROM,$@, mv $< $@)
|
$(call do,MV 4MB top ROM,$@, mv $< $@)
|
||||||
@sha256sum $@
|
@sha256sum $@
|
||||||
|
@ -78,15 +78,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -78,15 +78,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -79,15 +79,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -79,15 +79,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -79,15 +79,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -79,15 +79,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -46,5 +46,5 @@ export CONFIG_BOOT_REQ_HASH=n
|
|||||||
export CONFIG_BOOT_REQ_ROLLBACK=n
|
export CONFIG_BOOT_REQ_ROLLBACK=n
|
||||||
export CONFIG_BOOT_DEV="/dev/sda1"
|
export CONFIG_BOOT_DEV="/dev/sda1"
|
||||||
|
|
||||||
$(build)/$(BOARD)/linuxboot.rom: linuxboot.intermediate
|
$(board_build)/linuxboot.rom: linuxboot.intermediate
|
||||||
|
|
||||||
|
@ -79,15 +79,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -79,15 +79,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -79,15 +79,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -79,15 +79,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -79,15 +79,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -79,15 +79,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -45,17 +45,17 @@ export CONFIG_BOOT_REQ_HASH=n
|
|||||||
export CONFIG_BOOT_REQ_ROLLBACK=n
|
export CONFIG_BOOT_REQ_ROLLBACK=n
|
||||||
export CONFIG_BOOT_DEV="/dev/sda1"
|
export CONFIG_BOOT_DEV="/dev/sda1"
|
||||||
|
|
||||||
#$(build)/$(BOARD)/linuxboot.rom: $(build)/$(linuxboot_dir)/
|
#$(board_build)/linuxboot.rom: $(build)/$(linuxboot_dir)/
|
||||||
|
|
||||||
# No 0x on these since the flasher doesn't handle that
|
# No 0x on these since the flasher doesn't handle that
|
||||||
dxe_offset := 860000
|
dxe_offset := 860000
|
||||||
dxe_size := 6a0000
|
dxe_size := 6a0000
|
||||||
flash-dxe: $(build)/$(BOARD)/linuxboot.rom
|
flash-dxe: $(board_build)/linuxboot.rom
|
||||||
( echo u$(dxe_offset) $(dxe_size) ; \
|
( echo u$(dxe_offset) $(dxe_size) ; \
|
||||||
pv $(build)/linuxboot-git/build/$(BOARD)/dxe.vol \
|
pv $(build)/linuxboot-git/build/$(BOARD)/dxe.vol \
|
||||||
) > /dev/ttyACM0
|
) > /dev/ttyACM0
|
||||||
|
|
||||||
flash: $(build)/$(BOARD)/linuxboot.rom
|
flash: $(board_build)/linuxboot.rom
|
||||||
( echo u0 1000000 ; \
|
( echo u0 1000000 ; \
|
||||||
pv $< \
|
pv $< \
|
||||||
) > /dev/ttyACM0
|
) > /dev/ttyACM0
|
||||||
|
@ -33,7 +33,7 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal --ifd --image
|
|||||||
# per CONFIG_BOOTSCRIPT script above.
|
# per CONFIG_BOOTSCRIPT script above.
|
||||||
#
|
#
|
||||||
# Below, we just move produced ROM with a name appended with -top.rom for clarity.
|
# Below, we just move produced ROM with a name appended with -top.rom for clarity.
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,MV 4MB top ROM,$@, mv $< $@)
|
$(call do,MV 4MB top ROM,$@, mv $< $@)
|
||||||
@sha256sum $@
|
@sha256sum $@
|
||||||
|
@ -78,15 +78,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -81,15 +81,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
@ -78,15 +78,15 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
|
|||||||
#
|
#
|
||||||
# When flashing via an external programmer it is easiest to have
|
# When flashing via an external programmer it is easiest to have
|
||||||
# two separate files for these pieces.
|
# two separate files for these pieces.
|
||||||
all: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
all: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
|
||||||
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
||||||
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
||||||
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
||||||
@sha256sum $@ | tee -a "$(HASHES)"
|
@sha256sum $@ | tee -a "$(HASHES)"
|
||||||
|
Loading…
Reference in New Issue
Block a user