bug fix
This commit is contained in:
parent
e33119b119
commit
b74569668e
5
Makefile
5
Makefile
@ -3,7 +3,7 @@ ifeq ($(OS),Windows_NT)
|
|||||||
RM := del /q
|
RM := del /q
|
||||||
COM := COM3
|
COM := COM3
|
||||||
else
|
else
|
||||||
RM =: rm -rf
|
RM := rm -rf
|
||||||
|
|
||||||
UNAME_S := $(shell cat /etc/*-release | grep 'DISTRIB_ID' | sed 's/DISTRIB_ID=\(\w*\)/\1/g')
|
UNAME_S := $(shell cat /etc/*-release | grep 'DISTRIB_ID' | sed 's/DISTRIB_ID=\(\w*\)/\1/g')
|
||||||
ifeq ($(UNAME_S),Ubuntu)
|
ifeq ($(UNAME_S),Ubuntu)
|
||||||
@ -14,6 +14,7 @@ else
|
|||||||
CC := ablrun sdcc
|
CC := ablrun sdcc
|
||||||
COM := /dev/ttyUSB0
|
COM := /dev/ttyUSB0
|
||||||
endif
|
endif
|
||||||
|
TEMP := $(shell sudo chmod 777 $(COM))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# set CC TOOL
|
# set CC TOOL
|
||||||
@ -48,7 +49,7 @@ uart_temp.hex: $(TARGET)
|
|||||||
-$(PACKIHX) $(TARGET) > uart_temp.hex
|
-$(PACKIHX) $(TARGET) > uart_temp.hex
|
||||||
|
|
||||||
flash:
|
flash:
|
||||||
-stcgal -P stc89 -p $(COM) -d uart_temp.hex
|
-stcgal -P stc89 -p $(COM) uart_temp.hex
|
||||||
|
|
||||||
#led.bin:led.hex
|
#led.bin:led.hex
|
||||||
# objcopy -I ihex -O binary led.hex led.bin
|
# objcopy -I ihex -O binary led.hex led.bin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user