summaryrefslogtreecommitdiff
path: root/packages/uboot-utils/uboot-utils_1.1.2.bb
blob: 3bcf1eba6c3244f4f7b27a61acc04ac404503d8f (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
DESCRIPTION = "U-boot bootloader OS env. access tools for PPC"
SECTION = "bootloaders"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "mtd-utils"

SRC_URI = "${SOURCEFORGE_MIRROR}/u-boot/u-boot-${PV}.tar.bz2 \
	 file://fw_env.h.patch;patch=1 \
	 file://fw_env.c.patch;patch=1 \
	 file://tools-Makefile.patch;patch=1 \
	 file://env-Makefile.patch;patch=1 "

S = "${WORKDIR}/u-boot-${PV}"
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
TARGET_LDFLAGS = ""

UBOOT_MACHINE ?= "${MACHINE}_config"

inherit base

do_configure() {
	:
}

do_compile () {
	oe_runmake Sandpoint8240_config
	oe_runmake tools
}

# install mkimage for the kernel makefile
do_stage() {
	install -m 755 ${S}/tools/mkimage ${STAGING_BINDIR_NATIVE}
}

do_install () {
	install -d     ${D}/sbin
	install -m 755 ${S}/tools/env/fw_printenv ${D}/sbin/fw_printenv
	install -m 755 ${S}/tools/env/fw_printenv ${D}/sbin/fw_setenv
}