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