From 5e307a3f3255ee97d6bea871c32937a66ee5a7dc Mon Sep 17 00:00:00 2001 From: Wolfvak Date: Sun, 19 Jul 2020 12:03:04 -0300 Subject: [PATCH] limit size of initrd, fix building on msys2 --- Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 2e96241..d5469e9 100644 --- a/Makefile +++ b/Makefile @@ -18,13 +18,17 @@ export COMMON_DIR := ../common # Definitions for initial RAM disk VRAM_OUT := $(OUTDIR)/vram0.tar VRAM_DATA := data -VRAM_FLAGS := --make-new --path-limit 99 --size-limit 3145728 +VRAM_FLAGS := --make-new --path-limit 99 --size-limit 262144 -#ifeq ($(OS),Windows_NT) -# PY3 := py -3 -#else - PY3 := python3 -#endif +ifeq ($(OS),Windows_NT) + ifeq ($(TERM),) + PY3 := py -3 # Windows / CMD/PowerShell + else + PY3 := python3 # Windows / MSYS2 + endif +else + PY3 := python3 # Unix-like +endif # Definitions for ARM binaries export INCLUDE := -I"$(shell pwd)/common"