klte-common: Add buildable libpn547_fw

* The libpn547_fw.so blobs from klte devices have text relocations.
  This library is easily re-generated by extracting the contents of
  gphDnldNfc_DlSeqSz[] and gphDnldNfc_DlSequence[] from libpn547_fw.so
  in offical G900FXXS1CPHW_G900FOXA1CPE1 release.
* Process adapted from Matt Mower's work seen here:
  https://paste.ubuntu.com/18137835/

Change-Id: I433b3129d63ebca95c4b12dc8103db08d7e7bc72
This commit is contained in:
Kevin F. Haggerty 2016-06-27 13:06:39 -05:00 committed by Kevin Haggerty
parent 936ea50b37
commit 4149b0e737
2 changed files with 2918 additions and 0 deletions

27
nfc/Android.mk Normal file
View File

@ -0,0 +1,27 @@
# Copyright 2016 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := libpn547_fw.c
LOCAL_MODULE := libpn547_fw
LOCAL_MODULE_OWNER := nxp
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
LOCAL_MODULE_TAGS := optional
LOCAL_PACK_MODULE_RELOCATIONS := false
LOCAL_CLANG := false
include $(BUILD_SHARED_LIBRARY)

2891
nfc/libpn547_fw.c Normal file

File diff suppressed because it is too large Load Diff