summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile12
-rw-r--r--Makefile.flags7
2 files changed, 14 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b487f0457..a64b0c926 100644
--- a/Makefile
+++ b/Makefile
@@ -312,6 +312,7 @@ AFLAGS_MODULE = $(MODFLAGS)
312LDFLAGS_MODULE = -r 312LDFLAGS_MODULE = -r
313CFLAGS_KERNEL = 313CFLAGS_KERNEL =
314AFLAGS_KERNEL = 314AFLAGS_KERNEL =
315EXEEXT =
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
495endif # KBUILD_EXTMOD 497endif # 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
532all: busybox doc 534all: 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)
712endif # ifdef CONFIG_KALLSYMS 714endif # ifdef CONFIG_KALLSYMS
713 715
714# busybox image - including updated kernel symbols 716# busybox image - including updated kernel symbols
715busybox_unstripped: $(busybox-all) FORCE 717busybox_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
719busybox: busybox_unstripped 721busybox$(EXEEXT): busybox_unstripped$(EXEEXT)
720ifeq ($(SKIP_STRIP),y) 722ifeq ($(SKIP_STRIP),y)
721 $(Q)cp $< $@ 723 $(Q)cp $< $@
722else 724else
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 $@
727endif 729endif
@@ -957,7 +959,7 @@ endif # CONFIG_MODULES
957 959
958# Directories & files removed with 'make clean' 960# Directories & files removed with 'make clean'
959CLEAN_DIRS += $(MODVERDIR) _install 0_lib 961CLEAN_DIRS += $(MODVERDIR) _install 0_lib
960CLEAN_FILES += busybox busybox_unstripped* busybox.links \ 962CLEAN_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)
115export SYSROOT=$(CONFIG_SYSROOT) 115export SYSROOT=$(CONFIG_SYSROOT)
116endif 116endif
117 117
118ifeq ($(CONFIG_PLATFORM_MINGW32),y)
119# These defintions are not strictly needed, but they help shut up fnmatch.c warnings
120CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy
121EXEEXT = .exe
122LDLIBS += userenv ws2_32
123endif
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 -