aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2006-08-07 14:58:28 -0400
committerSam Ravnborg <sam@mars.ravnborg.org>2006-08-07 14:58:28 -0400
commit58a2f7d85aaf4c41157f15c43a913b5c3c6b3adb (patch)
tree1e7b373066c747e25086e8ce3a8789e02538dea2 /usr
parent8ccf28324c14096bef005c90a2bf5e03ffa07cc6 (diff)
kbuild: do not try to build content of initramfs
When a file supplied via CONFIG_INITRAMFS pointed to a file for which kbuild had a rule to compile it (foo.c => foo.o) then kbuild would compile the file before adding the file to the initramfs. Teach make that files included in initramfs shall not be updated by adding an 'empty command'. (See "Using Empty Commands" in info make). Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'usr')
-rw-r--r--usr/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/Makefile b/usr/Makefile
index e93824269da2..5b31c0b61c76 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -35,6 +35,9 @@ quiet_cmd_initfs = GEN $@
35 cmd_initfs = $(initramfs) -o $@ $(ramfs-args) $(ramfs-input) 35 cmd_initfs = $(initramfs) -o $@ $(ramfs-args) $(ramfs-input)
36 36
37targets := initramfs_data.cpio.gz 37targets := initramfs_data.cpio.gz
38# do not try to update files included in initramfs
39$(deps_initramfs): ;
40
38$(deps_initramfs): klibcdirs 41$(deps_initramfs): klibcdirs
39# We rebuild initramfs_data.cpio.gz if: 42# We rebuild initramfs_data.cpio.gz if:
40# 1) Any included file is newer then initramfs_data.cpio.gz 43# 1) Any included file is newer then initramfs_data.cpio.gz