blob: a38b1f079da1e1d4ef25f68bd77490768bcead05 [file] [log] [blame]
developercc441a02022-05-09 19:04:26 +08001require ccsp_common_filogic.inc
developer15a43312022-04-12 11:23:23 +08002
developer07d97382024-04-26 14:11:18 +08003FILESEXTRAPATHS_append := "${THISDIR}/files:"
4
5SRC_URI_append += " \
6 file://Fix-ccsp-eth-agent-build-error.patch;apply=no \
developerefbd1a12024-06-28 19:12:30 +08007 ${@bb.utils.contains('DISTRO_FEATURES','lan0_as_wan','file://support_lan0_as_wan.patch','',d)} \
developer07d97382024-04-26 14:11:18 +08008"
9
10do_filogic_patches() {
11 cd ${S}
12
developer5a158f52024-05-17 14:27:33 +080013 if [ ! -e filogic_patch_applied ] && ([ "${PROJECT_BRANCH}" = "rdkb-2024q1-dunfell" ] || [ "${PROJECT_BRANCH}" = "rdkb-2024q1-kirkstone" ]); then
developer07d97382024-04-26 14:11:18 +080014 patch -p1 < ${WORKDIR}/Fix-ccsp-eth-agent-build-error.patch
15 touch filogic_patch_applied
16 fi
17}
18addtask filogic_patches after do_unpack before do_configure
19
developer15a43312022-04-12 11:23:23 +080020CFLAGS_aarch64_append = " -Werror=format-truncation=1 "
developerefbd1a12024-06-28 19:12:30 +080021CFLAGS_aarch64_append = " -Wno-format-truncation -Wno-implicit-function-declaration -Wno-error "
developer15a43312022-04-12 11:23:23 +080022
developer783a8a62024-01-17 12:34:31 +080023EXTRA_OECONF_append_dunfell = " --with-ccsp-arch=arm"
developer15a43312022-04-12 11:23:23 +080024
25LDFLAGS_append =" \
26 -lsyscfg \
27 -lbreakpadwrapper \
28"
developer07d97382024-04-26 14:11:18 +080029LDFLAGS_append_dunfell = " -lpthread -lsafec-3.5.1"