]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - debian/rules.d/1-maintainer.mk
UBUNTU: [Debian] fix SRCPKGNAME-udebs-FLAVOUR handling for complex flavours
[mirror_ubuntu-zesty-kernel.git] / debian / rules.d / 1-maintainer.mk
CommitLineData
356bd1e1
LO
1# The following targets are for the maintainer only! do not run if you don't
2# know what they do.
3
4.PHONY: printenv updateconfigs printchanges insertchanges startnewrelease diffupstream help updateportsconfigs editportsconfigs
5
6help:
7 @echo "These are the targets in addition to the normal $(DEBIAN) ones:"
8 @echo
9 @echo " printenv : Print some variables used in the build"
10 @echo
11 @echo " updateconfigs : Update core arch configs"
12 @echo
13 @echo " editconfigs : Update core arch configs interractively"
14 @echo " genconfigs : Generate core arch configs in CONFIGS/*"
15 @echo
16 @echo " updateportsconfigs : Update ports arch configs"
17 @echo
18 @echo " editportsconfigs : Update ports arch configs interactivly"
19 @echo " genportconfigs : Generate ports arch configs in CONFIGS/*"
20 @echo
21 @echo " printchanges : Print the current changelog entries (from git)"
22 @echo
23 @echo " insertchanges : Insert current changelog entries (from git)"
24 @echo
25 @echo " startnewrelease : Start a new changelog set"
26 @echo
27 @echo " diffupstream : Diff stock kernel code against upstream (git)"
28 @echo
29 @echo " help : If you are kernel hacking, you need the professional"
30 @echo " version of this"
31 @echo
32 @echo "Environment variables:"
33 @echo
34 @echo " NOKERNLOG : Do not add upstream kernel commits to changelog"
35 @echo " CONCURRENCY_LEVEL=X"
36 @echo " : Use -jX for kernel compile"
37 @echo " PRINTSHAS : Include SHAs for commits in changelog"
38
39printdebian:
40 @echo "$(DEBIAN)"
41
42updateconfigs defaultconfigs editconfigs genconfigs dumpconfigs:
43 dh_testdir;
44 $(SHELL) $(DROOT)/scripts/misc/kernelconfig $@
45 rm -rf build
46
47updateportsconfigs defaultportsconfigs editportsconfigs genportsconfigs askconfigs:
48 dh_testdir;
49 $(SHELL) $(DROOT)/scripts/misc/kernelconfig $@ ports
50 rm -rf build
51
52printenv:
53 dh_testdir
54 @echo "src package name = $(src_pkg_name)"
55 @echo "release = $(release)"
56 @echo "revisions = $(revisions)"
57 @echo "revision = $(revision)"
58 @echo "uploadnum = $(uploadnum)"
59 @echo "prev_revisions = $(prev_revisions)"
60 @echo "prev_revision = $(prev_revision)"
61 @echo "abinum = $(abinum)"
62 @echo "gitver = $(gitver)"
63 @echo "flavours = $(flavours)"
64 @echo "skipabi = $(skipabi)"
65 @echo "skipmodule = $(skipmodule)"
66 @echo "skipdbg = $(skipdbg)"
67 @echo "ubuntu_log_opts = $(ubuntu_log_opts)"
68 @echo "CONCURRENCY_LEVEL = $(CONCURRENCY_LEVEL)"
69 @echo "bin package name = $(bin_pkg_name)"
70 @echo "hdr package name = $(hdrs_pkg_name)"
71 @echo "doc package name = $(doc_pkg_name)"
72 @echo "do_doc_package = $(do_doc_package)"
73 @echo "do_doc_package_content = $(do_doc_package_content)"
74 @echo "do_source_package = $(do_source_package)"
75 @echo "do_source_package_content = $(do_source_package_content)"
76 @echo "do_libc_dev_package = $(do_libc_dev_package)"
77 @echo "do_flavour_image_package = $(do_flavour_image_package)"
78 @echo "do_flavour_header_package = $(do_flavour_header_package)"
79 @echo "do_common_headers_indep = $(do_common_headers_indep)"
80 @echo "do_full_source = $(do_full_source)"
81 @echo "do_tools = $(do_tools)"
82 @echo "full_build = $(full_build)"
83 @echo "libc_dev_version = $(libc_dev_version)"
84 @echo "DEB_HOST_GNU_TYPE = $(DEB_HOST_GNU_TYPE)"
85 @echo "DEB_BUILD_GNU_TYPE = $(DEB_BUILD_GNU_TYPE)"
86 @echo "DEB_HOST_ARCH = $(DEB_HOST_ARCH)"
87 @echo "DEB_BUILD_ARCH = $(DEB_BUILD_ARCH)"
88 @echo "arch = $(arch)"
89 @echo "kmake = $(kmake)"
90
356bd1e1
LO
91printchanges:
92 @baseCommit=$$(git log --pretty=format:'%H %s' | \
da2184eb 93 awk '/UBUNTU: '".*Ubuntu-$(prev_fullver)"'$$/ { print $$1; exit }'); \
356bd1e1
LO
94 git log "$$baseCommit"..HEAD | \
95 perl -w -f $(DROOT)/scripts/misc/git-ubuntu-log $(ubuntu_log_opts)
96
97insertchanges:
98 @perl -w -f $(DROOT)/scripts/misc/insert-changes.pl $(DROOT) $(DEBIAN)
99
100diffupstream:
101 @git diff-tree -p refs/remotes/linux-2.6/master..HEAD $(shell ls | grep -vE '^(ubuntu|$(DEBIAN)|\.git.*)')
102
103startnewrelease:
104 dh_testdir
105 @nextminor=$(shell expr `echo $(revision) | awk -F. '{print $$2}'` + 1); \
106 now="$(shell date -R)"; \
107 echo "Creating new changelog set for $(abi_release).$$nextminor..."; \
108 echo -e "$(src_pkg_name) ($(abi_release).$$nextminor) UNRELEASED; urgency=low\n" > $(DEBIAN)/changelog.new; \
109 echo " CHANGELOG: Do not edit directly. Autogenerated at release." >> \
110 $(DEBIAN)/changelog.new; \
111 echo " CHANGELOG: Use the printchanges target to see the curent changes." \
112 >> $(DEBIAN)/changelog.new; \
113 echo " CHANGELOG: Use the insertchanges target to create the final log." \
114 >> $(DEBIAN)/changelog.new; \
115 echo -e "\n -- $$DEBFULLNAME <$$DEBEMAIL> $$now\n" >> \
116 $(DEBIAN)/changelog.new ; \
117 cat $(DEBIAN)/changelog >> $(DEBIAN)/changelog.new; \
118 mv $(DEBIAN)/changelog.new $(DEBIAN)/changelog
119