1*4882a593Smuzhiyun# combo-layer example configuration file 2*4882a593Smuzhiyun 3*4882a593Smuzhiyun# Default values for all sections. 4*4882a593Smuzhiyun[DEFAULT] 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun# Add 'Signed-off-by' to all commits that get imported automatically. 7*4882a593Smuzhiyunsignoff = True 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun# component name 10*4882a593Smuzhiyun[bitbake] 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun# Override signedoff default above (not very useful, but possible). 13*4882a593Smuzhiyunsignoff = False 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun# mandatory options 16*4882a593Smuzhiyun# git upstream uri 17*4882a593Smuzhiyunsrc_uri = git://git.openembedded.org/bitbake 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun# the directory to clone the component repo 20*4882a593Smuzhiyunlocal_repo_dir = /home/kyu3/src/test/bitbake 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun# the relative dir within the combo repo to put the component files 23*4882a593Smuzhiyun# use "." if the files should be in the root dir 24*4882a593Smuzhiyundest_dir = bitbake 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun# the last update revision. 27*4882a593Smuzhiyun# "init" will set this to the latest revision automatically, however if it 28*4882a593Smuzhiyun# is empty when "update" is run, the tool will start from the first commit. 29*4882a593Smuzhiyun# Note that this value will get updated by "update" if the component repo's 30*4882a593Smuzhiyun# latest revision changed and the operation completes successfully. 31*4882a593Smuzhiyunlast_revision = 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun# optional options: 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun# branch: specify the branch in the component repo to pull from 36*4882a593Smuzhiyun# (master if not specified) 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun# file_filter: only include the specified file(s) 39*4882a593Smuzhiyun# file_filter = [path] [path] ... 40*4882a593Smuzhiyun# example: 41*4882a593Smuzhiyun# file_filter = src/ : only include the subdir src 42*4882a593Smuzhiyun# file_filter = src/*.c : only include the src *.c file 43*4882a593Smuzhiyun# file_filter = src/main.c src/Makefile.am : only include these two files 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun# file_exclude: filter out these file(s) 46*4882a593Smuzhiyun# file_exclude = [path] [path] ... 47*4882a593Smuzhiyun# 48*4882a593Smuzhiyun# Each entry must match a file name. In contrast do file_filter, matching 49*4882a593Smuzhiyun# a directory has no effect. To achieve that, use append a * wildcard 50*4882a593Smuzhiyun# at the end. 51*4882a593Smuzhiyun# 52*4882a593Smuzhiyun# Wildcards are applied to the complete path and also match slashes. 53*4882a593Smuzhiyun# 54*4882a593Smuzhiyun# example: 55*4882a593Smuzhiyun# file_exclude = src/foobar/* : exclude everything under src/foobar 56*4882a593Smuzhiyun# file_exclude = src/main.c : filter out main.c after including it with file_filter = src/*.c 57*4882a593Smuzhiyun# file_exclude = *~ : exclude backup files 58*4882a593Smuzhiyun 59*4882a593Smuzhiyun# hook: if provided, the tool will call the hook to process the generated 60*4882a593Smuzhiyun# patch from upstream, and then apply the modified patch to the combo 61*4882a593Smuzhiyun# repo. 62*4882a593Smuzhiyun# the hook script is called as follows: ./hook patchpath revision reponame 63*4882a593Smuzhiyun# example: 64*4882a593Smuzhiyun# hook = combo-layer-hook-default.sh 65*4882a593Smuzhiyun 66*4882a593Smuzhiyun# since_revision: 67*4882a593Smuzhiyun# since_revision = release-1-2 68*4882a593Smuzhiyun# since_revision = 12345 abcdf 69*4882a593Smuzhiyun# 70*4882a593Smuzhiyun# If provided, truncate imported history during "combo-layer --history 71*4882a593Smuzhiyun# init" at the specified revision(s). More than one can be specified 72*4882a593Smuzhiyun# to cut off multiple component branches. 73*4882a593Smuzhiyun# 74*4882a593Smuzhiyun# The specified commits themselves do not get imported. Instead, an 75*4882a593Smuzhiyun# artificial commit with "unknown" author is created with a content 76*4882a593Smuzhiyun# that matches the original commit. 77*4882a593Smuzhiyun 78*4882a593Smuzhiyun[oe-core] 79*4882a593Smuzhiyunsrc_uri = git://git.openembedded.org/openembedded-core 80*4882a593Smuzhiyunlocal_repo_dir = /home/kyu3/src/test/oecore 81*4882a593Smuzhiyundest_dir = . 82*4882a593Smuzhiyunlast_revision = 83*4882a593Smuzhiyunsince_revision = some-tag-or-commit-on-master-branch 84*4882a593Smuzhiyun 85*4882a593Smuzhiyun# It is also possible to embed python code in the config values. Similar 86*4882a593Smuzhiyun# to bitbake it considers every value starting with @ to be a python 87*4882a593Smuzhiyun# script. 88*4882a593Smuzhiyun# e.g. local_repo_dir could easily be configured using an environment 89*4882a593Smuzhiyun# variable: 90*4882a593Smuzhiyun# 91*4882a593Smuzhiyun# [bitbake] 92*4882a593Smuzhiyun# local_repo_dir = @os.getenv("LOCAL_REPO_DIR") + "/bitbake" 93*4882a593Smuzhiyun# 94