blob: 0b5451a082b6541b2aa290430253b98e4b1c7930 (
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
|
DESCRIPTION = "Qi bootloader w/ Openmoko GTA01, GTA02, and GTA03 support"
LICENSE = "GPL"
SECTION = "bootloader"
PROVIDES = "virtual/bootloader"
PV = "1.0.2"
EXTRA_OEMAKE = ""
PARALLEL_MAKE = ""
do_configure() {
echo >config.mk
# uncomment to debug
sed -i s,@,, Makefile
cat >config.mk <<EOF
BUILD_HOST=\$(shell hostname)
BUILD_VERSION=${PV}-${PR}
BUILD_DATE=\$(shell date --iso-8601=seconds)
# NOTE: The following depends on the fact that only one version of the cross-compiler
# has been built. If it bails out with something like: "| arm-linux-ld: 4.3.3: No such file or directory"
# then you need to remove all previously built toolchain directories out of the cross library path.
GCCV="`${CC} -dumpversion`"
COMPILER_LIB_PATH_PRE=${CROSS_DIR}/lib/gcc/${TARGET_SYS}/$(GCCV)
COMPILER_LIB_PATH=\$(COMPILER_LIB_PATH_PRE)/\$(shell ls \$(COMPILER_LIB_PATH_PRE))
AS=${AS}
LD=${LD}
CC=${HOST_PREFIX}gcc
OBJCOPY=${OBJCOPY}
OBJDUMP=${OBJDUMP}
HOSTCC=${BUILD_CC}
export HOSTCC BUILD_HOST BUILD_VERSION BUILD_DATE CROSS_COMPILE AD LD CC OBJCOPY OBJDUMP MKUDFU
EOF
}
do_compile() {
make clean && \
make CPU=s3c2442 && \
make CPU=s3c2410 && \
make CPU=s3c6410
}
do_compile_om-gta01() {
make clean && make CPU=s3c2410
}
do_compile_om-gta02() {
make clean && make CPU=s3c2442
}
do_deploy () {
install -d ${DEPLOY_DIR_IMAGE}
cp -f image/qi-*.udfu ${DEPLOY_DIR_IMAGE}
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
do_deploy[dirs] = "${S}"
addtask deploy before do_build after do_package
addtask quilt before do_patch after do_unpack
addtask svnrev before do_patch after do_quilt
|