diff options
-rw-r--r-- | package/openocd/Makefile | 34 | ||||
-rw-r--r-- | target/arm/Makefile | 3 | ||||
-rw-r--r-- | target/arm/kernel/st-stm32f429 | 12 | ||||
-rw-r--r-- | target/arm/systems/st-stm32f429 | 11 | ||||
-rw-r--r-- | target/config/Config.in.kernelfmt | 4 | ||||
-rw-r--r-- | target/config/Config.in.tools | 4 |
6 files changed, 68 insertions, 0 deletions
diff --git a/package/openocd/Makefile b/package/openocd/Makefile new file mode 100644 index 000000000..fbd5900d7 --- /dev/null +++ b/package/openocd/Makefile @@ -0,0 +1,34 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= openocd +PKG_VERSION:= 0.9.0 +PKG_RELEASE:= 1 +PKG_HASH:= 837042ac9a156b9363cbffa1fcdaf463bfb83a49331addf52e63119642b5f443 +PKG_DESCR:= jtag flash and debugging utility +PKG_SECTION:= dev/tools +PKG_URL:= http://openocd.org/ +PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=openocd/} + +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 + +PKG_CFLINE_OPENOCD:= depends on ADK_HOST_ONLY + +include $(ADK_TOPDIR)/mk/host.mk +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call HOST_template,OPENOCD,openocd,$(PKG_VERSION)-${PKG_RELEASE})) + +HOST_STYLE:= auto + +HOST_CONFIGURE_ARGS+= --with-jim-shared=no \ + --disable-shared + +openocd-hostinstall: + cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \ + ${HOST_FAKE_FLAGS} ${HOST_INSTALL_TARGET} $(MAKE_TRACE) + +include ${ADK_TOPDIR}/mk/host-bottom.mk +include ${ADK_TOPDIR}/mk/pkg-bottom.mk diff --git a/target/arm/Makefile b/target/arm/Makefile index 06abe009d..57f4fcd66 100644 --- a/target/arm/Makefile +++ b/target/arm/Makefile @@ -12,6 +12,9 @@ endif ifeq ($(ADK_TARGET_KERNEL_UIMAGE),y) KERNEL:=$(LINUX_DIR)/arch/arm/boot/uImage endif +ifeq ($(ADK_TARGET_KERNEL_XIPIMAGE),y) +KERNEL:=$(LINUX_DIR)/arch/arm/boot/xipImage +endif QEMU_ARGS:=${ADK_QEMU_ARGS} ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM_SPITZ),y) diff --git a/target/arm/kernel/st-stm32f429 b/target/arm/kernel/st-stm32f429 new file mode 100644 index 000000000..32c1a786c --- /dev/null +++ b/target/arm/kernel/st-stm32f429 @@ -0,0 +1,12 @@ +CONFIG_ARM_SINGLE_ARMV7M=y +CONFIG_ARCH_STM32=y +CONFIG_SET_MEM_PARAM=y +CONFIG_DRAM_BASE=0x90000000 +CONFIG_FLASH_MEM_BASE=0x08000000 +CONFIG_FLASH_SIZE=0x00200000 +CONFIG_XIP_KERNEL=y +CONFIG_XIP_PHYS_ADDR=0x08008000 +CONFIG_SERIAL_NONSTANDARD=y +CONFIG_SERIAL_STM32=y +CONFIG_SERIAL_STM32_CONSOLE=y + diff --git a/target/arm/systems/st-stm32f429 b/target/arm/systems/st-stm32f429 new file mode 100644 index 000000000..389e5b74d --- /dev/null +++ b/target/arm/systems/st-stm32f429 @@ -0,0 +1,11 @@ +config ADK_TARGET_SYSTEM_ST_STM32F429 + bool "STMicroelectronics STM32F429" + depends on ADK_TARGET_LITTLE_ENDIAN + select ADK_TARGET_CPU_ARM_CORTEX_M4 + select ADK_TARGET_WITH_SERIAL + select ADK_TARGET_UCLINUX + select ADK_TARGET_KERNEL_XIPIMAGE + select ADK_HOST_BUILD_OPENOCD + help + STMicroelectronics STM32F429 + diff --git a/target/config/Config.in.kernelfmt b/target/config/Config.in.kernelfmt index 2b878d383..fe769acfd 100644 --- a/target/config/Config.in.kernelfmt +++ b/target/config/Config.in.kernelfmt @@ -22,6 +22,9 @@ config ADK_TARGET_KERNEL_BZIMAGE config ADK_TARGET_KERNEL_VMLINUX_AOUT bool +config ADK_TARGET_KERNEL_XIPIMAGE + bool + config ADK_TARGET_KERNEL string default "uImage" if ADK_TARGET_KERNEL_UIMAGE @@ -31,6 +34,7 @@ config ADK_TARGET_KERNEL default "vmlinuz" if ADK_TARGET_KERNEL_VMLINUZ default "bzImage" if ADK_TARGET_KERNEL_BZIMAGE default "vmlinux.aout" if ADK_TARGET_KERNEL_VMLINUX_AOUT + default "xipImage" if ADK_TARGET_KERNEL_XIPIMAGE default "vmlinux" config ADK_TARGET_KERNEL_WITH_COMPRESSION diff --git a/target/config/Config.in.tools b/target/config/Config.in.tools index 391586100..09d44a0a4 100644 --- a/target/config/Config.in.tools +++ b/target/config/Config.in.tools @@ -81,6 +81,10 @@ config ADK_HOST_BUILD_U_BOOT_XTENSA bool default y if ADK_TARGET_ARCH_XTENSA +config ADK_HOST_BUILD_OPENOCD + bool + default n + config ADK_HOST_BUILD_PATCH bool default n |