python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / boot / lpc32xxcdl / lpc32xxcdl.mk
blob04c1c7f060e802e64d71b62150191b8273172bd1
1 ################################################################################
3 # lpc32xxcdl
5 ################################################################################
7 LPC32XXCDL_VERSION = lpc32xx_cdl_v2.11
8 LPC32XXCDL_SITE = http://git.lpcware.com/lpc3xxx_cdl.git
9 LPC32XXCDL_SITE_METHOD = git
11 LPC32XXCDL_INSTALL_TARGET = NO
12 LPC32XXCDL_INSTALL_IMAGES = YES
14 ifeq ($(BR2_TARGET_LPC32XXCDL_BOARDNAME),"ea3250")
15 LPC32XXCDL_KICKSTART = kickstart/nand
16 LPC32XXCDL_KICKSTART_BURNER = nand/kickstart
17 LPC32XXCDL_S1L = s1l
18 LPC32XXCDL_S1L_BURNER = nand/s1lapp
19 endif
21 ifeq ($(BR2_TARGET_LPC32XXCDL_BOARDNAME),"phy3250")
22 LPC32XXCDL_KICKSTART = kickstart/kickstart_nand
23 LPC32XXCDL_KICKSTART_BURNER = nand/kickstart
24 LPC32XXCDL_S1L = s1l/s1l_nand_boot
25 LPC32XXCDL_S1L_BURNER = nand/s1lapp
26 endif
28 ifeq ($(BR2_TARGET_LPC32XXCDL_BOARDNAME),"fdi3250")
29 LPC32XXCDL_KICKSTART = kickstart/nand
30 LPC32XXCDL_KICKSTART_BURNER = nand/kickstart_jtag
31 LPC32XXCDL_S1L = s1l
32 LPC32XXCDL_S1L_BURNER = nand/s1lapp_jtag
33 endif
35 LPC32XXCDL_BUILD_FLAGS = \
36 CROSS_COMPILE=$(TARGET_CROSS) \
37 NXPMCU_WINBASE=$(@D) \
38 NXPMCU_SOFTWARE=$(@D) \
39 BSP=$(BR2_TARGET_LPC32XXCDL_BOARDNAME) \
40 CSP=lpc32xx TOOL=gnu GEN=lpc
42 LPC32XXCDL_BOARD_STARTUP_DIR = \
43 csps/lpc32xx/bsps/$(BR2_TARGET_LPC32XXCDL_BOARDNAME)/startup/examples/
45 # Source files are with dos newlines, which our patch infrastructure doesn't
46 # handle. Work around it by converting the affected files to unix newlines
47 # before patching
48 define LPC32XXCDL_DOS2UNIX_FOR_PATCH
49 sed -n 's|^[+-]\{3\} [^/]\+\([^ \t]*\)\(.*\)|$(@D)\1|p' \
50 boot/lpc32xxcdl/*.patch| sort -u | xargs $(SED) 's/\x0D$$//'
51 endef
53 LPC32XXCDL_POST_EXTRACT_HOOKS += LPC32XXCDL_DOS2UNIX_FOR_PATCH
55 define LPC32XXCDL_BUILD_CMDS
56 $(MAKE1) $(LPC32XXCDL_BUILD_FLAGS) -C $(@D)
57 $(MAKE1) $(LPC32XXCDL_BUILD_FLAGS) -C $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/Burners/$(LPC32XXCDL_KICKSTART_BURNER)
58 $(MAKE1) $(LPC32XXCDL_BUILD_FLAGS) -C $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/$(LPC32XXCDL_KICKSTART)
59 $(MAKE1) $(LPC32XXCDL_BUILD_FLAGS) -C $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/Burners/$(LPC32XXCDL_S1L_BURNER)
60 $(MAKE1) $(LPC32XXCDL_BUILD_FLAGS) -C $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/$(LPC32XXCDL_S1L)
61 endef
63 define LPC32XXCDL_INSTALL_IMAGES_CMDS
64 cp $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/Burners/$(LPC32XXCDL_KICKSTART_BURNER)/*gnu.bin $(BINARIES_DIR)
65 cp $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/$(LPC32XXCDL_KICKSTART)/*gnu.bin $(BINARIES_DIR)
66 cp $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/Burners/$(LPC32XXCDL_S1L_BURNER)/*gnu.bin $(BINARIES_DIR)
67 cp $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/$(LPC32XXCDL_S1L)/*gnu.bin $(BINARIES_DIR)
68 endef
70 $(eval $(generic-package))