1// 2// Copyright (C) 2021 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 // See: http://go/android-license-faq 19 default_applicable_licenses: [ 20 "Android-Apache-2.0", 21 ], 22} 23 24genrule { 25 name: "a14_5_15_kmi_compatibility_test", 26 srcs: [ 27 "sym-5.15/Module.symvers-10342779", 28 ], 29 tool_files: ["kmi_compatibility_test.sh"], 30 out: ["a14_5_15_kmi_compatibility_test"], 31 // kmi_compatibility_test.sh $(CURR_SYMVERS) $(PREV_SYMVERS) 32 cmd: "$(location kmi_compatibility_test.sh) $(location sym-5.15/Module.symvers-10342779) $(location sym-5.15/Module.symvers-10342779) && " + 33 "touch $(out)", 34} 35 36genrule { 37 name: "a14_6_1_kmi_compatibility_test", 38 srcs: [ 39 "sym-6.1/Module.symvers-10816536", 40 ], 41 tool_files: ["kmi_compatibility_test.sh"], 42 out: ["a14_6_1_kmi_compatibility_test"], 43 // kmi_compatibility_test.sh $(CURR_SYMVERS) $(PREV_SYMVERS) 44 cmd: "$(location kmi_compatibility_test.sh) $(location sym-6.1/Module.symvers-10816536) $(location sym-6.1/Module.symvers-10816536) && " + 45 "touch $(out)", 46} 47 48phony_rule { 49 name: "a14_kmi_compatibility_test", 50 phony_deps: [ 51 "a14_5_15_kmi_compatibility_test", 52 "a14_6_1_kmi_compatibility_test", 53 ], 54} 55