blob: c249d3100056b905d024ff90e050719280bb1525 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
SUMMARY = "Example application for DE-Nano FPGA FFT Benchmarking"
SECTION = "DE10-Nano"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d252b8b27e3e6ea89c9c6912b3c4373d"
DEPENDS = "ne10"
RDEPENDS_${PN} = "ne10"
PACKAGE_ARCH = "${MACHINE_ARCH}"
PR = "r0"
PV = "1.0"
inherit systemd
SRC_URI = " \
file://archive_for_target.sh \
file://archive_src_for_sandbox.sh \
file://archive_src_for_target.sh \
file://build_all.sh \
file://build_app.sh \
file://build_lib.sh \
file://c16_256.c \
file://c16_256x32.c \
file://c16_256x32x128.c \
file://c16_4096.c \
file://c32_256.c \
file://c32_256x32.c \
file://c32_256x32x128.c \
file://c32_4096.c \
file://clean_all.sh \
file://LICENSE \
file://copy_to_target.sh \
file://create_input_waveforms.sh \
file://create_real_short_sine32.c \
file://create_real_short_square32.c \
file://create_real_short_triangle32.c \
file://de10-nano-fftsw-init.service \
file://duplicate_x128.sh \
file://duplicate_x32.sh \
file://duplicate_x8.sh \
file://fft_256.c \
file://fft_256x32.c \
file://fft_256x32x128.c \
file://fft_4096.c \
file://fftdma_256.c \
file://fftdma_256x32.c \
file://fftdma_256x32x128.c \
file://fftdma_4096.c \
file://images/create_gnuplot_sine_256.gnu \
file://images/create_gnuplot_sine_256x32.gnu \
file://images/create_gnuplot_sine_4096.gnu \
file://images/create_gnuplot_squares_256.gnu \
file://images/create_gnuplot_squares_256x32.gnu \
file://images/create_gnuplot_squares_4096.gnu \
file://images/create_gnuplot_triangle_256.gnu \
file://images/create_gnuplot_triangle_256x32.gnu \
file://images/create_gnuplot_triangle_4096.gnu \
file://images/create_montage_sine_256.sh \
file://images/create_montage_sine_256x32.sh \
file://images/create_montage_sine_4096.sh \
file://images/create_montage_squares_256.sh \
file://images/create_montage_squares_256x32.sh \
file://images/create_montage_squares_4096.sh \
file://images/create_montage_triangle_256.sh \
file://images/create_montage_triangle_256x32.sh \
file://images/create_montage_triangle_4096.sh \
file://images/README_IMAGES.TXT \
file://ne10cpx_long_to_text.c \
file://ne10cpx_short_to_text.c \
file://neon16_256.c \
file://neon16_256x32.c \
file://neon16_256x32x128.c \
file://neon16_4096.c \
file://neon32_256.c \
file://neon32_256x32.c \
file://neon32_256x32x128.c \
file://neon32_4096.c \
file://overhead.c \
file://README_HOST.TXT \
file://README_SANDBOX_BUILD.TXT \
file://README_SANDBOX.TXT \
file://README_TARGET_BUILD.TXT \
file://README_TARGET.TXT \
file://real_short_to_ne10cpx_long.c \
file://real_short_to_ne10cpx_short.c \
file://run_all.sh \
file://run_fft_256.sh \
file://run_fft_256x32.sh \
file://run_fft_256x32x128.sh \
file://run_fft_4096.sh \
file://run_stream_256x16x1.sh \
file://run_stream_256x1x1.sh \
file://run_stream_256x32x128.sh \
file://sandbox_build_all.sh \
file://sandbox_create_input_waveforms.sh \
file://setup_env.src \
file://setup_target_fft_env.sh \
file://stream_fpga_256x16x1.c \
file://stream_fpga_256x1x1.c \
file://stream_fpga_256x32x128.c \
file://stream_neon32_256x16x1.c \
file://stream_neon32_256x1x1.c \
file://stream_neon32_256x32x128.c \
file://stream_raw_256x16x1.c \
file://stream_raw_256x1x1.c \
file://stream_raw_256x32x128.c \
file://target_build_all.sh \
file://target_build_app.sh \
file://target_build_lib.sh \
"
S = "${WORKDIR}"
do_configure () {
cd ${S}
bash clean_all.sh
}
do_compile () {
cd ${S}
bash build_all.sh
}
do_install () {
install -d ${D}${base_libdir}/systemd/system
install -m 0644 ${WORKDIR}/*.service ${D}${base_libdir}/systemd/system
cd ${S}
install -d ${D}/examples/fft/bin
bash archive_for_target.sh
cp -a --no-preserve=ownership fft.tgz ${D}/examples/fft/bin/
cp -a --no-preserve=ownership README_TARGET.TXT ${D}/examples/fft/bin/
cp -a --no-preserve=ownership setup_target_fft_env.sh ${D}/examples/fft/bin/
install -d ${D}/examples/fft/src
bash archive_src_for_target.sh
cp -a --no-preserve=ownership fft_src.tgz ${D}/examples/fft
tar --no-same-owner -xf fft_src.tgz -C ${D}/examples/fft/src
install -d ${D}/examples/fft/sandbox
bash archive_src_for_sandbox.sh
cp -a --no-preserve=ownership fft_sandbox.tgz ${D}/examples/fft
tar --no-same-owner -xf fft_sandbox.tgz -C ${D}/examples/fft/sandbox
}
FILES_${PN} += "examples/fft/bin/"
RDEPENDS_${PN} += "gnuplot"
FILES_${PN} += "examples/fft/fft_src.tgz"
FILES_${PN} += "examples/fft/fft_sandbox.tgz"
FILES_${PN} += "examples/fft/src/"
FILES_${PN} += "examples/fft/sandbox/"
NATIVE_SYSTEMD_SUPPORT = "1"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "de10-nano-fftsw-init.service"
|