rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | PREFIX = ../install |
| 2 | CROSS = arm-none-linux- |
| 3 | ROOT = $(PREFIX)/$(CROSS:%-=%) |
| 4 | |
| 5 | #For Yocto use |
| 6 | |
| 7 | RFX_TEST_CLIENT = false |
| 8 | RFX_TEST_AOSP = false |
| 9 | |
| 10 | $(warning ########## libvendor_ril BB_TELEFWK_OPTION $(BB_TELEFWK_OPTION) ##########) |
| 11 | |
| 12 | |
| 13 | |
| 14 | SUBDIRS += lynq-riltel |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | $(warning ########## lynq-rilcmd SUBDIRS $(SUBDIRS) ##########) |
| 21 | export SIM_COUNT?=1 |
| 22 | |
| 23 | .PHONY: all build clean pack_rootfs |
| 24 | |
| 25 | all: build |
| 26 | |
| 27 | build: clean |
| 28 | |
| 29 | clean: |
| 30 | $(warning ########## clean ril ##########) |
| 31 | for i in $(SUBDIRS); do \ |
| 32 | (cd $$i && make clean); \ |
| 33 | if [ $$? != 0 ]; then \ |
| 34 | exit 1; \ |
| 35 | fi \ |
| 36 | done |
| 37 | |
| 38 | build: |
| 39 | $(warning ########## build ril ##########) |
| 40 | for i in $(SUBDIRS); do \ |
| 41 | (cd $$i && make); \ |
| 42 | if [ $$? != 0 ]; then \ |
| 43 | exit 1; \ |
| 44 | fi \ |
| 45 | done |
| 46 | |
| 47 | install: |
| 48 | $(warning ########## install ril ##########) |
| 49 | for i in $(SUBDIRS); do \ |
| 50 | (cd $$i && make install); \ |
| 51 | if [ $$? != 0 ]; then \ |
| 52 | exit 1; \ |
| 53 | fi \ |
| 54 | done |
| 55 | |
| 56 | pack_rootfs: |
| 57 | $(warning ########## pack_rootfs ril ##########) |
| 58 | for i in $(SUBDIRS); do \ |
| 59 | (cd $$i && make pack_rootfs); \ |
| 60 | if [ $$? != 0 ]; then \ |
| 61 | exit 1; \ |
| 62 | fi \ |
| 63 | done |