diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2009-04-22 22:03:40 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2009-04-23 04:44:33 +1000 |
commit | d791e72dc28009f36da26703fc007e40cfa79414 (patch) | |
tree | 3564d4897dbc688a4d736faf04a613b488214612 | |
parent | 943f901342dc85741b1a7e84758c0f50a964c68d (diff) | |
download | busybox-w32-d791e72dc28009f36da26703fc007e40cfa79414.tar.gz busybox-w32-d791e72dc28009f36da26703fc007e40cfa79414.tar.bz2 busybox-w32-d791e72dc28009f36da26703fc007e40cfa79414.zip |
Kbuild/Config.in: add CONFIG_MINGW and imported files to build system
-rw-r--r-- | Config.in | 5 | ||||
-rw-r--r-- | libbb/Kbuild | 51 | ||||
-rw-r--r-- | libpwdgrp/Kbuild | 2 |
3 files changed, 41 insertions, 17 deletions
@@ -37,6 +37,11 @@ config DESKTOP | |||
37 | Select this only if you plan to use busybox on full-blown | 37 | Select this only if you plan to use busybox on full-blown |
38 | desktop machine with common Linux distro, not on an embedded box. | 38 | desktop machine with common Linux distro, not on an embedded box. |
39 | 39 | ||
40 | config MINGW32 | ||
41 | bool "Enable Windows native port" | ||
42 | default n | ||
43 | help | ||
44 | Enable MinGW port | ||
40 | choice | 45 | choice |
41 | prompt "Buffer allocation policy" | 46 | prompt "Buffer allocation policy" |
42 | default FEATURE_BUFFERS_USE_MALLOC | 47 | default FEATURE_BUFFERS_USE_MALLOC |
diff --git a/libbb/Kbuild b/libbb/Kbuild index e562f3222..4c8f542fc 100644 --- a/libbb/Kbuild +++ b/libbb/Kbuild | |||
@@ -6,12 +6,29 @@ | |||
6 | 6 | ||
7 | lib-y:= | 7 | lib-y:= |
8 | 8 | ||
9 | lib-y += ask_confirmation.o | 9 | ifndef CONFIG_MINGW32 |
10 | lib-y += bb_askpass.o | 10 | lib-y += bb_askpass.o |
11 | lib-y += bb_do_delay.o | ||
12 | lib-y += bb_pwd.o | 11 | lib-y += bb_pwd.o |
13 | lib-y += bb_strtonum.o | ||
14 | lib-y += change_identity.o | 12 | lib-y += change_identity.o |
13 | lib-y += create_icmp6_socket.o | ||
14 | lib-y += create_icmp_socket.o | ||
15 | lib-y += device_open.o | ||
16 | lib-y += inet_common.o | ||
17 | lib-y += kernel_version.o | ||
18 | lib-y += login.o | ||
19 | lib-y += makedev.o | ||
20 | lib-y += match_fstype.o | ||
21 | lib-y += setup_environment.o | ||
22 | lib-y += speed_table.o | ||
23 | lib-y += vfork_daemon_rexec.o | ||
24 | lib-y += vinfo_msg.o | ||
25 | lib-y += xconnect.o | ||
26 | lib-y += xgethostbyname.o | ||
27 | endif | ||
28 | |||
29 | lib-y += ask_confirmation.o | ||
30 | lib-y += bb_do_delay.o | ||
31 | lib-y += bb_strtonum.o | ||
15 | lib-y += chomp.o | 32 | lib-y += chomp.o |
16 | lib-y += compare_string_array.o | 33 | lib-y += compare_string_array.o |
17 | lib-y += concat_path_file.o | 34 | lib-y += concat_path_file.o |
@@ -19,10 +36,7 @@ lib-y += concat_subpath_file.o | |||
19 | lib-y += copy_file.o | 36 | lib-y += copy_file.o |
20 | lib-y += copyfd.o | 37 | lib-y += copyfd.o |
21 | lib-y += crc32.o | 38 | lib-y += crc32.o |
22 | lib-y += create_icmp6_socket.o | ||
23 | lib-y += create_icmp_socket.o | ||
24 | lib-y += default_error_retval.o | 39 | lib-y += default_error_retval.o |
25 | lib-y += device_open.o | ||
26 | lib-y += dump.o | 40 | lib-y += dump.o |
27 | lib-y += error_msg.o | 41 | lib-y += error_msg.o |
28 | lib-y += error_msg_and_die.o | 42 | lib-y += error_msg_and_die.o |
@@ -40,18 +54,13 @@ lib-y += getopt32.o | |||
40 | lib-y += herror_msg.o | 54 | lib-y += herror_msg.o |
41 | lib-y += herror_msg_and_die.o | 55 | lib-y += herror_msg_and_die.o |
42 | lib-y += human_readable.o | 56 | lib-y += human_readable.o |
43 | lib-y += inet_common.o | ||
44 | lib-y += info_msg.o | 57 | lib-y += info_msg.o |
45 | lib-y += inode_hash.o | 58 | lib-y += inode_hash.o |
46 | lib-y += isdirectory.o | 59 | lib-y += isdirectory.o |
47 | lib-y += kernel_version.o | ||
48 | lib-y += last_char_is.o | 60 | lib-y += last_char_is.o |
49 | lib-y += lineedit.o | 61 | lib-y += lineedit.o |
50 | lib-y += llist.o | 62 | lib-y += llist.o |
51 | lib-y += login.o | ||
52 | lib-y += make_directory.o | 63 | lib-y += make_directory.o |
53 | lib-y += makedev.o | ||
54 | lib-y += match_fstype.o | ||
55 | lib-y += md5.o | 64 | lib-y += md5.o |
56 | lib-y += messages.o | 65 | lib-y += messages.o |
57 | lib-y += mode_string.o | 66 | lib-y += mode_string.o |
@@ -72,11 +81,9 @@ lib-y += restricted_shell.o | |||
72 | lib-y += run_shell.o | 81 | lib-y += run_shell.o |
73 | lib-y += safe_strncpy.o | 82 | lib-y += safe_strncpy.o |
74 | lib-y += safe_write.o | 83 | lib-y += safe_write.o |
75 | lib-y += setup_environment.o | ||
76 | lib-y += sha1.o | 84 | lib-y += sha1.o |
77 | lib-y += simplify_path.o | 85 | lib-y += simplify_path.o |
78 | lib-y += skip_whitespace.o | 86 | lib-y += skip_whitespace.o |
79 | lib-y += speed_table.o | ||
80 | lib-y += str_tolower.o | 87 | lib-y += str_tolower.o |
81 | lib-y += trim.o | 88 | lib-y += trim.o |
82 | lib-y += u_signal_names.o | 89 | lib-y += u_signal_names.o |
@@ -84,18 +91,14 @@ lib-y += udp_io.o | |||
84 | lib-y += uuencode.o | 91 | lib-y += uuencode.o |
85 | lib-y += vdprintf.o | 92 | lib-y += vdprintf.o |
86 | lib-y += verror_msg.o | 93 | lib-y += verror_msg.o |
87 | lib-y += vfork_daemon_rexec.o | ||
88 | lib-y += vherror_msg.o | 94 | lib-y += vherror_msg.o |
89 | lib-y += vinfo_msg.o | ||
90 | lib-y += vperror_msg.o | 95 | lib-y += vperror_msg.o |
91 | lib-y += warn_ignoring_args.o | 96 | lib-y += warn_ignoring_args.o |
92 | lib-y += wfopen.o | 97 | lib-y += wfopen.o |
93 | lib-y += wfopen_input.o | 98 | lib-y += wfopen_input.o |
94 | lib-y += xatonum.o | 99 | lib-y += xatonum.o |
95 | lib-y += xconnect.o | ||
96 | lib-y += xfuncs.o | 100 | lib-y += xfuncs.o |
97 | lib-y += xgetcwd.o | 101 | lib-y += xgetcwd.o |
98 | lib-y += xgethostbyname.o | ||
99 | lib-y += xreadlink.o | 102 | lib-y += xreadlink.o |
100 | 103 | ||
101 | # conditionally compiled objects: | 104 | # conditionally compiled objects: |
@@ -124,3 +127,17 @@ lib-$(CONFIG_EXPR) += xregcomp.o | |||
124 | lib-$(CONFIG_MDEV) += xregcomp.o | 127 | lib-$(CONFIG_MDEV) += xregcomp.o |
125 | lib-$(CONFIG_LESS) += xregcomp.o | 128 | lib-$(CONFIG_LESS) += xregcomp.o |
126 | lib-$(CONFIG_DEVFSD) += xregcomp.o | 129 | lib-$(CONFIG_DEVFSD) += xregcomp.o |
130 | |||
131 | lib-$(CONFIG_MINGW32) += git.o | ||
132 | lib-$(CONFIG_MINGW32) += fnmatch.o | ||
133 | lib-$(CONFIG_MINGW32) += mingw.o | ||
134 | lib-$(CONFIG_MINGW32) += quote.o | ||
135 | lib-$(CONFIG_MINGW32) += regex.o | ||
136 | lib-$(CONFIG_MINGW32) += run-command.o | ||
137 | lib-$(CONFIG_MINGW32) += setenv.o | ||
138 | lib-$(CONFIG_MINGW32) += strbuf.o | ||
139 | lib-$(CONFIG_MINGW32) += strlcpy.o | ||
140 | lib-$(CONFIG_MINGW32) += trace.o | ||
141 | lib-$(CONFIG_MINGW32) += usage.o | ||
142 | lib-$(CONFIG_MINGW32) += winansi.o | ||
143 | lib-$(CONFIG_MINGW32) += write_or_die.o | ||
diff --git a/libpwdgrp/Kbuild b/libpwdgrp/Kbuild index f9f1ddbf3..1fbdfcab5 100644 --- a/libpwdgrp/Kbuild +++ b/libpwdgrp/Kbuild | |||
@@ -4,6 +4,8 @@ | |||
4 | # | 4 | # |
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | 5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. |
6 | 6 | ||
7 | ifndef CONFIG_MINGW32 | ||
7 | lib-y := uidgid_get.o | 8 | lib-y := uidgid_get.o |
9 | endif | ||
8 | 10 | ||
9 | lib-$(CONFIG_USE_BB_PWD_GRP) += pwd_grp.o | 11 | lib-$(CONFIG_USE_BB_PWD_GRP) += pwd_grp.o |