Remove Makefile
authorWendy Liang <jliang@xilinx.com>
Mon, 11 Jan 2016 09:13:14 +0000 (01:13 -0800)
committerWendy Liang <jliang@xilinx.com>
Tue, 9 Feb 2016 19:55:46 +0000 (11:55 -0800)
Since the compilation has been moved to use CMake, remove
Makefiles

Signed-off-by: Wendy Liang <jliang@xilinx.com>
21 files changed:
Makefile [deleted file]
apps/Makefile [deleted file]
apps/Makefile.common [deleted file]
apps/echo_test/Makefile [deleted file]
apps/func_test_suite/Makefile [deleted file]
apps/linux_firmware_remoteproc_slave/Makefile [deleted file]
apps/machine/zynq7/Makefile.include [deleted file]
apps/machine/zynqmp_r5/Makefile.include [deleted file]
apps/matrix_multiply/Makefile [deleted file]
apps/rpc_demo/Makefile [deleted file]
apps/system/generic/machine/zynq7/Makefile.include [deleted file]
apps/system/generic/machine/zynqmp_r5/Makefile.include [deleted file]
lib/Makefile [deleted file]
lib/system/generic/machine/zynq7/Makefile.platform [deleted file]
lib/system/generic/machine/zynqmp_r5/Makefile.platform [deleted file]
obsolete/Makefile [deleted file]
obsolete/system/generic/machine/zynq7/Makefile [deleted file]
obsolete/system/generic/machine/zynq7/baremetal/Makefile [deleted file]
obsolete/system/generic/machine/zynq7/linux_firmware/Makefile [deleted file]
obsolete/system/generic/machine/zynqmp_r5/Makefile [deleted file]
obsolete/system/generic/machine/zynqmp_r5/xil_standalone_lib/Makefile [deleted file]

diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
index 2b74b21..0000000
--- a/Makefile
+++ /dev/null
@@ -1,46 +0,0 @@
-ifeq ($(SYSTEM),)
-SYSTEM := generic
-endif
-
-ifeq ($(MACHINE),)
-MACHINE := zynq7
-endif
-
-OHOME := $(CURDIR)
-ifeq ($(BUILDROOT),)
-BUILDROOT := $(CURDIR)/.build
-endif
-
-export SYSTEM MACHINE OHOME BUILDROOT
-
-.PHONY: all lib obsolete apps clean clean_lib clean_obsolete clean_apps
-
-all: lib
-
-clean:
-       rm -rf $(BUILDROOT)
-
-ifeq ($(WITH_OBSOLETE),y)
-all: obsolete
-endif
-ifeq ($(WITH_APPS),y)
-all: apps
-endif
-
-lib:
-       make -C lib all
-
-obsolete:
-       make -C obsolete
-
-apps:
-       make -C apps all
-
-clean_lib:
-       make -C lib clean
-
-clean_obsolete:
-       make -C obsolete clean
-
-clean_apps:
-       make -C apps clean
diff --git a/apps/Makefile b/apps/Makefile
deleted file mode 100644 (file)
index cce4803..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# Include commons make file to get platform and tool chain specific variables.
-
-export SRCROOT := $(CURDIR)
-export OHOME := $(SRCROOT)/../
-export BUILD := $(BUILDROOT)/apps
-
-all:
-ifeq ($(REMOTEPROC_MASTER),y)
-       make -C linux_firmware_remoteproc_slave all
-endif
-       make -C matrix_multiply all
-       make -C echo_test all
-ifneq ($(REMOTEPROC_MASTER),y)
-       make -C rpc_demo all
-endif
-
-clean:
-       rm -rf $(BUILD)
-
-
diff --git a/apps/Makefile.common b/apps/Makefile.common
deleted file mode 100644 (file)
index 5755321..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-local_dir = $(dir $(realpath $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))))$(1)
-
--include $(OHOME)/lib/system/$(SYSTEM)/machine/$(MACHINE)/Makefile.platform
--include $(SRCROOT)/machine/$(MACHINE)/Makefile.include
--include $(SRCROOT)/system/$(SYSTEM)/machine/$(MACHINE)/Makefile.include
-
-CFLAGS += -I"$(OHOME)/lib/include"
-CFLAGS += -I"$(OHOME)/lib/include/openamp/system/$(SYSTEM)/machine/$(MACHINE)"
-
-LDFLAGS += -L"$(BUILDROOT)/libs"
diff --git a/apps/echo_test/Makefile b/apps/echo_test/Makefile
deleted file mode 100644 (file)
index 06ab4bd..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-
-include $(SRCROOT)/Makefile.common
-
-PBUILD := $(BUILD)
-BUILD := $(PBUILD)/$(shell basename $(CURDIR))
-
-EXES := $(BUILD)/echo_testd.out
-
-ifeq ($(REMOTEPROC_MASTER),y)
-ECHO_TEST_D_SRCS := echo_testd_remoteproc_master.c
-EXES := $(BUILD)/echo_testd.bin
-BUILDSHARE := $(PBUILD)/share
-else
-ECHO_TEST_D_SRCS := echo_testd.c
-endif
-
-ECHO_TEST_D_OBJS := $(patsubst %.c,$(BUILD)/%.o,$(ECHO_TEST_D_SRCS))
-
-C_COMMON_OBJS := $(foreach f,$(C_COMMON_SRCS),$(BUILD)/$(patsubst %c,%o,$(shell basename $(f))))
-
-# Create obj files dependencies
-$(foreach f,$(ECHO_TEST_D_SRCS) $(C_COMMON_SRCS),$(eval $(patsubst %.c,%.o,$(BUILD)/$(shell basename $(f)))_dep := $(f)))
-
-ECHO_TEST_D_MAP := $(patsubst %.out,%.map,$(BUILD)/echo_testd.out)
-
-LIBS := -lopen_amp $(DEPS)
-
-.PHONY: all clean
-
-all: $(EXES)
-
-ifeq ($(REMOTEPROC_MASTER),y)
-$(BUILD)/echo_testd.out: $(ECHO_TEST_D_OBJS) $(C_COMMON_OBJS)
-       @echo 'Building echo test for baremetal : $@'
-       $(LD)  -Wl,-Map=$(ECHO_TEST_D_MAP) -Wl,--gc-sections -T"$(LINKERSCRIPT)" $(LDFLAGS) -o "$@" $^ -Wl,--start-group $(BUILDSHARE)/firmware1.o $(BUILDSHARE)/firmware2.o -lstdc++ $(LIBS) -Wl,--end-group
-
-$(BUILD)/echo_testd.bin: $(BUILD)/echo_testd.out
-       $(CROSS)objcopy -O binary $(BUILD)/echo_testd.out $(BUILD)/echo_testd.bin
-
-else
-$(BUILD)/echo_testd.out: $(ECHO_TEST_D_OBJS) $(C_COMMON_OBJS)
-       @echo 'Building echo test for baremetal : $@'
-       $(LD)  -Wl,-Map=$(ECHO_TEST_D_MAP) -Wl,--gc-sections -T"$(LINKERSCRIPT)" $(LDFLAGS) -o "$@"  $^ -Wl,--start-group $(LIBS) -Wl,--end-group
-endif
-
-clean:
-       rm -rf $(BUILD)
-
-.SECONDEXPANSION:
-%.o: $$($$@_dep)
-       mkdir -p $(dir $@);
-       $(CC) $(CFLAGS) $(ARCH_CFLAGS) $(INCLUDE) -c $< -o $@
-
-# This is to avoid the warning of non-existing Makefile
-%/Makefile.include:
-
diff --git a/apps/func_test_suite/Makefile b/apps/func_test_suite/Makefile
deleted file mode 100644 (file)
index 621e785..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-
-include $(SRCROOT)/Makefile.common
-
-PBUILD := $(BUILD)
-BUILD := $(PBUILD)/$(shell basename $(CURDIR))
-
-EXES := $(BUILD)/func_test_suite.out
-
-ifeq ($(REMOTEPROC_MASTER),y)
-FUNC_TEST_SUITE_SRCS := func_test_suite_remoteproc_master.c
-EXES := $(BUILD)/func_test_suite.bin
-BUILDSHARE := $(PBUILD)/share
-else
-FUNC_TEST_SUITE_SRCS := func_test_suite.c
-endif
-
-FUNC_TEST_SUITE_OBJS := $(patsubst %.c,$(BUILD)/%.o,$(FUNC_TEST_SUITE_SRCS))
-
-C_COMMON_OBJS := $(foreach f,$(C_COMMON_SRCS),$(BUILD)/$(patsubst %c,%o,$(shell basename $(f))))
-
-# Create obj files dependencies
-$(foreach f,$(FUNC_TEST_SUITE_SRCS) $(C_COMMON_SRCS),$(eval $(patsubst %.c,%.o,$(BUILD)/$(shell basename $(f)))_dep := $(f)))
-
-FUNC_TEST_SUITE_MAP := $(patsubst %.out,%.map, $(EXES))
-
-LIBS := -lopen_amp $(DEPS)
-
-.PHONY: all clean
-
-all: $(EXES)
-
-ifeq ($(REMOTEPROC_MASTER),y)
-$(BUILD)/func_test_suite.out: $(FUNC_TEST_SUITE_OBJS) $(C_COMMON_OBJS)
-       @echo 'Building function test stuie for baremetal : $@'
-       $(LD)  -Wl,-Map=$(FUNC_TEST_SUITE_MAP) -Wl,--gc-sections -T"$(LINKERSCRIPT)" $(LDFLAGS) -o "$@" $^ -Wl,--start-group $(BUILDSHARE)/firmware1.o $(BUILDSHARE)/firmware2.o -lstdc++ $(LIBS) -Wl,--end-group
-
-$(BUILD)/func_test_suite.bin: $(BUILD)/func_test_suite.out
-       $(CROSS)objcopy -O binary $(BUILD)/func_test_suite.out $(BUILD)/func_test_suite.bin
-
-else
-$(BUILD)/func_test_suite.out: $(FUNC_TEST_SUITE_OBJS) $(C_COMMON_OBJS)
-
-       @echo 'Building function test suite for baremetal : $@'
-
-       $(LD)  -Wl,-Map=$(FUNC_TEST_SUITE_MAP) -Wl,--gc-sections -T"$(LINKERSCRIPT)" $(LDFLAGS) -o "$@"  $^ -Wl,--start-group $(LIBS) -Wl,--end-group
-endif
-
-clean:
-       rm -rf $(BUILD)
-
-.SECONDEXPANSION:
-%.o: $$($$@_dep)
-       mkdir -p $(dir $@);
-       $(CC) $(CFLAGS) $(ARCH_CFLAGS) $(INCLUDE) -c $< -o $@
-
-# This is to avoid the warning of non-existing Makefile
-%/Makefile.include:
-
diff --git a/apps/linux_firmware_remoteproc_slave/Makefile b/apps/linux_firmware_remoteproc_slave/Makefile
deleted file mode 100644 (file)
index a8b5f47..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-
-include $(SRCROOT)/Makefile.common
-
-PBUILD := $(BUILD)
-BUILD := $(PBUILD)/$(shell basename $(CURDIR))
-BUILDSHARE := $(PBUILD)/share
-
-BOOTSTRAP_OUT := $(BUILDSHARE)/lnx_firmware
-
-BOOTSTRAP_SRCS := boot.c rsc_table.c
-
-ifneq ($(MACHINE),zynq7)
-$(warning "Machine $(MACHINE) is not supported by this app $(shell basename $(CURDIR))")
-all:
-
-clean:
-else
-
-ifeq ($(wildcard $(BUILDROOT)/libs/image.ub),)
-all:
-
-clean:
-else
-
-BOOTSTRAP_AS_SRCS := boot_wrapper_$(MACHINE).S
-
-BOOTSTRAP_OBJS := $(patsubst %.c,$(BUILD)/%.o,$(BOOTSTRAP_SRCS)) $(patsubst %.S,$(BUILD)/%.o,$(BOOTSTRAP_AS_SRCS))
-
-LINKERSCRIPT := link_remote.ld
-
-CFLAGS += -I"$(OHOME)/obsolete/system/$(SYSTEM)/machine/$(MACHINE)/linux_firmware"
-
-all: $(BOOTSTRAP_OUT)
-       cp $(BOOTSTRAP_OUT) $(BUILD)/firmware1
-       cd $(BUILD) && $(CROSS)objcopy -I binary -O elf32-littlearm -B arm firmware1 $(BUILDSHARE)/firmware1.o
-       cp $(BOOTSTRAP_OUT) $(BUILD)/firmware2
-       cd $(BUILD) && $(CROSS)objcopy -I binary -O elf32-littlearm -B arm firmware2 $(BUILDSHARE)/firmware2.o
-
-$(BOOTSTRAP_OUT): $(BUILDSHARE) $(BOOTSTRAP_OBJS)
-
-       @echo 'Building linux aggregate image : $@'
-
-       $(LD)  -nostartfiles -T"$(LINKERSCRIPT)" $(LDFLAGS) -o "$(BOOTSTRAP_OUT)" -Wl,--start-group $(BOOTSTRAP_OBJS) -lc -lm -lstdc++ -lzlib -lfdt -Wl,--end-group
-
-       @echo 'Finished building target: $@'
-
-$(BUILD)/%.o: %.c
-       mkdir -p $(dir $@)
-       @echo CC $(<:.c=.o)
-       $(CC) $(CFLAGS) $(ARCH_CFLAGS) $(INCLUDE) -c $< -o $@
-
-$(BUILD)/%.o: $(CURDIR)/%.S $(BUILD)/image.ub
-       mkdir -p $(dir $@)
-       @echo AS $(<:.S=.o)
-       cd $(BUILD); \
-       $(AS) $(ASFLAGS) $(INCLUDE) $< -o $@
-
-$(BUILD) $(BUILDSHARE):
-       mkdir -p $@
-
-$(BUILD)/image.ub:
-       cp $(BUILDROOT)/libs/image.ub $@
-clean:
-       rm -rf $(BUILD) $(BOOTSTRAP_OUT)
-
-PHONY: all clean
-
-endif
-endif
diff --git a/apps/machine/zynq7/Makefile.include b/apps/machine/zynq7/Makefile.include
deleted file mode 100644 (file)
index b052e56..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-CFLAGS += $(ARCH_CFLAGS)
-CFLAGS += -I"$(call local_dir,.)"
-
-ifeq ($(REMOTEPROC_MASTER),y)
-C_COMMON_SRCS :=  $(call local_dir,platform_info_remoteproc_master.c)
-else
-C_COMMON_SRCS := $(call local_dir,platform_info.c)
-C_COMMON_SRCS += $(call local_dir,rsc_table.c)
-endif
-
diff --git a/apps/machine/zynqmp_r5/Makefile.include b/apps/machine/zynqmp_r5/Makefile.include
deleted file mode 100644 (file)
index 20f2f3f..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-CFLAGS += $(ARCH_CFLAGS)
-CFLAGS += -I"$(call local_dir,.)"
-
-C_COMMON_SRCS := $(call local_dir,platform_info.c)
-C_COMMON_SRCS += $(call local_dir,rsc_table.c)
-
diff --git a/apps/matrix_multiply/Makefile b/apps/matrix_multiply/Makefile
deleted file mode 100644 (file)
index 12b10fa..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-
-include $(SRCROOT)/Makefile.common
-
-PBUILD := $(BUILD)
-BUILD := $(PBUILD)/$(shell basename $(CURDIR))
-
-EXES := $(BUILD)/matrix_multiplyd.out
-
-ifeq ($(REMOTEPROC_MASTER),y)
-MATRIX_MUL_D_SRCS := matrix_multiplyd_remoteproc_master.c
-EXES := $(BUILD)/matrix_multiplyd.bin
-BUILDSHARE := $(PBUILD)/share
-else
-MATRIX_MUL_D_SRCS := matrix_multiplyd.c
-endif
-
-MATRIX_MUL_D_OBJS := $(patsubst %.c,$(BUILD)/%.o,$(MATRIX_MUL_D_SRCS))
-
-C_COMMON_OBJS := $(foreach f,$(C_COMMON_SRCS),$(BUILD)/$(patsubst %c,%o,$(shell basename $(f))))
-
-# Create obj files dependencies
-$(foreach f,$(MATRIX_MUL_D_SRCS) $(C_COMMON_SRCS),$(eval $(patsubst %.c,%.o,$(BUILD)/$(shell basename $(f)))_dep := $(f)))
-
-MATRIX_MUL_D_MAP := $(patsubst %.out,%.map, $(EXES))
-
-LIBS := -lopen_amp $(DEPS)
-
-.PHONY: all clean
-
-all: $(EXES)
-
-ifeq ($(REMOTEPROC_MASTER),y)
-$(BUILD)/matrix_multiplyd.out: $(MATRIX_MUL_D_OBJS) $(C_COMMON_OBJS)
-       @echo 'Building matrix multiply for baremetal : $@'
-       $(LD)  -Wl,-Map=$(MATRIX_MUL_D_MAP) -Wl,--gc-sections -T"$(LINKERSCRIPT)" $(LDFLAGS) -o "$@" $^ -Wl,--start-group $(BUILDSHARE)/firmware1.o $(BUILDSHARE)/firmware2.o -lstdc++ $(LIBS) -Wl,--end-group
-
-$(BUILD)/matrix_multiplyd.bin: $(BUILD)/matrix_multiplyd.out
-       $(CROSS)objcopy -O binary $(BUILD)/matrix_multiplyd.out $(BUILD)/matrix_multiplyd.bin
-
-else
-$(BUILD)/matrix_multiplyd.out: $(MATRIX_MUL_D_OBJS) $(C_COMMON_OBJS)
-
-       @echo 'Building matrix multiply for baremetal : $@'
-
-       $(LD)  -Wl,-Map=$(MATRIX_MUL_D_MAP) -Wl,--gc-sections -T"$(LINKERSCRIPT)" $(LDFLAGS) -o "$@"  $^ -Wl,--start-group $(LIBS) -Wl,--end-group
-endif
-
-clean:
-       rm -rf $(BUILD)
-
-.SECONDEXPANSION:
-%.o: $$($$@_dep)
-       mkdir -p $(dir $@);
-       $(CC) $(CFLAGS) $(ARCH_CFLAGS) $(INCLUDE) -c $< -o $@
-
-# This is to avoid the warning of non-existing Makefile
-%/Makefile.include:
-
diff --git a/apps/rpc_demo/Makefile b/apps/rpc_demo/Makefile
deleted file mode 100644 (file)
index 188cd27..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-
-include $(SRCROOT)/Makefile.common
-
-PBUILD := $(BUILD)
-BUILD := $(PBUILD)/$(shell basename $(CURDIR))
-
-EXES := $(BUILD)/rpc_demo.out
-
-RPC_DEMO_SRCS := rpc_demo.c
-
-RPC_DEMO_OBJS := $(patsubst %.c,$(BUILD)/%.o,$(RPC_DEMO_SRCS))
-
-C_COMMON_OBJS := $(foreach f,$(C_COMMON_SRCS),$(BUILD)/$(patsubst %c,%o,$(shell basename $(f))))
-
-# Create obj files dependencies
-$(foreach f,$(RPC_DEMO_SRCS) $(C_COMMON_SRCS),$(eval $(patsubst %.c,%.o,$(BUILD)/$(shell basename $(f)))_dep := $(f)))
-
-RPC_DEMO_MAP := $(patsubst %.out,%.map, $(EXES))
-
-LIBS := -lopen_amp $(DEPS)
-
-.PHONY: all clean
-
-all: $(EXES)
-
-$(BUILD)/rpc_demo.out: $(RPC_DEMO_OBJS) $(C_COMMON_OBJS)
-
-       @echo 'Building echo test for baremetal : $@'
-
-       $(LD)  -Wl,-Map=$(RPC_DEMO_MAP) -Wl,--gc-sections -T"$(LINKERSCRIPT)" $(LDFLAGS) -o "$@"  $^ -Wl,--start-group $(LIBS) -Wl,--end-group
-
-clean:
-       rm -rf $(BUILD)
-
-.SECONDEXPANSION:
-%.o: $$($$@_dep)
-       mkdir -p $(dir $@);
-       $(CC) $(CFLAGS) $(ARCH_CFLAGS) $(INCLUDE) -c $< -o $@
-
-# This is to avoid the warning of non-existing Makefile
-%/Makefile.include:
-
diff --git a/apps/system/generic/machine/zynq7/Makefile.include b/apps/system/generic/machine/zynq7/Makefile.include
deleted file mode 100644 (file)
index 42e5630..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-CFLAGS += -DZYNQ7_BAREMETAL
-CFLAGS += -I"$(call local_dir,.)"
-DEPS := -lbaremetal -lc -lm -lcs3 -lcs3arm -lcs3unhosted
-
-ifeq ($(REMOTEPROC_MASTER),y)
-LINKERSCRIPT := $(call local_dir,linker_master.ld)
-CFLAGS += -DBAREMETAL_MASTER=1
-else
-LINKERSCRIPT := $(call local_dir,linker_remote.ld)
-CFLAGS += -DBAREMETAL_MASTER=0
-endif
-
-C_COMMON_SRCS += $(call local_dir,helper.c)
-
-ifeq ($(EXTRA_INCLUDES),)
-EXTRA_INCLUDES += -I$(OHOME)/obsolete/system/$(SYSTEM)/machine/$(MACHINE)/baremetal
-endif
-
-CFLAGS += $(EXTRA_INCLUDES)
diff --git a/apps/system/generic/machine/zynqmp_r5/Makefile.include b/apps/system/generic/machine/zynqmp_r5/Makefile.include
deleted file mode 100644 (file)
index 89d10cc..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-CFLAGS += -I"$(call local_dir,.)"
-DEPS := -lxil -lc -lm
-
-ifeq ($(REMOTEPROC_MASTER),y)
-$(error "Remoteproc master is not supported for this ARCH yet.")
-else
-LINKERSCRIPT := $(call local_dir,linker_remote.ld)
-endif
-
-C_COMMON_SRCS += $(wildcard $(call local_dir,)*.c)
-
-ifeq ($(EXTRA_INCLUDES),)
-EXTRA_INCLUDES += -I"$(OHOME)/obsolete/system/$(SYSTEM)/machine/$(MACHINE)/xil_standalone_lib"
-endif
-
-ifneq ($(EXTRA_INCLUDES),)
-CFLAGS += $(EXTRA_INCLUDES)
-endif
diff --git a/lib/Makefile b/lib/Makefile
deleted file mode 100644 (file)
index 044a904..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-# Make file to create ipc stack library.
-
-# Include commons make file to get platform and tool chain specific variables.
-BUILD := $(BUILDROOT)/lib
-BUILDLIB := $(BUILDROOT)/libs
-SRCROOT := $(CURDIR)
-
-ifeq ($(MACHINE),)
-export MACHINE := zynq7
-endif
-
-ifeq ($(SYSTEM),)
-export SYSTEM := generic
-endif
-
-ifeq ($(OHOME),)
-export OHOME := $(CURDIR)
-endif
-
-INCLUDES :=
-
--include system/$(SYSTEM)/machine/$(MACHINE)/Makefile.platform
--include system/$(SYSTEM)/Makefile.include
-
-ifeq ($(BENCHMARK),1)
-CFLAGS+=-D"OPENAMP_BENCHMARK_ENABLE"
-endif
-
-ifeq ($(LINUXREMOTE),1)
-CFLAGS+=-D"OPENAMP_REMOTE_LINUX_ENABLE"
-endif
-
-LIB := $(BUILDLIB)/libopen_amp.a
-
-INCLUDES += -I"include"
-ifneq ("$(wildcard include/openamp/system/$(SYSTEM))","")
-INCLUDES += -I"include/openamp/system/$(SYSTEM)"
-endif
-ifneq ("$(wildcard include/openamp/machine/$(MACHINE))","")
-INCLUDES += -I"include/openamp/machine/$(MACHINE)"
-endif
-ifneq ("$(wildcard include/openamp/system/$(SYSTEM)/machine/$(MACHINE))","")
-INCLUDES += -I"include/openamp/system/$(SYSTEM)/machine/$(MACHINE)"
-endif
-CFLAGS += $(INCLUDES)
-
-C_SRCFILES += \
-$(wildcard remoteproc/*.c) \
-$(wildcard virtio/*.c) \
-$(wildcard rpmsg/*.c) \
-$(wildcard common/*.c) \
-$(wildcard proxy/*.c) \
-$(wildcard system/$(SYSTEM)/*.c) \
-$(wildcard system/$(SYSTEM)/machine/$(MACHINE)/*.c) \
-$(wildcard machine/$(MACHINE)/*.c)
-
-AS_SRCFILES =
-
-ifeq ($(MACHINE),zynqmp_r5)
-C_SRCFILES += remoteproc/drivers/zynqmp_remoteproc_a53.c
-endif
-
-ifeq ($(MACHINE),zynq7)
-C_SRCFILES += remoteproc/drivers/zynq_remoteproc_a9.c
-AS_SRCFILES += remoteproc/drivers/zynq_a9_trampoline.S
-endif
-
-OBJFILES := $(patsubst %.c, $(BUILD)/%.o, $(C_SRCFILES)) $(patsubst %.S, $(BUILD)/%.o, $(AS_SRCFILES))
-
-DEPFILES := $(patsubst %.c, $(BUILD)/%.d, $(C_SRCFILES)) $(patsubst %.S, $(BUILD)/%.d, $(AS_SRCFILES))
-
-all: $(LIB)
-
-$(LIB): $(BUILDLIB) $(OBJFILES)
-       @echo AR $@
-       $(AR) -r $@ $(OBJFILES)
-
-$(BUILD)/%.o:%.c
-       @mkdir -p $(dir $@)
-       @echo CC $(<:.c=.o)
-       $(CC) $(CFLAGS) $(ARCH_CFLAGS) -c $< -o $@
-
-$(BUILD)/%.o:%.S
-       @echo AS $(<:.S=.o)
-       $(AS) $(ARCH_ASFLAGS) $< -o $@
-
-$(BUILD) $(BUILDLIB):
-       mkdir -p $@
-
-clean:
-       rm -rf $(BUILD)
-
-PHONY: all clean
diff --git a/lib/system/generic/machine/zynq7/Makefile.platform b/lib/system/generic/machine/zynq7/Makefile.platform
deleted file mode 100644 (file)
index a69c4b3..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-CROSS            ?= arm-xilinx-eabi-
-CFLAGS           := -Wall -ffunction-sections -fdata-sections -O0 -g3 -MMD
-CXXFLAGS         := -Wall -fno-enforce-eh-specs -MMD
-ASFLAGS          := -gdwarf2 -meabi=4 -mcpu=cortex-a9 -mfpu=neon
-ARFLAGS          :=
-ARCH_CFLAGS      := -gdwarf-2 -mthumb-interwork -mcpu=cortex-a9
-ARCH_CXXFLAGS    := -gdwarf-2 -mthumb-interwork -mcpu=cortex-a9
-ARCH_ASFLAGS     := -gdwarf-2 -mthumb-interwork -mcpu=cortex-a9
-ARCH_ARFLAGS     :=
-CC               = $(CROSS)gcc
-CXX              = $(CROSS)g++
-AS               = $(CROSS)as
-AR               = $(CROSS)ar
-LD               = $(CROSS)gcc
-OBJCPY           = $(CROSS)objcopy
-
-ifeq ($(EXTRA_INCLUDES),)
-EXTRA_INCLUDES += -I$(OHOME)/obsolete/system/$(SYSTEM)/machine/$(MACHINE)/baremetal
-endif
-
-INCLUDES += $(EXTRA_INCLUDES)
diff --git a/lib/system/generic/machine/zynqmp_r5/Makefile.platform b/lib/system/generic/machine/zynqmp_r5/Makefile.platform
deleted file mode 100644 (file)
index b42ad84..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-CROSS            ?= armr5-none-eabi-
-CFLAGS           := -Wall -O2 -g -MMD
-CXXFLAGS         := -Wall -MMD
-ASFLAGS          := -MMD
-ARFLAGS          :=
-ARCH_CFLAGS      := -mfloat-abi=soft -mcpu=cortex-r5
-ARCH_CXXFLAGS    := -mfloat-abi=soft -mcpu=cortex-r5
-ARCH_ASFLAGS     := -mfloat-abi=soft -mcpu=cortex-r5
-ARCH_ARFLAGS     :=
-CC               = $(CROSS)gcc
-CXX              = $(CROSS)g++
-AS               = $(CROSS)as
-AR               = $(CROSS)ar
-LD               = $(CROSS)gcc
-OBJCPY           = $(CROSS)objcopy
-
-ifeq ($(EXTRA_INCLUDES),)
-EXTRA_INCLUDES += -I$(OHOME)/obsolete/system/$(SYSTEM)/machine/$(MACHINE)/xil_standalone_lib
-endif
-
-INCLUDES += $(EXTRA_INCLUDES)
diff --git a/obsolete/Makefile b/obsolete/Makefile
deleted file mode 100644 (file)
index 282d238..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-BUILD := $(BUILDROOT)/obsolete
-BUILDLIB := $(BUILDROOT)/libs
-export BUILDROOT OHOME BUILDLIB
-
-all:
-       if [ -f "system/$(SYSTEM)/machine/$(MACHINE)/Makefile" ]; then \
-               make -C system/$(SYSTEM)/machine/$(MACHINE) all || exit 255; \
-       fi; \
-       if [ -f "system/$(SYSTEM)/Makefile" ]; then \
-               make -C system/$(SYSTEM) all || exit 255; \
-       fi; \
-
-clean:
-       rm -rf $(BUILDROOT)
diff --git a/obsolete/system/generic/machine/zynq7/Makefile b/obsolete/system/generic/machine/zynq7/Makefile
deleted file mode 100644 (file)
index e85dd22..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-all:
-       make -C linux_firmware all
-       make -C baremetal all
-
-clean:
-       make -C linux_firmware clean
-       make -C baremetal clean
diff --git a/obsolete/system/generic/machine/zynq7/baremetal/Makefile b/obsolete/system/generic/machine/zynq7/baremetal/Makefile
deleted file mode 100755 (executable)
index f236996..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-BUILD := $(BUILDROOT)/$(subst $(OHOME)/,,$(CURDIR))
-BUILDLIBS := $(BUILDROOT)/libs
-
-CROSS            := arm-xilinx-eabi-
-CFLAGS           := -Wall -ffunction-sections -fdata-sections -O0 -g3 -MMD
-ARCH_CFLAGS      := -gdwarf-2 -mthumb-interwork -mcpu=cortex-a9
-CC               = $(CROSS)gcc
-CXX              = $(CROSS)g++
-AS               = $(CROSS)as
-AR               = $(CROSS)ar
-LD               = $(CROSS)gcc
-
-LIB := $(BUILDLIBS)/libbaremetal.a
-
-C_SRCFILES += \
-$(wildcard *.c)
-
-OBJFILES := $(patsubst %.c, $(BUILD)/%.o, $(C_SRCFILES))
-
-DEPFILES := $(patsubst %.c, $(BUILD)/%.d, $(C_SRCFILES))
-
-all: $(LIB)
-
-$(LIB): $(OBJFILES)
-
-       @echo AR $@
-       $(AR) -r $@ $(OBJFILES)
-
-$(BUILD)/%.o:%.c $(BUILD)
-       @echo CC $(<:.c=.o)
-       $(CC) $(CFLAGS) $(ARCH_CFLAGS) -c $< -o $@
-
-$(BUILD):
-       mkdir -p $@
-
-clean:
-       @rm -rf $(LIB)
-       @rm -rf $(BUILD)
-
-PHONY: all clean
diff --git a/obsolete/system/generic/machine/zynq7/linux_firmware/Makefile b/obsolete/system/generic/machine/zynq7/linux_firmware/Makefile
deleted file mode 100644 (file)
index 6b43979..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-include $(OHOME)/lib/system/$(SYSTEM)/machine/$(MACHINE)/Makefile.platform
-
-all:
-       cp lib/$(CROSS)/*.a $(BUILDROOT)/libs/
-       cp image.ub $(BUILDROOT)/libs/
-
-clean:
diff --git a/obsolete/system/generic/machine/zynqmp_r5/Makefile b/obsolete/system/generic/machine/zynqmp_r5/Makefile
deleted file mode 100644 (file)
index f6891a0..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# Make file to create baremetal lib.
-
-BUILD := $(BUILDROOT)/$(subst $(OHOME)/,,$(CURDIR))
-
-export BUILD
-
-all:
-       make  -f make_xil_standalone_lib
-clean:
-       make  -f make_xil_standalone_lib clean
-
-PHONY: all clean
diff --git a/obsolete/system/generic/machine/zynqmp_r5/xil_standalone_lib/Makefile b/obsolete/system/generic/machine/zynqmp_r5/xil_standalone_lib/Makefile
deleted file mode 100755 (executable)
index 60383d3..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-include config.make
-AS=armr5-none-eabi-as
-CC=armr5-none-eabi-gcc
-AR=armr5-none-eabi-ar
-CP=cp
-ARCHIVER=armr5-none-eabi-ar
-COMPILER_FLAGS= -O2 -c
-EXTRA_COMPILER_FLAGS= -mcpu=cortex-r5 -DUSEAMP=1
-LIB=libxil.a
-
-LIB=libxil.a
-
-CC_FLAGS = $(subst -pg, -DPROFILING, $(COMPILER_FLAGS))
-ECC_FLAGS = $(subst -pg, -DPROFILING, $(EXTRA_COMPILER_FLAGS))
-
-ifeq ($(COMPILER) , arm-eabi-gcc)
- ECC_FLAGS     =       += -nostartfiles
-endif
-
-#The following flags are required for PEEP. We can remove them later
-ECC_FLAGS      += -mcpu=cortex-r5 \
-                 -mfloat-abi=soft \
-                 -DUSEAMP=1
-
-#RELEASEDIR=../../../lib
-RELEASEDIR=./.
-#INCLUDEDIR=../../../include
-#INCLUDES=-I./. -I${INCLUDEDIR}
-INCLUDES=-I./.
-
-OUTS = *.o
-
-INCLUDEFILES=*.h
-
-libs: $(LIBS)
-
-all: libs
-
-standalone_libs: $(LIBSOURCES)
-       @echo "Compiling standalone"
-       $(CC) $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) $^
-       @echo "AR standalone"
-       $(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OUTS}
-
-
-.PHONY: include
-include: standalone_includes
-
-standalone_includes:
-       ${CP} ${INCLUDEFILES} ${INCLUDEDIR}
-
-
-clean:
-       rm -rf ${OUTS} $(LIBS)