Skip to content

Commit 3fb743e

Browse files
Avinash TahakikAvinash95
Avinash Tahakik
authored andcommitted
Add version to uboot image name
Signed-off-by: Avinash Tahakik <[email protected]>
1 parent b089cd9 commit 3fb743e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,11 @@ u-boot-pistachio-nor.img: u-boot-dtb.img u-boot-spl-pistachio.bimg FORCE
10431043
@dd if=/dev/zero of=$@ bs=4K count=384 conv=notrunc
10441044
@dd if=u-boot-spl-pistachio.bimg of=$@ bs=4K count=128 conv=notrunc
10451045
@dd if=u-boot-dtb.img of=$@ bs=4K count=256 seek=128 conv=notrunc
1046+
ifeq ($(UBOOTRELEASE),$(UBOOTVERSION))
1047+
-mv u-boot-pistachio-nor.img u-boot-$(subst $\",,$(CONFIG_SYS_CONFIG_NAME))-$(UBOOTVERSION).img
1048+
else
1049+
-mv u-boot-pistachio-nor.img u-boot-$(subst $\",,$(CONFIG_SYS_CONFIG_NAME))-$(UBOOTRELEASE).img
1050+
endif
10461051

10471052
# x86 uses a large ROM. We fill it with 0xff, put the 16-bit stuff (including
10481053
# reset vector) at the top, Intel ME descriptor at the bottom, and U-Boot in

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ For the MIPS official toolchain see
1111
$ make CROSS_COMPILE=<toolchain-prefix> pistachio_marduk_defconfig
1212
$ make CROSS_COMPILE=<toolchain-prefix>
1313

14-
This will generate u-boot-pistachio-nor.img
14+
This will generate `u-boot-pistachio_<board_name>-<version>.img`
15+
16+
eg. u-boot-pistachio_marduk-2015.10-v1.0.4.img
17+
18+
OR `u-boot-pistachio_<board_name>-<version>-<githash>.img`, if there are extra commits above the tag.
19+
20+
e.g. u-boot-pistachio_marduk-2015.10-v1.0.4-g75cbe38.img
1521

1622
## Flash it onto your Ci40
1723
See our [docs](https://docs.creatordev.io/ci40/guides/openwrt-platform/#flashing-u-boot-binary).

0 commit comments

Comments
 (0)