Browse Source

frosted: fix config for qemu

Waldemar Brodkorb 6 years ago
parent
commit
fa6fcbc9f7

+ 6 - 0
target/arm/systems/qemu-arm-lm3s6965evb

@@ -5,6 +5,12 @@ config ADK_TARGET_SYSTEM_QEMU_ARM_LM3S6965EVB
 	select ADK_TARGET_CPU_ARM_CORTEX_M3
 	select ADK_TARGET_ARCH_ARM_WITH_THUMB
 	select ADK_TARGET_QEMU
+	select FROSTED_ARCH_LM3SVIRT
+	select FROSTED_KFLASHMEM_SIZE 128
+	select FROSTED_KRAMMEM_SIZE 128
+	select FROSTED_TASK_STACK_SIZE_4K
+	select FROSTED_USART_0
+	select FROSTED_MEMFS
 	help
 	  Qemu Emulator for ARM architecture (lm3s6965evb) without MMU.
 

+ 9 - 4
toolchain/elf2flt/Makefile.inc

@@ -2,14 +2,19 @@
 # material, please see the LICENCE file in the top-level directory.
 
 PKG_NAME:=		elf2flt
+PKG_VERSION:=		6d80ab6c93409e796f85da404bde84b841231531
+PKG_GIT:=		hash
+PKG_RELEASE:=		1
+PKG_SITES:=		https://github.com/uclinux-dev/elf2flt.git
 ifeq ($(ADK_TARGET_ARCH_H8300),y)
 PKG_VERSION:=		h8300
 PKG_GIT:=		branch
 PKG_RELEASE:=		1
 PKG_SITES:=		git://git.osdn.net/gitroot/uclinux-h8/elf2flt.git
-else
-PKG_VERSION:=		6d80ab6c93409e796f85da404bde84b841231531
-PKG_GIT:=		hash
+endif
+ifeq ($(ADK_TARGET_OS_FROSTED),y)
+PKG_VERSION:=		master
+PKG_GIT:=		branch
 PKG_RELEASE:=		1
-PKG_SITES:=		https://github.com/uclinux-dev/elf2flt.git
+PKG_SITES:=		https://github.com/insane-adding-machines/elf2flt-1.git
 endif

+ 2 - 1
toolchain/newlib/Makefile.inc

@@ -23,7 +23,8 @@ PKG_SITES:=		https://github.com/riscv/riscv-newlib.git
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.xz
 endif
 ifeq ($(ADK_TARGET_LIB_NEWLIB_FROSTED),y)
-PKG_VERSION:=		git
+PKG_VERSION:=		frosted
+PKG_GIT:=		branch
 PKG_RELEASE:=		1
 PKG_GIT_SUBMODULE:=	1
 PKG_SITES:=		https://github.com/insane-adding-machines/newlib.git

+ 12 - 0
toolchain/newlib/patches/frosted/fix-tooldir.patch

@@ -0,0 +1,12 @@
+diff -Nur newlib-2.2.0-1.orig/configure newlib-2.2.0-1/configure
+--- newlib-2.2.0-1.orig/configure	2014-07-05 23:09:07.000000000 +0200
++++ newlib-2.2.0-1/configure	2015-11-25 06:33:11.461178398 +0100
+@@ -6985,7 +6985,7 @@
+ 
+ # Some systems (e.g., one of the i386-aix systems the gas testers are
+ # using) don't handle "\$" correctly, so don't use it here.
+-tooldir='${exec_prefix}'/${target_noncanonical}
++tooldir='${exec_prefix}'
+ build_tooldir=${tooldir}
+ 
+ # Create a .gdbinit file which runs the one in srcdir