[7a66986] | 1 | ## |
---|
| 2 | # |
---|
| 3 | # @file |
---|
| 4 | # |
---|
| 5 | # @brief Makefile of LibBSP for the BeagleBoards. |
---|
| 6 | # |
---|
| 7 | |
---|
| 8 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
| 9 | |
---|
| 10 | include $(top_srcdir)/../../../../automake/compile.am |
---|
[f3ce8f41] | 11 | include $(top_srcdir)/../../bsp.am |
---|
[7a66986] | 12 | |
---|
| 13 | include_bspdir = $(includedir)/bsp |
---|
| 14 | include_libcpudir = $(includedir)/libcpu |
---|
| 15 | |
---|
| 16 | dist_project_lib_DATA = bsp_specs |
---|
| 17 | |
---|
| 18 | ############################################################################### |
---|
| 19 | # Header # |
---|
| 20 | ############################################################################### |
---|
| 21 | |
---|
| 22 | include_HEADERS = include/bsp.h |
---|
[642ef00] | 23 | include_HEADERS += include/tm27.h |
---|
[7a66986] | 24 | |
---|
[e58e29fd] | 25 | nodist_include_HEADERS = include/bspopts.h |
---|
[7a66986] | 26 | |
---|
| 27 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
| 28 | |
---|
| 29 | include_bsp_HEADERS = |
---|
| 30 | include_bsp_HEADERS += ../../shared/include/utility.h |
---|
| 31 | include_bsp_HEADERS += ../../shared/include/irq-generic.h |
---|
| 32 | include_bsp_HEADERS += ../../shared/include/irq-info.h |
---|
| 33 | include_bsp_HEADERS += ../../shared/include/stackalloc.h |
---|
| 34 | include_bsp_HEADERS += ../../shared/include/uart-output-char.h |
---|
[53dd6d61] | 35 | include_bsp_HEADERS += ../shared/include/arm-a8core-start.h |
---|
| 36 | include_bsp_HEADERS += ../shared/include/arm-cp15-start.h |
---|
| 37 | include_bsp_HEADERS += ../shared/include/arm-errata.h |
---|
| 38 | include_bsp_HEADERS += ../shared/include/arm-release-id.h |
---|
[7a66986] | 39 | include_bsp_HEADERS += ../shared/include/start.h |
---|
| 40 | include_bsp_HEADERS += include/irq.h |
---|
| 41 | include_bsp_HEADERS += include/i2c.h |
---|
[151e53f] | 42 | include_bsp_HEADERS += include/beagleboneblack.h |
---|
| 43 | include_bsp_HEADERS += include/bbb-gpio.h |
---|
[5e3096db] | 44 | include_bsp_HEADERS += include/bbb-pwm.h |
---|
[7a66986] | 45 | |
---|
[53dd6d61] | 46 | include_libcpu_HEADERS = |
---|
| 47 | include_libcpu_HEADERS += ../../../libcpu/arm/shared/include/omap3.h |
---|
| 48 | include_libcpu_HEADERS += ../../../libcpu/arm/shared/include/am335x.h |
---|
| 49 | include_libcpu_HEADERS += ../../../libcpu/arm/shared/include/omap_timer.h |
---|
[7a66986] | 50 | |
---|
| 51 | ############################################################################### |
---|
| 52 | # Data # |
---|
| 53 | ############################################################################### |
---|
| 54 | |
---|
| 55 | noinst_LIBRARIES = libbspstart.a |
---|
| 56 | |
---|
| 57 | libbspstart_a_SOURCES = ../shared/start/start.S |
---|
| 58 | |
---|
| 59 | project_lib_DATA = start.$(OBJEXT) |
---|
| 60 | |
---|
| 61 | project_lib_DATA += startup/linkcmds |
---|
| 62 | project_lib_DATA += startup/linkcmds.beagle |
---|
| 63 | |
---|
| 64 | EXTRA_DIST = startup/linkcmds.beagle |
---|
| 65 | |
---|
| 66 | ############################################################################### |
---|
| 67 | # LibBSP # |
---|
| 68 | ############################################################################### |
---|
| 69 | |
---|
| 70 | noinst_LIBRARIES += libbsp.a |
---|
| 71 | |
---|
| 72 | libbsp_a_SOURCES = |
---|
| 73 | libbsp_a_CPPFLAGS = |
---|
| 74 | libbsp_a_LIBADD = |
---|
| 75 | |
---|
| 76 | # Shared |
---|
| 77 | libbsp_a_SOURCES += ../../shared/bootcard.c |
---|
[ca4895c] | 78 | libbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c |
---|
[f6115d7c] | 79 | libbsp_a_SOURCES += ../../shared/src/bsp-fdt.c |
---|
[7a66986] | 80 | libbsp_a_SOURCES += ../../shared/bspclean.c |
---|
| 81 | libbsp_a_SOURCES += ../../shared/bspgetworkarea.c |
---|
| 82 | libbsp_a_SOURCES += ../../shared/bsppredriverhook.c |
---|
| 83 | libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c |
---|
| 84 | libbsp_a_SOURCES += ../../shared/sbrk.c |
---|
| 85 | libbsp_a_SOURCES += ../../shared/src/stackalloc.c |
---|
[151e53f] | 86 | libbsp_a_SOURCES += ../../shared/gpio.c |
---|
[53dd6d61] | 87 | libbsp_a_SOURCES += ../../shared/cpucounterdiff.c |
---|
| 88 | libbsp_a_SOURCES += ../../shared/timerstub.c |
---|
| 89 | libbsp_a_SOURCES += ../../shared/cpucounterread.c |
---|
[7a66986] | 90 | libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S |
---|
[53dd6d61] | 91 | libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c |
---|
[e629076] | 92 | libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c |
---|
[7a66986] | 93 | |
---|
| 94 | # Startup |
---|
| 95 | libbsp_a_SOURCES += startup/bspreset.c |
---|
| 96 | libbsp_a_SOURCES += startup/bspstart.c |
---|
[53dd6d61] | 97 | libbsp_a_SOURCES += startup/bspstarthooks.c |
---|
| 98 | libbsp_a_SOURCES += startup/bspstartmmu.c |
---|
[7a66986] | 99 | |
---|
| 100 | # IRQ |
---|
| 101 | libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c |
---|
| 102 | libbsp_a_SOURCES += ../../shared/src/irq-generic.c |
---|
| 103 | libbsp_a_SOURCES += ../../shared/src/irq-info.c |
---|
| 104 | libbsp_a_SOURCES += ../../shared/src/irq-legacy.c |
---|
| 105 | libbsp_a_SOURCES += ../../shared/src/irq-server.c |
---|
| 106 | libbsp_a_SOURCES += ../../shared/src/irq-shell.c |
---|
[53dd6d61] | 107 | libbsp_a_SOURCES += irq.c |
---|
[7a66986] | 108 | |
---|
| 109 | # Console |
---|
| 110 | libbsp_a_SOURCES += ../../shared/console.c \ |
---|
| 111 | ../../shared/console_select.c \ |
---|
| 112 | console/console-config.c \ |
---|
| 113 | ../../shared/console_read.c \ |
---|
| 114 | ../../shared/console_write.c \ |
---|
| 115 | ../../shared/console_control.c |
---|
| 116 | |
---|
[53dd6d61] | 117 | # I2C |
---|
[8f550d2] | 118 | libbsp_a_SOURCES += i2c/bbb-i2c.c |
---|
[7a66986] | 119 | |
---|
[151e53f] | 120 | # GPIO |
---|
| 121 | libbsp_a_SOURCES += gpio/bbb-gpio.c |
---|
| 122 | |
---|
[5e3096db] | 123 | #pwm |
---|
| 124 | libbsp_a_SOURCES += pwm/pwm.c |
---|
| 125 | |
---|
[d55d7a0] | 126 | #RTC |
---|
| 127 | libbsp_a_SOURCES += rtc.c |
---|
| 128 | libbsp_a_SOURCES += ../../shared/tod.c |
---|
[53dd6d61] | 129 | # Clock |
---|
| 130 | libbsp_a_SOURCES += clock.c |
---|
| 131 | libbsp_a_SOURCES += ../../shared/clockdrv_shell.h |
---|
[7a66986] | 132 | |
---|
| 133 | # Cache |
---|
| 134 | libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c |
---|
[d4316537] | 135 | libbsp_a_SOURCES += ../shared/include/arm-cache-l1.h |
---|
| 136 | libbsp_a_SOURCES += ../shared/armv467ar-basic-cache/cache_.h |
---|
| 137 | libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/armv467ar-basic-cache |
---|
[7a66986] | 138 | |
---|
| 139 | ############################################################################### |
---|
| 140 | # Special Rules # |
---|
| 141 | ############################################################################### |
---|
| 142 | |
---|
| 143 | DISTCLEANFILES = include/bspopts.h |
---|
| 144 | |
---|
| 145 | include $(srcdir)/preinstall.am |
---|
| 146 | include $(top_srcdir)/../../../../automake/local.am |
---|