From 395f05c27d87ebbf6b96e9132ddc6b04163fe968 Mon Sep 17 00:00:00 2001 From: logicog Date: Thu, 4 Sep 2025 21:04:42 +0200 Subject: [PATCH 1/3] Remove unnecessary variable --- tools/fileadder.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/fileadder.c b/tools/fileadder.c index 11bf793..2ce351e 100644 --- a/tools/fileadder.c +++ b/tools/fileadder.c @@ -57,7 +57,6 @@ struct arguments { char *bank; bool overwrite; bool add_zero; - char *args[1]; }; From 2669262240440f5088e109d98446bbbbf9542fc5 Mon Sep 17 00:00:00 2001 From: logicog Date: Thu, 4 Sep 2025 21:04:57 +0200 Subject: [PATCH 2/3] Demagic memory locations --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 510b724..1da0f77 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,9 @@ BOOTLOADER_ADDRESS=0x100 +IMAGESIZE = 524288 +CONFIG_LOCATION = 458752 +HTML_LOCATION = 262144 + CC = sdcc CC_FLAGS = -mmcs51 -Ihttpd -Iuip ASM = sdas8051 @@ -15,7 +19,7 @@ OBJS = ${SRCS:.c=.rel} OBJS += uip/timer.rel uip/uip-fw.rel uip/uip-neighbor.rel uip/uip-split.rel uip/uip.rel uip/uip_arp.rel uip/uiplib.rel httpd/httpd.rel httpd/page_impl.rel html_data.c html_data.h: html tools - tools/fileadder -a 458752 -s 524288 -b BANK1 -d html -p html_data + tools/fileadder -a $(CONFIG_LOCATION) -s $(IMAGESIZE) -b BANK1 -d html -p html_data httpd: html_data.h @@ -50,8 +54,8 @@ rtlplayground.ihx: crtstart.rel $(OBJS) cat $< >> $@ truncate --size=16K $@ dd if=$< skip=80 bs=1024 >>$@ - tools/fileadder -a 458752 -s 524288 -d config.txt $@ - tools/fileadder -a 262144 -s 524288 -d html -p html_data $@ + tools/fileadder -a $(CONFIG_LOCATION) -s $(IMAGESIZE) -d config.txt $@ + tools/fileadder -a $(CONFIG_LOCATION) -s $(IMAGESIZE) -d html -p html_data $@ .PHONY: clean all $(SUBDIRS) .PRECIOUS: %.rel %.ihx .img From b85d57b32bafb0de0b06873a99546e879d2ca8a6 Mon Sep 17 00:00:00 2001 From: logicog Date: Thu, 4 Sep 2025 21:04:57 +0200 Subject: [PATCH 3/3] Demagic memory locations --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1da0f77..3b0c892 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ OBJS = ${SRCS:.c=.rel} OBJS += uip/timer.rel uip/uip-fw.rel uip/uip-neighbor.rel uip/uip-split.rel uip/uip.rel uip/uip_arp.rel uip/uiplib.rel httpd/httpd.rel httpd/page_impl.rel html_data.c html_data.h: html tools - tools/fileadder -a $(CONFIG_LOCATION) -s $(IMAGESIZE) -b BANK1 -d html -p html_data + tools/fileadder -a $(HTML_LOCATION) -s $(IMAGESIZE) -b BANK1 -d html -p html_data httpd: html_data.h @@ -55,7 +55,8 @@ rtlplayground.ihx: crtstart.rel $(OBJS) truncate --size=16K $@ dd if=$< skip=80 bs=1024 >>$@ tools/fileadder -a $(CONFIG_LOCATION) -s $(IMAGESIZE) -d config.txt $@ - tools/fileadder -a $(CONFIG_LOCATION) -s $(IMAGESIZE) -d html -p html_data $@ + tools/fileadder -a $(HTML_LOCATION) -s $(IMAGESIZE) -d html -p html_data $@ + .PHONY: clean all $(SUBDIRS) .PRECIOUS: %.rel %.ihx .img