diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | Makefile.flags | 7 |
2 files changed, 14 insertions, 5 deletions
@@ -312,6 +312,7 @@ AFLAGS_MODULE = $(MODFLAGS) | |||
312 | LDFLAGS_MODULE = -r | 312 | LDFLAGS_MODULE = -r |
313 | CFLAGS_KERNEL = | 313 | CFLAGS_KERNEL = |
314 | AFLAGS_KERNEL = | 314 | AFLAGS_KERNEL = |
315 | EXEEXT = | ||
315 | 316 | ||
316 | 317 | ||
317 | # Use LINUXINCLUDE when you must reference the include/ directory. | 318 | # Use LINUXINCLUDE when you must reference the include/ directory. |
@@ -491,6 +492,7 @@ libs-y := \ | |||
491 | sysklogd/ \ | 492 | sysklogd/ \ |
492 | util-linux/ \ | 493 | util-linux/ \ |
493 | util-linux/volume_id/ \ | 494 | util-linux/volume_id/ \ |
495 | win32/ \ | ||
494 | 496 | ||
495 | endif # KBUILD_EXTMOD | 497 | endif # KBUILD_EXTMOD |
496 | 498 | ||
@@ -529,7 +531,7 @@ endif | |||
529 | # command line. | 531 | # command line. |
530 | # This allow a user to issue only 'make' to build a kernel including modules | 532 | # This allow a user to issue only 'make' to build a kernel including modules |
531 | # Defaults busybox but it is usually overridden in the arch makefile | 533 | # Defaults busybox but it is usually overridden in the arch makefile |
532 | all: busybox doc | 534 | all: busybox$(EXEEXT) doc |
533 | 535 | ||
534 | -include $(srctree)/arch/$(ARCH)/Makefile | 536 | -include $(srctree)/arch/$(ARCH)/Makefile |
535 | 537 | ||
@@ -712,16 +714,16 @@ debug_kallsyms: .tmp_map$(last_kallsyms) | |||
712 | endif # ifdef CONFIG_KALLSYMS | 714 | endif # ifdef CONFIG_KALLSYMS |
713 | 715 | ||
714 | # busybox image - including updated kernel symbols | 716 | # busybox image - including updated kernel symbols |
715 | busybox_unstripped: $(busybox-all) FORCE | 717 | busybox_unstripped$(EXEEXT): $(busybox-all) FORCE |
716 | $(call if_changed_rule,busybox__) | 718 | $(call if_changed_rule,busybox__) |
717 | $(Q)rm -f .old_version | 719 | $(Q)rm -f .old_version |
718 | 720 | ||
719 | busybox: busybox_unstripped | 721 | busybox$(EXEEXT): busybox_unstripped$(EXEEXT) |
720 | ifeq ($(SKIP_STRIP),y) | 722 | ifeq ($(SKIP_STRIP),y) |
721 | $(Q)cp $< $@ | 723 | $(Q)cp $< $@ |
722 | else | 724 | else |
723 | $(Q)$(STRIP) -s --remove-section=.note --remove-section=.comment \ | 725 | $(Q)$(STRIP) -s --remove-section=.note --remove-section=.comment \ |
724 | busybox_unstripped -o $@ | 726 | busybox_unstripped$(EXEEXT) -o $@ |
725 | # strip is confused by PIE executable and does not set exec bits | 727 | # strip is confused by PIE executable and does not set exec bits |
726 | $(Q)chmod a+x $@ | 728 | $(Q)chmod a+x $@ |
727 | endif | 729 | endif |
@@ -957,7 +959,7 @@ endif # CONFIG_MODULES | |||
957 | 959 | ||
958 | # Directories & files removed with 'make clean' | 960 | # Directories & files removed with 'make clean' |
959 | CLEAN_DIRS += $(MODVERDIR) _install 0_lib | 961 | CLEAN_DIRS += $(MODVERDIR) _install 0_lib |
960 | CLEAN_FILES += busybox busybox_unstripped* busybox.links \ | 962 | CLEAN_FILES += busybox$(EXEEXT) busybox_unstripped* busybox.links \ |
961 | System.map .kernelrelease \ | 963 | System.map .kernelrelease \ |
962 | .tmp_kallsyms* .tmp_version .tmp_busybox* .tmp_System.map | 964 | .tmp_kallsyms* .tmp_version .tmp_busybox* .tmp_System.map |
963 | 965 | ||
diff --git a/Makefile.flags b/Makefile.flags index 307afa7f5..d9122ce94 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -115,6 +115,13 @@ CFLAGS += --sysroot=$(CONFIG_SYSROOT) | |||
115 | export SYSROOT=$(CONFIG_SYSROOT) | 115 | export SYSROOT=$(CONFIG_SYSROOT) |
116 | endif | 116 | endif |
117 | 117 | ||
118 | ifeq ($(CONFIG_PLATFORM_MINGW32),y) | ||
119 | # These defintions are not strictly needed, but they help shut up fnmatch.c warnings | ||
120 | CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy | ||
121 | EXEEXT = .exe | ||
122 | LDLIBS += userenv ws2_32 | ||
123 | endif | ||
124 | |||
118 | # Android has no separate crypt library | 125 | # Android has no separate crypt library |
119 | # gcc-4.2.1 fails if we try to feed C source on stdin: | 126 | # gcc-4.2.1 fails if we try to feed C source on stdin: |
120 | # echo 'int main(void){return 0;}' | $(CC) $(CFLAGS) -lcrypt -o /dev/null -xc - | 127 | # echo 'int main(void){return 0;}' | $(CC) $(CFLAGS) -lcrypt -o /dev/null -xc - |