summaryrefslogtreecommitdiff
path: root/bsps/arm/beagle/wscript
blob: 7452a4d26f89194063ef87768886b8f1a099d190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
def build(ctx):
	srcnode = ctx.srcnode.abspath()

	source = [
# Shared
#		"../../shared/dev/getentropy/getentropy-cpucounter.c",
		"../../shared/start/bsp-fdt.c",
#		"../../shared/start/bspfatal-default.c",
		"../../shared/start/bspgetworkarea-default.c",
#		"../../shared/start/sbrk.c",
		"../../shared/start/stackalloc.c",
		"../../shared/dev/gpio/gpio-support.c",
		"../../shared/dev/btimer/btimer-stub.c",
		"../../shared/dev/cpucounter/cpucounterfrequency.c",
		"../../shared/dev/cpucounter/cpucounterread.c",

#		"../shared/start/bsp-start-memcpy.S",
#		"../shared/cp15/arm-cp15-set-exception-handler.c",
#		"../shared/cp15/arm-cp15-set-ttb-entries.c",

# Startup
		"../beagle/start/bspreset.c",
		"../beagle/start/bspstart.c",
		"../beagle/start/bspstarthooks.c",
		"../beagle/start/bspstartmmu.c",

# IRQ
#		"../../shared/irq/irq-default-handler.c",
		"../beagle/irq/irq.c",

# Console
#		"../../shared/dev/serial/legacy-console.c",
#		"../../shared/dev/serial/legacy-console-control.c",
#		"../../shared/dev/serial/legacy-console-select.c",
		"../beagle/console/console-config.c",

# I2C
		"../beagle/i2c/bbb-i2c.c",

# GPIO
		"../beagle/gpio/bbb-gpio.c",

#pwm
		"../beagle/pwm/pwm.c",

#RTC
		"../beagle/rtc/rtc.c",
		"../../shared/dev/rtc/rtc-support.c",
# Clock
		"../beagle/clock/clock.c",

# Cache
#		"../shared/cache/cache-cp15.c",
]

	ctx.bsp.start(["../shared/start/start.S"])

	ctx.bsp.source(
		source,
#		includes	= ["%s/bsps/arm/beagle/include" % srcnode, "COLDBEER"],
		features	= "src_include src_include_rtems src_include_score src_include_bsp src_include_bsp_common src_include_bsp_shared src_include_networking"
	)