Magellan Linux

Annotation of /trunk/mkinitrd-magellan/klibc/usr/utils/Kbuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (hide annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File size: 2182 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 niro 532 #
2     # Kbuild file for klib utils
3     #
4    
5     progs := chroot dd mkdir mkfifo mknod mount pivot_root umount
6     progs += true false sleep ln nuke minips cat
7     progs += insmod uname halt kill readlink cpio
8    
9     static-y := $(addprefix static/, $(progs))
10     shared-y := $(addprefix shared/, $(progs))
11    
12     # The binary is placed in a subdir, so we need to tell kbuild this
13     static/chroot-y := chroot.o
14     shared/chroot-y := chroot.o
15     static/dd-y := dd.o
16     shared/dd-y := dd.o
17     static/mkdir-y := mkdir.o file_mode.o
18     shared/mkdir-y := mkdir.o file_mode.o
19     static/mkfifo-y := mkfifo.o file_mode.o
20     shared/mkfifo-y := mkfifo.o file_mode.o
21     static/mknod-y := mknod.o file_mode.o
22     shared/mknod-y := mknod.o file_mode.o
23     static/mount-y := mount_main.o mount_opts.o
24     shared/mount-y := mount_main.o mount_opts.o
25     static/pivot_root-y := pivot_root.o
26     shared/pivot_root-y := pivot_root.o
27     static/umount-y := umount.o
28     shared/umount-y := umount.o
29     static/true-y := true.o
30     shared/true-y := true.o
31     static/false-y := false.o
32     shared/false-y := false.o
33     static/sleep-y := sleep.o
34     shared/sleep-y := sleep.o
35     static/ln-y := ln.o
36     shared/ln-y := ln.o
37     static/nuke-y := nuke.o
38     shared/nuke-y := nuke.o
39     static/minips-y := minips.o
40     shared/minips-y := minips.o
41     static/cat-y := cat.o
42     shared/cat-y := cat.o
43     static/insmod-y := insmod.o
44     shared/insmod-y := insmod.o
45     static/uname-y := uname.o
46     shared/uname-y := uname.o
47     static/halt-y := halt.o
48     shared/halt-y := halt.o
49     static/kill-y := kill.o
50     shared/kill-y := kill.o
51     static/readlink-y := readlink.o
52     shared/readlink-y := readlink.o
53     static/cpio-y := cpio.o
54     shared/cpio-y := cpio.o
55    
56     # Additionally linked targets
57     always := static/reboot static/poweroff shared/reboot shared/poweroff
58    
59     $(obj)/static/reboot $(obj)/static/poweroff: $(obj)/static/halt
60     $(call cmd,ln)
61     $(obj)/shared/reboot $(obj)/shared/poweroff: $(obj)/shared/halt
62     $(call cmd,ln)
63    
64     # Clean deletes the static and shared dir
65     clean-dirs := static shared
66    
67     # install only install the shared binaries
68     install-y := $(shared-y) shared/reboot shared/poweroff