convert to blueprint
authorJan Altensen <info@stricted.net>
Mon, 21 Jun 2021 21:55:30 +0000 (23:55 +0200)
committerJan Altensen <info@stricted.net>
Mon, 21 Jun 2021 21:55:30 +0000 (23:55 +0200)
Change-Id: I11cc92c27a1d9b89fcd916f684a97cc7c52ad6c0

Android.bp [new file with mode: 0644]
Android.mk [deleted file]

diff --git a/Android.bp b/Android.bp
new file mode 100644 (file)
index 0000000..8b3acd6
--- /dev/null
@@ -0,0 +1,13 @@
+cc_binary_host {
+    name: "aml_image_v2_packer",
+    srcs: [
+        "crc32.cpp",
+        "sha1.c",
+        "amlImage.cpp",
+        "sparse_format.cpp",
+    ],
+    cflags: [
+        "-D_LARGEFILE64_SOURCE",
+        "-D_FILE_OFFSET_BITS=64",
+    ],
+}
diff --git a/Android.mk b/Android.mk
deleted file mode 100644 (file)
index b576b47..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-# 
-# Copyright 2013 The Amlogic Iamge Pack Tool
-#
-# image pack tool
-#
-
-LOCAL_PATH:= $(call my-dir)
-
-SRC_FILES := \
-       crc32.c \
-       sha1.c \
-       amlImage.c \
-       sparse_format.c
-
-ifeq ($(strip $(USE_MINGW)),y) 
-#################################
-
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := $(SRC_FILES)
-LOCAL_MODULE := libimagepack
-LOCAL_CFLAGS := -DBUILD_LIBRARY -D_LARGEFILE64_SOURCE  -D_FILE_OFFSET_BITS=64 -DBUILD_WITH_MINGW
-ifeq ($(strip $(USE_MINGW)),y)
-LOCAL_CFLAGS += -DBUILD_DLL 
-endif
-
-include $(BUILD_HOST_SHARED_LIBRARY)   
-       
-       
-#################################
-       
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := $(SRC_FILES)
-LOCAL_CFLAGS := -D_LARGEFILE64_SOURCE  -D_FILE_OFFSET_BITS=64 -DBUILD_WITH_MINGW
-LOCAL_MODULE := aml_image_packer
-
-include $(BUILD_HOST_EXECUTABLE)
-
-else
-##################################
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := $(SRC_FILES)
-LOCAL_STATIC_LIBRARIES := libc
-LOCAL_MODULE := libimagepack
-LOCAL_CFLAGS := -DBUILD_LIBRARY -D_LARGEFILE64_SOURCE  -D_FILE_OFFSET_BITS=64
-
-include $(BUILD_STATIC_LIBRARY)
-#################################
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := $(SRC_FILES)
-LOCAL_SYSTEM_SHARED_LIBRARIES := libc
-LOCAL_MODULE := libimagepack
-LOCAL_CFLAGS := -DBUILD_LIBRARY -D_LARGEFILE64_SOURCE  -D_FILE_OFFSET_BITS=64
-
-include $(BUILD_SHARED_LIBRARY)
-
-       
-#################################
-       
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := $(SRC_FILES)
-LOCAL_MODULE := aml_image_packer
-LOCAL_CFLAGS := -D_LARGEFILE64_SOURCE  -D_FILE_OFFSET_BITS=64
-
-include $(BUILD_HOST_EXECUTABLE)
-
-endif
-