期望官方下次发布SDK更新时,Makefile做如下改动

alexsunmiu
Posts: 41
Joined: Tue May 05, 2015 4:48 pm
Contact:

期望官方下次发布SDK更新时,Makefile做如下改动

Postby alexsunmiu » Thu Jun 18, 2015 9:09 am

如题,希望官方下次升级时,能将一些常见变量直接加入 编译选项,主要是 Makefile中将 gen_misc.sh 产生的一些变量,使用GNU Gcc的 D选项加入宏定义,我建议增加一些如 BOOT 、 APP、 SPI_SIZE_MAP等,如下:

Code: Select all

# Makefile Line 188.
CCFLAGS +=          \
   -g         \
   -O2         \
   -Wpointer-arith      \
   -Wundef         \
   -Werror         \
   -Wl,-EL         \
   -fno-inline-functions   \
   -nostdlib       \
   -mlongcalls   \
   -mtext-section-literals \
   -ffunction-sections \
   -fdata-sections     \
++++新增部分
   -DBOOT=$(BOOT) \
   -DAPP=$(APP) \
   -DSPI_SPEED=$(SPI_SPEED) \
   -DSPI_MODE=$(SPI_MODE) \
   -DSPI_SIZE_MAP=$(SPI_SIZE_MAP)
++++新增部分结束
#   -Wall         



这样代码中也好直接 使用~虽然自己可以加入,但每次跟随官方SDK升级后,总是需要自己hack Makefile。不够方便~
another ESP8266 cloud service. https://espush.cn/

Who is online

Users browsing this forum: No registered users and 106 guests