Skip to content

Commit 8d92cf5

Browse files
committed
[Change] Compilation Optimised
1 parent 31673cb commit 8d92cf5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scripts/pack_fw.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ echo "Deleteing of yi-hack-v5.7z - done!"
224224

225225
# Delete all the compressed files except system_init.sh and yi-hack-v5.7z
226226
find $TMP_DIR/home/yi-hack-v5/script/ -maxdepth 0 ! -name 'system_init.sh' -type f -exec rm -f {} +
227-
find $TMP_DIR/home/yi-hack-v5/* -maxdepth 0 -type d ! -name 'script' ! -name 'lib' ! -name 'version.txt' -exec rm -rf {} +
228-
#find $TMP_DIR/home/yi-hack-v5/* -maxdepth 0 -type f -not -name 'yi-hack-v5.7z' -exec rm {} +
227+
find $TMP_DIR/home/yi-hack-v5/* -maxdepth 0 -type d ! -name 'script' -exec rm -rf {} +
228+
find $TMP_DIR/home/yi-hack-v5/* -maxdepth 0 -type f ! -name 'version' -exec rm {} +
229229
printf "done!\n\n"
230230

231231
# home

src/rRTSPServer/Makefile.rRTSPServer

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##### Change the following for your environment:
2-
COMPILE_OPTS = $(INCLUDES) -I. -I./include -O1 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DNO_OPENSSL=1 -DRTP_PAYLOAD_MAX_SIZE=1352 -DNEWLOCALE_NOT_USED
2+
COMPILE_OPTS = $(INCLUDES) -I. -I./include -O2 -ffunction-sections -fdata-sections -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DNO_OPENSSL=1 -DRTP_PAYLOAD_MAX_SIZE=1352 -DNEWLOCALE_NOT_USED
33
C = c
44
C_COMPILER = $(CC)
55
C_FLAGS = $(COMPILE_OPTS) $(CPPFLAGS) $(CFLAGS)
@@ -18,6 +18,8 @@ LIBS_FOR_GUI_APPLICATION =
1818
EXE =
1919
##### End of variables to change
2020

21+
.PHONY: all livemedia rRTSPServer install distclean clean
22+
2123
INCLUDES = -IUsageEnvironment/include -Igroupsock/include -IliveMedia/include -IBasicUsageEnvironment/include
2224
# Default library filename suffixes for each library that we link with. The "config.*" file might redefine these later.
2325
libliveMedia_LIB_SUFFIX = $(LIB_SUFFIX)

0 commit comments

Comments
 (0)