<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/scripts/mkmakefile, branch v3.16</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/scripts/mkmakefile?h=v3.16</id>
<link rel='self' href='https://git.amat.us/linux/atom/scripts/mkmakefile?h=v3.16'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2014-04-30T14:45:16Z</updated>
<entry>
<title>kbuild: support simultaneous "make %config" and "make all"</title>
<updated>2014-04-30T14:45:16Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.m@jp.panasonic.com</email>
</author>
<published>2014-04-09T06:51:35Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9319f4539c18ada539d37a1b4398c636b877c027'/>
<id>urn:sha1:9319f4539c18ada539d37a1b4398c636b877c027</id>
<content type='text'>
Kbuild is supposed to support mixed targets. (%config and build targets)

But "make all" did nothing if it was run with configuration targets.
For example,

  $ LANG=C make defconfig all
    HOSTCC  scripts/basic/fixdep
    HOSTCC  scripts/kconfig/conf.o
    SHIPPED scripts/kconfig/zconf.tab.c
    SHIPPED scripts/kconfig/zconf.lex.c
    SHIPPED scripts/kconfig/zconf.hash.c
    HOSTCC  scripts/kconfig/zconf.tab.o
    HOSTLD  scripts/kconfig/conf
  *** Default configuration is based on 'x86_64_defconfig'
  #
  # configuration written to .config
  #
  make: Nothing to be done for `all'.

This commits allows "make %config all" and makes sure
mixed targets are built one by one in the given order.

Signed-off-by: Masahiro Yamada &lt;yamada.m@jp.panasonic.com&gt;
Cc: Michal Marek &lt;mmarek@suse.cz&gt;
CC: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>kbuild: silence generated makefile message</title>
<updated>2011-07-20T15:08:08Z</updated>
<author>
<name>Peter Foley</name>
<email>pefoley2@verizon.net</email>
</author>
<published>2011-07-04T22:55:23Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0ff35771fc7a96a2244f38573b6d56199ec75056'/>
<id>urn:sha1:0ff35771fc7a96a2244f38573b6d56199ec75056</id>
<content type='text'>
This patch silences the "make -C /usr/src/git O=/usr/src/git/build/."
message shown when using the generated makefile in KBUILD_OUTDIR.

Signed-off-by: Peter Foley &lt;pefoley2@verizon.net&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>fixes for using make 3.82</title>
<updated>2010-08-17T09:47:40Z</updated>
<author>
<name>Jan Beulich</name>
<email>JBeulich@novell.com</email>
</author>
<published>2010-08-16T10:58:58Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3c955b407a084810f57260d61548cc92c14bc627'/>
<id>urn:sha1:3c955b407a084810f57260d61548cc92c14bc627</id>
<content type='text'>
It doesn't like pattern and explicit rules to be on the same line,
and it seems to be more picky when matching file (or really directory)
names with different numbers of trailing slashes.

Signed-off-by: Jan Beulich &lt;jbeulich@novell.com&gt;
Acked-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Andrew Benton &lt;b3nton@gmail.com&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>kbuild: teach mkmakfile to be silent</title>
<updated>2008-12-03T20:32:02Z</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@ravnborg.org</email>
</author>
<published>2008-11-21T22:00:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d2301249e2f9b9a3ba989703107192b538209e57'/>
<id>urn:sha1:d2301249e2f9b9a3ba989703107192b538209e57</id>
<content type='text'>
With this fix a "make -s" is now really silent

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: scripts/mkmakefile: dynamic determination of output directory</title>
<updated>2008-01-28T22:14:38Z</updated>
<author>
<name>Jan Beulich</name>
<email>jbeulich@novell.com</email>
</author>
<published>2008-01-11T09:09:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=1d3b3bfab121cdef07d19797f42f413dccdd65f0'/>
<id>urn:sha1:1d3b3bfab121cdef07d19797f42f413dccdd65f0</id>
<content type='text'>
Rather than fixing the output directory in the generated Makefile,
determine it from the placement of Makefile. This allows moving
the build tree around or accessing it through different mount paths.

(The lastword definition is a compatibility one for make prior to 3.81;
newer make will simply ignore it and use the [faster] built-in.)

Signed-off-by: Jan Beulich &lt;jbeulich@novell.com&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: re-enable Makefile generation in a new O=... directory</title>
<updated>2007-12-13T18:19:20Z</updated>
<author>
<name>Guillaume Chazarain</name>
<email>guichaz@yahoo.fr</email>
</author>
<published>2007-12-11T12:22:08Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=971edcfc8bee41c0b41e21bf10751c5b22028a82'/>
<id>urn:sha1:971edcfc8bee41c0b41e21bf10751c5b22028a82</id>
<content type='text'>
The commit:
18c32dac75b187d1a4e858f3cfdf03e844129f5e "kbuild: fix
building with O=.. options"
disabled the creation of a Makefile in a new O=... directory. Restore it.

Signed-off-by: Guillaume Chazarain &lt;guichaz@yahoo.fr&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: fix building with O=.. options</title>
<updated>2007-12-09T07:55:13Z</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@saturn.ravnborg.org</email>
</author>
<published>2007-12-09T07:55:13Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=18c32dac75b187d1a4e858f3cfdf03e844129f5e'/>
<id>urn:sha1:18c32dac75b187d1a4e858f3cfdf03e844129f5e</id>
<content type='text'>
The check introduced in commit:
4f1127e204377cbd2a56d112d323466f668e8334 "kbuild: fix
infinite make recursion"

caused certain external modules not to build and
also caused 'make targz-pkg' to fail.
This is a minimal fix so we revert to previous
behaviour - but we do not overwrite the Makefile
in the top-level directory.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Tested-by: Jay Cliburn &lt;jacliburn@bellsouth.net&gt;
Cc: Jay Cliburn &lt;jacliburn@bellsouth.net&gt;
</content>
</entry>
<entry>
<title>kbuild: call make once for all targets when O=.. is used</title>
<updated>2007-10-12T19:20:32Z</updated>
<author>
<name>Milton Miller</name>
<email>miltonm@bga.com</email>
</author>
<published>2007-09-21T23:09:02Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0b35786d77ba4037f181982cc8ca20a7a3bf0fd2'/>
<id>urn:sha1:0b35786d77ba4037f181982cc8ca20a7a3bf0fd2</id>
<content type='text'>
Change the invocations of make in the output directory Makefile and the
main Makefile for separate object trees to pass all goals to one $(MAKE)
via a new phony target "sub-make" and the existing target _all.

When compiling with separate object directories, a separate make is called
in the context of another directory (from the output directory the main
Makefile is called, the Makefile is then restarted with current directory
set to the object tree).  Before this patch, when multiple make command
goals are specified, each target results in a separate make invocation.
With make -j, these invocations may run in parallel, resulting in multiple
commands running in the same directory clobbering each others results.

I did not try to address make -j for mixed dot-config and no-dot-config
targets.  Because the order does matter, a solution was not obvious.
Perhaps a simple check for MAKEFLAGS having -j and refusing to run would
be appropriate.

Signed-off-by: Milton Miller &lt;miltonm@bga.com&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: Do not overwrite makefile as anohter user</title>
<updated>2006-05-08T04:55:32Z</updated>
<author>
<name>Jan Beulich</name>
<email>jbeulich@novell.com</email>
</author>
<published>2006-05-02T10:33:20Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=fd5f0cd6b0cef59ba18e5ac13be5b2775fa6ec28'/>
<id>urn:sha1:fd5f0cd6b0cef59ba18e5ac13be5b2775fa6ec28</id>
<content type='text'>
Change the conditional of the outputmakefile rule to be evaluated entirely
in make, and add a conditional to not touch the generated makefile when e.g.
running 'make install' as root while the build was done as non-root. Also
adjust the comment describing this, and move the message printing and
redirection to mkmakefile.

Signed-off-by: Jan Beulich &lt;jbeulich@novell.com&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: fix mkmakefile</title>
<updated>2006-02-19T08:51:21Z</updated>
<author>
<name>Jan Beulich</name>
<email>jbeulich@novell.com</email>
</author>
<published>2006-01-30T09:05:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=96678281bfaa5f04752a98f9b93454041169fd3b'/>
<id>urn:sha1:96678281bfaa5f04752a98f9b93454041169fd3b</id>
<content type='text'>
With the current way of generating the Makefile in the output directory
for builds outside of the source tree, specifying real targets (rather
than phony ones) doesn't work in an already (partially) built tree, as
the stub Makefile doesn't have any dependency information available.
Thus, all targets where files may actually exist must be listed
explicitly and, due to what I'd call a make misbehavior, directory
targets must then also be special cased.

Signed-Off-By: Jan Beulich &lt;jbeulich@novell.com&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
</feed>
