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