From 2ded9ff7f9de59e12b48782f907624515094b063 Mon Sep 17 00:00:00 2001 From: forth32 Date: Fri, 7 Oct 2016 07:20:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=BD=D0=BE=D0=BC?= =?UTF-8?q?=D0=B5=D1=80=D0=B0=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 19 +++++++------------ balong_flash.c | 5 ++--- ptable.c | 1 + 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 4e5a13c..692e316 100755 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ CC = gcc LIBS = -CFLAGS = -O2 -Wno-unused-result - +#BUILDNO = `cat build` +BUILDNO=$(shell cat build) +CFLAGS = -O2 -Wno-unused-result -D BUILDNO=$(BUILDNO) .PHONY: all clean all: balong_flash @@ -10,14 +11,8 @@ clean: rm *.o rm balong_flash -#.c.o: -# $(CC) -o $@ $(LIBS) $^ qcio.o - -hdlcio.o: hdlcio.c - $(CC) -c hdlcio.c - -ptable.o: ptable.c - $(CC) -c ptable.c - balong_flash: balong_flash.o hdlcio.o ptable.o - @gcc $^ -o $@ $(LIBS) + @gcc $^ -o $@ $(LIBS) + @echo Current buid: $(BUILDNO) + @echo $$((`cat build`+1)) >build + \ No newline at end of file diff --git a/balong_flash.c b/balong_flash.c index 5405053..b52dbf5 100644 --- a/balong_flash.c +++ b/balong_flash.c @@ -270,12 +270,11 @@ printf("\n Утилита предназначена для прошивки м return; } } - -printf("\n Программа для прошивки устройств на Balong-чипсете, версия 2.5, (c) forth32, 2015, GNU GPLv3"); +printf("\n Программа для прошивки устройств на Balong-чипсете, V2.6 Build %i, (c) forth32, 2015, GNU GPLv3",BUILDNO); #ifdef WIN32 printf("\n Порт для Windows 32bit (c) rust3028, 2016"); #endif - +printf("\n--------------------------------------------------------------------------------------------------\n"); if (eflag&sflag) { printf("\n Ключи -s и -e несовместимы\n"); diff --git a/ptable.c b/ptable.c index 46fdd36..3fc0b31 100644 --- a/ptable.c +++ b/ptable.c @@ -66,6 +66,7 @@ struct { {"System_R1",0x107}, {"Nvimage_R1",0x66}, {"WEBUI_R1",0x113}, + {"APP_R1",0x109}, {0,0} };