Advertisement
svenhoefer

Untitled

Sep 16th, 2017
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.02 KB | None | 0 0
  1. vanhofen@jessie:~/ni/buildsystem[master]$ git diff
  2. diff --git a/make/environment.mk b/make/environment.mk
  3. index 1b2a6ab..7d42fc0 100644
  4. --- a/make/environment.mk
  5. +++ b/make/environment.mk
  6. @@ -169,13 +169,15 @@ STATICLIB             = $(STATIC_DIR)/lib
  7.  TARGETLIB             = $(TARGETPREFIX)/lib
  8.  TARGETINCLUDE         = $(TARGETPREFIX)/include
  9.  TARGET_CFLAG_O        = -O2
  10. +TARGET_CFLAGS_ADD     =
  11.  TARGET_LDFLAGS_ADD    =
  12.  ifeq ($(BOXMODEL), $(filter $(BOXMODEL), nevis kronos_v2))
  13. -  TARGET_CFLAG_O      += -fdata-sections -ffunction-sections
  14. +  TARGET_CFLAG_O      = -Os
  15. +  TARGET_CFLAGS_ADD   = -fdata-sections -ffunction-sections
  16.    TARGET_LDFLAGS_ADD  = -Wl,--gc-sections
  17.  endif
  18.  
  19. -TARGET_CFLAGS         = -pipe $(TARGET_CFLAG_O) -g -I$(TARGETINCLUDE)
  20. +TARGET_CFLAGS         = -pipe $(TARGET_CFLAG_O) $(TARGET_CFLAGS_ADD) -g -I$(TARGETINCLUDE)
  21.  TARGET_CPPFLAGS       = $(TARGET_CFLAGS)
  22.  TARGET_CXXFLAGS       = $(TARGET_CFLAGS)
  23.  TARGET_LDFLAGS        = $(CORTEX-STRINGS) -Wl,-O1 $(TARGET_LDFLAGS_ADD) -L$(TARGETLIB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement