summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2011-01-26 21:14:59 -0500
committerKevin O'Connor <kevin@koconnor.net>2011-01-29 09:44:10 -0500
commit0da7bfdf21b2bbbfd74178f2943cd4efc9f995c5 (patch)
tree133875f2230b00e890ee49aebaf8ddc9cfa26035 /Makefile
parenta4c5daf0e2545361fadcad3015e10f8b23e53926 (diff)
Build changes for Linux kconfig code to work in seabios dir structure.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 384bf79..c7dfc0b 100644
--- a/Makefile
+++ b/Makefile
@@ -54,13 +54,14 @@ ifdef V
Q=
else
Q=@
+MAKEFLAGS += --no-print-directory
endif
OBJCOPY=objcopy
OBJDUMP=objdump
STRIP=strip
-.PHONY : all FORCE
+.PHONY : all clean distclean FORCE
vpath %.c src vgasrc
vpath %.S src vgasrc
@@ -193,10 +194,24 @@ src/%.hex: src/%.dsl
$(OUT)ccode32flat.o: src/acpi-dsdt.hex
+####### Kconfig rules
+export HOSTCC := $(CC)
+export CONFIG_SHELL := sh
+export KCONFIG_AUTOHEADER := autoconf.h
+export KCONFIG_CONFIG := $(CURDIR)/.config
+
+%onfig:
+ $(Q)mkdir -p $(OUT)/tools/kconfig/lxdialog
+ $(Q)mkdir -p $(OUT)/include/config
+ $(Q)$(MAKE) -C $(OUT) -f $(CURDIR)/tools/kconfig/Makefile srctree=$(CURDIR) src=tools/kconfig obj=tools/kconfig Q=$(Q) Kconfig=$(CURDIR)/src/Kconfig $@
+
####### Generic rules
clean:
$(Q)rm -rf $(OUT)
+distclean: clean
+ $(Q)rm -f .config .config.old
+
$(OUT):
$(Q)mkdir $@