From 241bcb273f8785b4f2b8a034cc5c892eb759bea0 Mon Sep 17 00:00:00 2001 From: feelfree69 Date: Sat, 2 May 2026 21:45:39 +0200 Subject: [PATCH] rename output of installer-Makefile to rtlplayground_oem_upgrade.bin --- installer/Makefile | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/installer/Makefile b/installer/Makefile index d4cdc1a..c451f49 100644 --- a/installer/Makefile +++ b/installer/Makefile @@ -6,37 +6,36 @@ CC_FLAGS = -mmcs51 ASM = sdas8051 AFLAGS= -plosgff -BUILDDIR = output/ +BUILDDIR = output SRCS = installer.c -OBJS = ${SRCS:%.c=$(BUILDDIR)%.rel} +OBJS = ${SRCS:%.c=$(BUILDDIR)/%.rel} -all: create_build_dir $(BUILDDIR)updatebuilder $(BUILDDIR)rtlplayground.bin +all: create_build_dir $(BUILDDIR)/updatebuilder $(BUILDDIR)/rtlplayground_oem_upgrade.bin create_build_dir: mkdir -p $(BUILDDIR) -$(BUILDDIR)updatebuilder: updatebuilder.c +$(BUILDDIR)/updatebuilder: updatebuilder.c gcc $^ -o $@ -$(BUILDDIR)installer.rel: installer.c +$(BUILDDIR)/installer.rel: installer.c $(CC) $(CC_FLAGS) --code-loc ${CODE_LOCATION} -o $@ -c $< -$(BUILDDIR)crtstart.rel: crtstart.asm +$(BUILDDIR)/crtstart.rel: crtstart.asm $(ASM) $(AFLAGS) -o $@ $< -$(BUILDDIR)%.rel: $(BUILDDIR)%.asm +$(BUILDDIR)/%.rel: $(BUILDDIR)/%.asm ${ASM} ${AFLAGS} -o $@ $^ -$(BUILDDIR)%.rel: %.c +$(BUILDDIR)/%.rel: %.c $(CC) $(CC_FLAGS) -o $@ -c $< -$(BUILDDIR)rtlinstaller.ihx: $(BUILDDIR)crtstart.rel $(OBJS) +$(BUILDDIR)/rtlinstaller.ihx: $(BUILDDIR)/crtstart.rel $(OBJS) $(CC) $(CC_FLAGS) -Wl-bHOME=${INSTALLER_ADDRESS} -Wl-r -o $@ $^ -$(BUILDDIR)rtlplayground.bin: $(BUILDDIR)rtlinstaller.ihx ../$(BUILDDIR)/rtlplayground.bin - cp ../$(BUILDDIR)/rtlplayground.bin $(BUILDDIR) - ./$(BUILDDIR)/updatebuilder -i $< $(BUILDDIR)rtlplayground.bin +$(BUILDDIR)/rtlplayground_oem_upgrade.bin: $(BUILDDIR)/rtlinstaller.ihx ../$(BUILDDIR)/rtlplayground.bin + ./$(BUILDDIR)/updatebuilder -i $< -o $(BUILDDIR)/rtlplayground_oem_upgrade.bin ../$(BUILDDIR)/rtlplayground.bin clean: rm -r $(BUILDDIR)