xref: /OK3568_Linux_fs/yocto/meta-rockchip/recipes-devtools/brcm-tools/brcm-tools.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4DESCRIPTION = "Broadcom develop tools"
5SECTION = "devel"
6LICENSE = "Apache-2.0"
7LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
8
9SRC_URI = " \
10	file://dhd_priv.c \
11	file://brcm_patchram_plus1.c \
12	file://Makefile \
13"
14
15S = "${WORKDIR}"
16
17do_compile:append() {
18	${CC} ${CFLAGS} ${LDFLAGS} brcm_patchram_plus1.c -o brcm_patchram_plus
19}
20
21do_install() {
22	install -d ${D}${bindir}
23	install -m 0755 dhd_priv ${D}${bindir}
24	install -m 0755 brcm_patchram_plus ${D}${bindir}
25}
26