ソースを参照

update some build notes

philippe44 5 年 前
コミット
d118b4ac36
2 ファイル変更11 行追加3 行削除
  1. 10 2
      README.md
  2. 1 1
      main/component.mk

+ 10 - 2
README.md

@@ -1,10 +1,18 @@
 Adding squeezelite
  - libmad must be in a separated component otherwise linker whines about long call 
- - libfaad requires -mlongcalls
+ - libfaad 
+ 	- mlongcalls -O2 -DFIXED_POINT -DSMALL_STACK
+	- change ac_link in configure and case ac_files, remove ''
+	- compiler but in cfft.c and cffti1, must disable optimization using 
+		#pragma GCC push_options
+		#pragma GCC optimize ("O0")
+		#pragma GCC pop_options
+ - libflac can use espressif's version	
  - set IDF_PATH=/home/esp-idf
  - set ESPPORT=COM9
  - change <esp-idf>\components\partition_table\partitions_singleapp.csv to 2M instead of 1M (or more)
- 
+ - change flash's size in serial flash config 
+  
 # Wifi SCAN Example
 
 This example shows how to use scan of ESP32.

+ 1 - 1
main/component.mk

@@ -2,7 +2,7 @@
 # "main" pseudo-component makefile.
 #
 # (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
-CFLAGS += -DPOSIX -DLINKALL -DLOOPBACK -DDACAUDIO -I$(COMPONENT_PATH)/../libmad -I$(COMPONENT_PATH)/../libflac/include -I$(COMPONENT_PATH)/../faad2/include
+CFLAGS += -DPOSIX -DLINKALL -DLOOPBACK -DDACAUDIO -DFIXED_POINT -DSMALL_STACK -I$(COMPONENT_PATH)/../libmad -I$(COMPONENT_PATH)/../libflac/include -I$(COMPONENT_PATH)/../faad2/include
 LDFLAGS += -s