Skip to content

Commit d756833

Browse files
Generate windows prebuilts zip and tar.gz
Signed-off-by: Anton Kolesov <[email protected]>
1 parent 9560e88 commit d756833

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Makefile.release

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ LINUX_BE_700_TGZ := $(LINUX_BE_700_NAME).tar.gz
6363
LINUX_LE_HS_TGZ := $(LINUX_LE_HS_NAME).tar.gz
6464
LINUX_BE_HS_TGZ := $(LINUX_BE_HS_NAME).tar.gz
6565
# Baremetal for Windows
66-
WIN_ELF_LE_DIR := arc-elf32_windows
66+
WIN_ELF_NAME := arc_gnu_$(RELEASE)_prebuilt_elf32_windows_install
67+
WIN_ELF_LE_DIR := arc_gnu_$(RELEASE)_prebuilt_elf32_windows_install
68+
WIN_ELF_TGZ := $(WIN_ELF_NAME).tar.gz
6769
# Big endian toolchain is installed to same directory as little endian
6870
#WIN_ELF_BE_DIR := $O/arceb-elf32_windows
6971
# md5sum
@@ -87,8 +89,9 @@ $O/$(MD5SUM_FILE): \
8789
$O/.stamp_elf_le_tarball $O/.stamp_elf_be_tarball \
8890
$O/.stamp_linux_le_700_tarball $O/.stamp_linux_be_700_tarball \
8991
$O/.stamp_linux_le_hs_tarball $O/.stamp_linux_be_hs_tarball \
90-
$O/.stamp_elf_le_windows_built $O/.stamp_elf_be_windows_built
91-
cd $O && md5sum *.tar.gz > $@
92+
$O/.stamp_elf_windows_tarball
93+
cd $O && md5sum *linux_install.tar.gz *sources.tar.gz *.zip > $@
94+
9295

9396
checkout: $O/.stamp_checked_out
9497

@@ -204,6 +207,11 @@ $O/.stamp_elf_be_windows_built: $O/.stamp_unisrc build-all-windows.sh $O/.stamp_
204207
--install-dir $O/$(WIN_ELF_LE_DIR) --no-uclibc --big-endian --no-sim --release-name $(RELEASE)
205208
touch $@
206209

210+
$O/.stamp_elf_windows_tarball: $O/.stamp_elf_le_windows_built $O/.stamp_elf_be_windows_built
211+
cd $O && tar czf $(WIN_ELF_TGZ) --transform='s#$(WIN_ELF_LE_DIR)#$(WIN_ELF_NAME)#' $(WIN_ELF_LE_DIR)/
212+
cd $O && zip -q -r $(WIN_ELF_NAME).zip $(WIN_ELF_LE_DIR)/
213+
touch $@
214+
207215
#
208216
# Clean
209217
#

0 commit comments

Comments
 (0)