1# Copyright (C) 2016 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_PATH:= $(call my-dir) 16 17libufdt_tests_cflags := -Wall -Werror 18ifeq ($(HOST_OS),darwin) 19libufdt_tests_cflags += -Wno-error=format 20endif 21 22################################################### 23 24include $(CLEAR_VARS) 25 26LOCAL_MODULE := ufdt_gen_test_dts 27LOCAL_CFLAGS := $(libufdt_tests_cflags) 28LOCAL_SRC_FILES := ufdt_gen_test_dts.c 29 30include $(BUILD_HOST_EXECUTABLE) 31 32################################################### 33 34include $(CLEAR_VARS) 35 36LOCAL_MODULE := ufdt_apply_overlay_host 37LOCAL_CFLAGS := $(libufdt_tests_cflags) 38LOCAL_SRC_FILES := ufdt_overlay_test_app.c util.c 39LOCAL_STATIC_LIBRARIES := \ 40 libufdt \ 41 libfdt \ 42 libufdt_sysdeps 43LOCAL_REQUIRED_MODULES := dtc 44LOCAL_CXX_STL := none 45 46include $(BUILD_HOST_EXECUTABLE) 47 48$(call dist-for-goals, dist_files, $(ALL_MODULES.ufdt_apply_overlay_host.BUILT):libufdt/ufdt_apply_overlay) 49 50################################################### 51 52include $(CLEAR_VARS) 53 54LOCAL_MODULE := ufdt_apply_overlay 55LOCAL_CFLAGS := $(libufdt_tests_cflags) 56LOCAL_SRC_FILES := ufdt_overlay_test_app.c util.c 57LOCAL_STATIC_LIBRARIES := \ 58 libufdt \ 59 libfdt \ 60 libufdt_sysdeps 61LOCAL_REQUIRED_MODULES := dtc 62 63include $(BUILD_EXECUTABLE) 64 65################################################### 66include $(CLEAR_VARS) 67 68LOCAL_MODULE := fdt_apply_overlay 69LOCAL_CFLAGS := $(libufdt_tests_cflags) 70LOCAL_SRC_FILES := fdt_overlay_test_app.c util.c 71LOCAL_STATIC_LIBRARIES := \ 72 libfdt \ 73 libufdt_sysdeps 74LOCAL_REQUIRED_MODULES := dtc 75 76include $(BUILD_HOST_EXECUTABLE) 77 78################################################### 79 80include $(CLEAR_VARS) 81 82LOCAL_MODULE := extract_dtb 83LOCAL_CFLAGS := $(libufdt_tests_cflags) 84LOCAL_SRC_FILES := extract_dtb.c util.c 85LOCAL_STATIC_LIBRARIES := \ 86 libfdt \ 87 libufdt_sysdeps 88LOCAL_REQUIRED_MODULES := dtc 89LOCAL_CXX_STL := none 90 91include $(BUILD_HOST_EXECUTABLE) 92 93$(call dist-for-goals, dist_files, $(ALL_MODULES.extract_dtb.BUILT):libufdt/extract_dtb) 94 95################################################### 96 97include $(CLEAR_VARS) 98 99LOCAL_MODULE := fdt_apply_overlay 100LOCAL_CFLAGS := $(libufdt_tests_cflags) 101LOCAL_SRC_FILES := fdt_overlay_test_app.c util.c 102LOCAL_STATIC_LIBRARIES := \ 103 libfdt \ 104 libufdt_sysdeps 105LOCAL_REQUIRED_MODULES := dtc 106 107include $(BUILD_EXECUTABLE) 108 109################################################### 110include $(CLEAR_VARS) 111 112LOCAL_MODULE := ufdt_verify_overlay_host 113LOCAL_CFLAGS := $(libufdt_tests_cflags) 114LOCAL_SRC_FILES := ufdt_verify_overlay_app.cpp 115LOCAL_STATIC_LIBRARIES := \ 116 libufdt \ 117 libfdt \ 118 libufdt_sysdeps \ 119 libufdt_verify 120LOCAL_REQUIRED_MODULES := dtc 121 122include $(BUILD_HOST_EXECUTABLE) 123 124################################################### 125include $(CLEAR_VARS) 126 127LOCAL_MODULE := ufdt_verify_overlay 128LOCAL_CFLAGS := $(libufdt_tests_cflags) 129LOCAL_SRC_FILES := ufdt_verify_overlay_app.cpp 130LOCAL_STATIC_LIBRARIES := \ 131 libufdt \ 132 libfdt \ 133 libufdt_sysdeps \ 134 libufdt_verify 135LOCAL_REQUIRED_MODULES := dtc 136 137include $(BUILD_NATIVE_TEST) 138 139################################################### 140