Using a new way of running, you do not need to modify main.c, and specify the program to run directly at make time.

This commit is contained in:
SSYYL 2022-09-20 17:13:25 +08:00
commit 8dfe2cff0a
2 changed files with 170 additions and 87 deletions

View file

@ -13,8 +13,8 @@ JETSON_DEV_C = $(wildcard $(DIR_BIN)/sysfs_software_spi.o $(DIR_BIN)/sysfs_gpio.
DEBUG = -D DEBUG
USELIB_RPI = USE_BCM2835_LIB
#USELIB_RPI = USE_WIRINGPI_LIB
USELIB_RPI = USE_BCM2835_LIB
# USELIB_RPI = USE_WIRINGPI_LIB
# USELIB_RPI = USE_DEV_LIB
LIB_RPI=-Wl,--gc-sections
@ -41,10 +41,11 @@ DEBUG_JETSONI = -D $(USELIB_JETSONI) -D JETSON
RPI:RPI_DEV RPI_epd
JETSON: JETSON_DEV JETSON_epd
EPD = NULL
TARGET = epd
CC = gcc
MSG = -g -O -ffunction-sections -fdata-sections -Wall
CFLAGS += $(MSG)
CFLAGS += $(MSG) -D $(EPD)
RPI_epd:${OBJ_O}
echo $(@)