Searched +full:libfdt +full:- +full:dev (Results 1 – 6 of 6) sorted by relevance
/kvm-unit-tests/ |
H A D | Makefile | 4 $(error run ./configure first. See ./configure -h) 14 libdirs-get = $(shell [ -d "lib/$(1)" ] && echo "lib/$(1) lib/$(1)/asm") 15 ARCH_LIBDIRS := $(call libdirs-get,$(ARCH_LIBDIR)) $(call libdirs-get,$(TEST_DIR)) 18 DESTDIR := $(PREFIX)/share/kvm-unit-tests/ 22 # cc-option 23 # Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0) 24 cc-option = $(shell if $(CC) $(CFLAGS) -Werror $(1) -S -o /dev/null -xc /dev/null \ 25 > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) 37 # libfdt paths 38 LIBFDT_objdir = lib/libfdt [all …]
|
H A D | configure | 3 if [ -z "${BASH_VERSINFO[0]}" ] || [ "${BASH_VERSINFO[0]}" -lt 4 ] ; then 4 echo "Error: Bash version 4 or newer is required for the kvm-unit-tests" 15 echo "cortex-a15" 18 echo "cortex-a57" 33 echo "cortex-a15" 51 arch=$(uname -m | sed -e 's/i.86/i386/;s/arm64/aarch64/;s/arm.*/arm/;s/ppc64.*/ppc64/') 72 # Enable -Werror by default for git repositories only (i.e. developer builds) 73 if [ -e "$srcdir"/.git ]; then 74 werror=-Werror 81 [ -z "$processor" ] && processor=$(get_default_processor $arch) [all …]
|
/kvm-unit-tests/lib/ |
H A D | devicetree.h | 4 * devicetree builds on libfdt to implement abstractions and accessors 7 * Documentation/devicetree/booting-without-of.txt 14 #include "libfdt/libfdt.h" 17 * devicetree init and libfdt helpers 32 s != -FDT_ERR_NOTFOUND; \ 52 * match a device @dev to an fdt node @fdtnode 54 * - a positive value on match 55 * - zero on no match 56 * - a negative FDT_ERR_* value on failure 58 int (*match)(const struct dt_device *dev, int fdtnode); [all …]
|
H A D | devicetree.c | 7 #include "libfdt/libfdt.h" 28 prop = fdt_get_property(fdt, fdtnode, "#address-cells", &len); in dt_get_nr_cells() 32 nr_cells = (u32 *)prop->data; in dt_get_nr_cells() 35 prop = fdt_get_property(fdt, fdtnode, "#size-cells", &len); in dt_get_nr_cells() 39 nr_cells = (u32 *)prop->data; in dt_get_nr_cells() 51 reg->nr_address_cells = nr_address_cells; in dt_reg_init() 52 reg->nr_size_cells = nr_size_cells; in dt_reg_init() 66 cells = (u32 *)prop->data; in dt_get_reg() 67 nr_tuple_cells = reg->nr_address_cells + reg->nr_size_cells; in dt_get_reg() 71 return -FDT_ERR_NOTFOUND; in dt_get_reg() [all …]
|
/kvm-unit-tests/powerpc/ |
H A D | Makefile.common | 7 tests-common = \ 9 $(TEST_DIR)/selftest-migration.elf \ 10 $(TEST_DIR)/memory-verify.elf \ 23 tests-all = $(tests-common) $(tests) 24 all: directories $(TEST_DIR)/boot_rom.bin $(tests-all) 28 mabi_no_altivec := $(call cc-option,-mabi=no-altivec,"") 30 CFLAGS += -std=gnu99 31 CFLAGS += -ffreestanding 32 CFLAGS += -O2 -msoft-float -mno-altivec $(mabi_no_altivec) 33 CFLAGS += -I $(SRCDIR)/lib -I $(SRCDIR)/lib/libfdt -I lib [all …]
|
/kvm-unit-tests/riscv/ |
H A D | Makefile | 17 tests += $(TEST_DIR)/isa-dbltrp.$(exe) 21 $(TEST_DIR)/sbi-deps += $(TEST_DIR)/sbi-asm.o 22 $(TEST_DIR)/sbi-deps += $(TEST_DIR)/sbi-dbtr.o 23 $(TEST_DIR)/sbi-deps += $(TEST_DIR)/sbi-fwft.o 24 $(TEST_DIR)/sbi-deps += $(TEST_DIR)/sbi-sse.o 26 all_deps += $($(TEST_DIR)/sbi-deps) 28 # When built for EFI sieve needs extra memory, run with e.g. '-m 256' on QEMU 38 cflatobjs += lib/on-cpus.o 52 cflatobjs += lib/riscv/sbi-sse-asm.o 71 $(if $(shell ! $(READELF) -rW $(1) >&/dev/null && echo "nok"), [all …]
|