Commit 773433433791b9420c2a0f86b93c91d4115d89b5
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull misc kbuild changes from Michal Marek: "Just a few non-critical kbuild changes: - builddeb adds the actual distribution name in the changelog - documentation fixes" * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild: kbuild: trivial - fix the help doc of CONFIG_CC_OPTIMIZE_FOR_SIZE kbuild: Update documentation of clean-files and clean-dirs builddeb: Try to determine distribution builddeb: Update year and git repository URL in debian/copyright
Showing 3 changed files Side-by-side Diff
Documentation/kbuild/makefiles.txt
... | ... | @@ -752,12 +752,12 @@ |
752 | 752 | Additional files can be specified in kbuild makefiles by use of $(clean-files). |
753 | 753 | |
754 | 754 | Example: |
755 | - #drivers/pci/Makefile | |
756 | - clean-files := devlist.h classlist.h | |
755 | + #lib/Makefile | |
756 | + clean-files := crc32table.h | |
757 | 757 | |
758 | 758 | When executing "make clean", the two files "devlist.h classlist.h" will be |
759 | 759 | deleted. Kbuild will assume files to be in the same relative directory as the |
760 | -Makefile except if an absolute path is specified (path starting with '/'). | |
760 | +Makefile, except if prefixed with $(objtree). | |
761 | 761 | |
762 | 762 | To delete a directory hierarchy use: |
763 | 763 | |
... | ... | @@ -765,9 +765,8 @@ |
765 | 765 | #scripts/package/Makefile |
766 | 766 | clean-dirs := $(objtree)/debian/ |
767 | 767 | |
768 | -This will delete the directory debian, including all subdirectories. | |
769 | -Kbuild will assume the directories to be in the same relative path as the | |
770 | -Makefile if no absolute path is specified (path does not start with '/'). | |
768 | +This will delete the directory debian in the toplevel directory, including all | |
769 | +subdirectories. | |
771 | 770 | |
772 | 771 | To exclude certain files from make clean, use the $(no-clean-files) variable. |
773 | 772 | This is only a special case used in the top level Kbuild file: |
init/Kconfig
... | ... | @@ -1290,8 +1290,8 @@ |
1290 | 1290 | config CC_OPTIMIZE_FOR_SIZE |
1291 | 1291 | bool "Optimize for size" |
1292 | 1292 | help |
1293 | - Enabling this option will pass "-Os" instead of "-O2" to gcc | |
1294 | - resulting in a smaller kernel. | |
1293 | + Enabling this option will pass "-Os" instead of "-O2" to | |
1294 | + your compiler resulting in a smaller kernel. | |
1295 | 1295 | |
1296 | 1296 | If unsure, say N. |
1297 | 1297 |
scripts/package/builddeb
... | ... | @@ -217,9 +217,20 @@ |
217 | 217 | fi |
218 | 218 | maintainer="$name <$email>" |
219 | 219 | |
220 | +# Try to determine distribution | |
221 | +if [ -n "$KDEB_CHANGELOG_DIST" ]; then | |
222 | + distribution=$KDEB_CHANGELOG_DIST | |
223 | +elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n "$distribution" ]; then | |
224 | + : # nothing to do in this case | |
225 | +else | |
226 | + distribution="unstable" | |
227 | + echo >&2 "Using default distribution of 'unstable' in the changelog" | |
228 | + echo >&2 "Install lsb-release or set \$KDEB_CHANGELOG_DIST explicitly" | |
229 | +fi | |
230 | + | |
220 | 231 | # Generate a simple changelog template |
221 | 232 | cat <<EOF > debian/changelog |
222 | -linux-upstream ($packageversion) unstable; urgency=low | |
233 | +linux-upstream ($packageversion) $distribution; urgency=low | |
223 | 234 | |
224 | 235 | * Custom built Linux kernel. |
225 | 236 | |
226 | 237 | |
... | ... | @@ -233,10 +244,10 @@ |
233 | 244 | The sources may be found at most Linux ftp sites, including: |
234 | 245 | ftp://ftp.kernel.org/pub/linux/kernel |
235 | 246 | |
236 | -Copyright: 1991 - 2009 Linus Torvalds and others. | |
247 | +Copyright: 1991 - 2015 Linus Torvalds and others. | |
237 | 248 | |
238 | 249 | The git repository for mainline kernel development is at: |
239 | -git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git | |
250 | +git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git | |
240 | 251 | |
241 | 252 | This program is free software; you can redistribute it and/or modify |
242 | 253 | it under the terms of the GNU General Public License as published by |