-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile.subtrees
More file actions
38 lines (30 loc) · 1.7 KB
/
Makefile.subtrees
File metadata and controls
38 lines (30 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# If you need to use a git subtree, please add it here.
# This is more of a guide, folks can just run things manually
# and use this as documentation.
KCONFIG_GIT_URL_READ := https://github.com/linux-kdevops/kconfig.git
KCONFIG_GIT_URL_RW := git@github.com:linux-kdevops/kconfig.git
UPDATE_SSHCONFIG_READ := https://github.com/linux-kdevops/update_ssh_config.git
UPDATE_SSHCONFIG_RW := git@github.com:linux-kdevops/update_ssh_config.git
KCONFIG_DIR := scripts/kconfig
UPDATE_SSHCONFIG_DIR := playbooks/roles/update_ssh_config/update_ssh_config/
# If you only have read access to these trees use this target
add-subtree-remotes:
git remote add kconfig $(KCONFIG_GIT_URL_READ)
git remote add update_ssh_config $(UPDATE_SSHCONFIG_READ)
# If you have write access to these trees use this
add-subtree-remotes-dev:
git remote add kconfig $(KCONFIG_GIT_URL_RW)
git remote add update_ssh_config $(UPDATE_SSHCONFIG_RW)
add-subtrees:
git subtree add --prefix=$(KCONFIG_DIR) kconfig master
git subtree add --prefix=$(UPDATE_SSHCONFIG_DIR) update_ssh_config master
refresh-subtrees:
git fetch kconfig
git fetch update_ssh_config
git subtree pull --prefix=$(KCONFIG_DIR) kconfig master
git fetch update_ssh_config
git subtree pull --prefix=$(UPDATE_SSHCONFIG_DIR) update_ssh_config master
# If you are a developer with write commit access you can push changes queued
# up here onto kdevops to their respective upstream as follows:
# git subtree push --prefix=scripts/kconfig/ kconfig master
# git subtree push --prefix=playbooks/roles/update_ssh_config/update_ssh_config update_ssh_config master