1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_ARM_MODE := arm 5 6LOCAL_C_INCLUDES := $(call include-path-for, bootloader mkbootimg) 7 8LOCAL_SRC_FILES := init.S main.c usbloader.c 9 10LOCAL_CFLAGS := -O2 -g -W -Wall 11LOCAL_CFLAGS += -march=armv6 12LOCAL_CFLAGS += -DPRODUCTNAME='"$(strip $(TARGET_BOOTLOADER_BOARD_NAME))"' 13 14LOCAL_MODULE := usbloader 15 16LOCAL_MODULE_PATH := $(PRODUCT_OUT) 17LOCAL_STATIC_LIBRARIES := $(TARGET_BOOTLOADER_LIBS) libboot libboot_c 18 19include $(BUILD_RAW_EXECUTABLE) 20 21$(LOCAL_BUILT_MODULE) : PRIVATE_LINK_SCRIPT := $(TARGET_BOOTLOADER_LINK_SCRIPT) 22