developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 2 | |
| 3 | require ccsp_common_turris.inc |
| 4 | |
| 5 | SRC_URI += " file://turris-macro-gwprov.patch;apply=no" |
| 6 | SRC_URI += " file://set-uplink-for-turris.patch;apply=no" |
| 7 | |
| 8 | # we need to patch to code for Turris |
| 9 | do_turris_patches() { |
| 10 | cd ${S} |
| 11 | if [ ! -e patch_applied ]; then |
| 12 | patch -p1 < ${WORKDIR}/turris-macro-gwprov.patch |
| 13 | patch -p1 < ${WORKDIR}/set-uplink-for-turris.patch |
| 14 | touch patch_applied |
| 15 | fi |
| 16 | } |
| 17 | addtask turris_patches after do_unpack before do_compile |
| 18 | |
| 19 | export PLATFORM_TURRIS_ENABLED="yes" |
| 20 | |
| 21 | FILES_${PN} += " \ |
| 22 | /usr/bin/gw_prov_utopia \ |
| 23 | " |