]> xenbits.xensource.com Git - people/pauldu/mini-os.git/commit
build: prepend OBJ_DIR to linker script
authorWei Liu <wei.liu2@citrix.com>
Tue, 13 Dec 2016 15:02:02 +0000 (15:02 +0000)
committerWei Liu <wei.liu2@citrix.com>
Wed, 14 Dec 2016 14:38:35 +0000 (14:38 +0000)
commit1e8e464febb32428c7651b0b585866e5ee5f786e
treebdec8e5b25e3dd4fb9fd67430113fdb678579a50
parent1166742871c3d5731717ef6c8420bd3617ef6907
build: prepend OBJ_DIR to linker script

After 5623e2d2 ("x86: use unified linker script") the linker script for
x86 build is generated. But the special rule to generate linker script
doesn't have OBJ_DIR prepended so in parallel build the same file is
written multiple times. This is racy and would cause parallel build to
fail.

Fix this by prepending OBJ_DIR to the path of linker script. Change
other variables where necessary.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Makefile