meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
buildroot:variables [2017/02/28 14:02] niziakbuildroot:variables [2024/01/02 16:41] (current) niziak
Line 1: Line 1:
-==== Auto override ====+====== Variables ======
  
 +==== Auto override ====
 +<code make>
 # Create an automatic OVERRIDE for everything under src/ # Create an automatic OVERRIDE for everything under src/
 AUTO_OVERRIDES = $(notdir $(wildcard $(BR2_EXTERNAL)/src/*))) AUTO_OVERRIDES = $(notdir $(wildcard $(BR2_EXTERNAL)/src/*)))
Line 7: Line 9:
         $(eval $(call do_override,$(call UPPERCASE,$(override)),$(override))))         $(eval $(call do_override,$(call UPPERCASE,$(override)),$(override))))
  
- +#(this snippet is licensed GPLv2+).  
-(this snippet is licensed GPLv2+).  +#by Arnout Vandecappelle (Essensium/Mind)  
-by Arnout Vandecappelle (Essensium/Mind) +</code>
  
 ==== Variables ==== ==== Variables ====
-  * **$(@D)** which contains the directory in which the package source code has been uncompressed. +**$(@D)** which contains the directory in which the package source code has been uncompressed. | 
-  * **$(FOO_PKGDIR)** contains the path to the directory containing the foo.mk and Config.in files. +**$(FOO_DIR)** | same as **$(@D)** | 
-  **$(HOST_DIR)**  +**$(FOO_PKGDIR)** contains the path to the directory containing the foo.mk and Config.in files.| 
-  **$(STAGING_DIR)** - +**$(HOST_DIR)** | | 
-  **$(TARGET_DIR)** -+**$(STAGING_DIR)** | | 
 +**$(TARGET_DIR)** | | 
  
 ==== Cross compilation ==== ==== Cross compilation ====
 Variables are defined in //buildroot/package/Makefile.in// Variables are defined in //buildroot/package/Makefile.in//
-  * **$(TARGET_CC)**   - cross compiler gcc binary (i.e.: TARGET_CC=/home/user/project/out/host/usr/bin/ccache /home/user/project/out/host/usr/bin/arm-linux-gcc) 
-  * $(TARGET_AR) $(TARGET_AS) $(TARGET_CPP) $(TARGET_CXX) _FC _LD _NM _RANLIB _READELF _OBJCOPY _OBJDUMP 
-  * $(TARGET_CC_NOCCACHE) 
-  * $(TARGET_CXX_NOCCACHE) 
  
-  * $(TARGET_CFLAGS(i.e: TARGET_CFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os -g2+| **$(TARGET_CC)**  | cross compiler gcc binary (i.e.TARGET_CC=/home/user/project/out/host/usr/bin/ccache /home/user/project/out/host/usr/bin/arm-linux-gcc| 
-  * $(TARGEt_CPPFLAGS+| **$(TARGET_AR 
-  * $(TARGET_CXXFLAGS+| $(TARGET_AS) |  
-  * $(TARGET_LDFLAGS)+| $(TARGET_CPP) | 
 +| $(TARGET_CXX) |  
 +| _FC _LD _NM | _RANLIB | _READELF | _OBJCOPY |  
 +| _OBJDUMP** | 
 +| **$(TARGET_CC_NOCCACHE)** | 
 +| **$(TARGET_CXX_NOCCACHE)** |
  
-  * $(TARGET_MAKE_ENV) - env which has to be set for cross compilation. It overrides search path, to get cross compiler first. (i.e:PATH="/home/user/project/out/host/bin:/home/user/project/out/host/ ...) +| **$(TARGET_CFLAGS)** | (i.e: TARGET_CFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os -g2) | 
-  $(TARGET_DIR) device root filesystem (i.e: needed for installing packages into $(TARGET_DIR)/usr/bin) +| **$(TARGET_CPPFLAGS)** | 
-  $(STAGING_DIR) development target root filesystem (contains all needed libraries to build other packages, contains debug info and not stripped binary)+| **$(TARGET_CXXFLAGS)** | 
 +| **$(TARGET_LDFLAGS)** | 
 + 
 +| **$(TARGET_MAKE_ENV)** | env which has to be set for cross compilation.  
 +It overrides search path, to get cross compiler first. (i.e:PATH="/home/user/project/out/host/bin:/home/user/project/out/host/ ...) | 
 +$(TARGET_DIR) device root filesystem (i.e: needed for installing packages into $(TARGET_DIR)/usr/bin)| 
 +$(STAGING_DIR) development target root filesystem (contains all needed libraries to build other packages, contains debug info and not stripped binary)|
  
 Additional variables (not needed in normal use) Additional variables (not needed in normal use)
-  * $(CCACHE) full path to ccache binary or empty (i.e: CCACHE=/home/user/project/out/host/usr/bin/ccache) +| **$(CCACHE)** | full path to ccache binary or empty (i.e: CCACHE=/home/user/project/out/host/usr/bin/ccache) | 
-  * $(TARGET_CROSS) prefix with full path to cross compiler (i.e: TARGET_CROSS=/home/user/project/out/host/usr/bin/arm-linux-) +| **$(TARGET_CROSS)** | prefix with full path to cross compiler (i.e: TARGET_CROSS=/home/user/project/out/host/usr/bin/arm-linux-) | 
-  * $(ABI) gnueabi[hf] eabi[hf] +| **$(ABI)** | gnueabi[hf] eabi[hf] | 
-  * $(GNU_TARGET_NAME) GNU_TARGET_NAME=arm-buildroot-linux-uclibcgnueabi+| **$(GNU_TARGET_NAME)** | GNU_TARGET_NAME=arm-buildroot-linux-uclibcgnueabi 
  
 === Example === === Example ===