build the superiotool, which requires a hack on the pciutils lib/types.h file

This commit is contained in:
Trammell hudson 2018-03-02 09:37:31 -05:00
parent 149635ef95
commit d9808f6659
No known key found for this signature in database
GPG Key ID: 687A5005935B1533
2 changed files with 26 additions and 13 deletions

View File

@ -356,24 +356,25 @@ $(initrd_bin_dir)/busybox: $(build)/$(busybox_dir)/busybox
# this must be built *AFTER* musl, but since coreboot depends on other things # this must be built *AFTER* musl, but since coreboot depends on other things
# that depend on musl it should be ok. # that depend on musl it should be ok.
# #
COREBOOT_UTIL_DIR=$(build)/$(coreboot_dir)/util
ifeq ($(CONFIG_COREBOOT),y) ifeq ($(CONFIG_COREBOOT),y)
$(eval $(call initrd_bin_add,$(build)/$(coreboot_dir)/util/cbmem/cbmem)) $(eval $(call initrd_bin_add,$(COREBOOT_UTIL_DIR)/cbmem/cbmem))
#$(eval $(call initrd_bin_add,$(build)/$(coreboot_dir)/util/inteltool/inteltool)) $(eval $(call initrd_bin_add,$(COREBOOT_UTIL_DIR)/superiotool/superiotool))
#$(eval $(call initrd_bin_add,$(COREBOOT_UTIL_DIR)/inteltool/inteltool))
endif endif
$(build)/$(coreboot_dir)/util/cbmem/cbmem: \ $(COREBOOT_UTIL_DIR)/cbmem/cbmem \
$(build)/$(coreboot_dir)/.canary \ $(COREBOOT_UTIL_DIR)/superiotool/superiotool \
musl.intermediate $(COREBOOT_UTIL_DIR)/inteltool/inteltool \
$(call do,MAKE,cbmem,\ : $(build)/$(coreboot_dir)/.canary \
$(MAKE) -C "$(dir $@)" CC="$(heads_cc)" \ musl.intermediate
) $(call do,MAKE,$(notdir $@),\
$(build)/$(coreboot_dir)/util/inteltool/inteltool: \ $(MAKE) -C "$(dir $@)" $(CROSS_TOOLS) \
$(build)/$(coreboot_dir)/.canary \
musl.intermediate
$(call do,MAKE,inteltool,\
$(MAKE) -C "$(dir $@)" CC="$(heads_cc)" \
) )
# superio depends on zlib and pciutils
$(COREBOOT_UTIL_DIR)/superiotool/superiotool: zlib.intermediate pciutils.intermediate
# #
# initrd image creation # initrd image creation
# #

View File

@ -0,0 +1,12 @@
diff -u --recursive clean/pciutils-3.5.4/lib/types.h pciutils-3.5.4/lib/types.h
--- clean/pciutils-3.5.4/lib/types.h 2017-02-24 15:22:04.000000000 -0500
+++ pciutils-3.5.4/lib/types.h 2018-03-02 09:31:29.115000000 -0500
@@ -8,6 +8,8 @@
#include <sys/types.h>
+#define PCI_HAVE_STDINT_H
+
#ifndef PCI_HAVE_Uxx_TYPES
#ifdef PCI_OS_WINDOWS