Clone a tag rather than SeaBIOS stable branch HEAD
[coreboot.git] / payloads / libpayload / Makefile
index 54b4a5f159c7c2cd99c1b766e19b8598b9d7a24f..4363590a143aa15f966f2bd4103bbc74ceebe528 100644 (file)
@@ -58,7 +58,7 @@ HOSTCXX = g++
 HOSTCFLAGS := -I$(srck) -I$(objk) -pipe
 HOSTCXXFLAGS := -I$(srck) -I$(objk) -pipe
 
-DESTDIR = /opt
+DESTDIR = $(src)/install
 
 DOXYGEN := doxygen
 DOXYGEN_OUTPUT_DIR := doxygen
@@ -77,7 +77,7 @@ ARCHDIR-$(CONFIG_TARGET_POWERPC) := powerpc
 PLATFORM-y += arch/$(ARCHDIR-y)/Makefile.inc
 TARGETS-y :=
 
-BUILD-y := crypto/Makefile.inc libc/Makefile.inc drivers/Makefile.inc
+BUILD-y := crypto/Makefile.inc libc/Makefile.inc drivers/Makefile.inc libpci/Makefile.inc
 BUILD-$(CONFIG_TINYCURSES) += curses/Makefile.inc
 
 # The primary target needs to be here before we include the
@@ -145,7 +145,7 @@ prepare:
        $(Q)mkdir -p $(obj)/util/kconfig/lxdialog
        $(Q)mkdir -p $(obj)/crypto $(obj)/curses $(obj)/drivers/video
        $(Q)mkdir -p $(obj)/drivers/usb
-       $(Q)mkdir -p $(obj)/arch/$(ARCHDIR-y) $(obj)/lib/$(ARCHDIR-y) $(obj)/libc 
+       $(Q)mkdir -p $(obj)/arch/$(ARCHDIR-y) $(obj)/lib/$(ARCHDIR-y) $(obj)/libc $(obj)/libpci
        $(Q)mkdir -p $(obj)/lib/$(ARCHDIR-y)
        $(Q)mkdir -p $(obj)/include
 
@@ -159,11 +159,11 @@ doxygen-clean:
 
 clean: doxygen-clean
        $(Q)rm -rf $(obj)/crypto $(obj)/curses $(obj)/drivers
-       $(Q)rm -rf $(obj)/i386 $(obj)/powerpc $(obj)/lib $(obj)/libc 
+       $(Q)rm -rf $(obj)/i386 $(obj)/powerpc $(obj)/lib $(obj)/libc
 
 distclean: clean
        $(Q)rm -rf build # should be $(obj) ?
-       $(Q)rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig*
+       $(Q)rm -f .config .config.old .xcompile ..config.tmp .kconfig.d .tmpconfig*
 
 # This include must come _before_ the pattern rules below!
 # Order _does_ matter for pattern rules.
@@ -182,5 +182,5 @@ $(obj)/%.S.o: $(src)/%.S
 
 endif
 
-.PHONY: $(PHONY) prepare clean distclean doxygen doxy
+.PHONY: $(PHONY) prepare install clean distclean doxygen doxy