summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target/config/Config.in.compiler2
-rw-r--r--target/lm32/kernel/qemu-lm32169
-rw-r--r--toolchain/gcc/Makefile.inc4
3 files changed, 169 insertions, 6 deletions
diff --git a/target/config/Config.in.compiler b/target/config/Config.in.compiler
index 316af4cc5..4d5f7c17c 100644
--- a/target/config/Config.in.compiler
+++ b/target/config/Config.in.compiler
@@ -71,7 +71,7 @@ config ADK_TOOLCHAIN_GCC_METAG
depends on ADK_TARGET_ARCH_METAG
config ADK_TOOLCHAIN_GCC_LM32
- bool "4.5.2"
+ bool "4.6.4-lm32"
depends on ADK_TARGET_ARCH_LM32
config ADK_TOOLCHAIN_GCC_NDS32
diff --git a/target/lm32/kernel/qemu-lm32 b/target/lm32/kernel/qemu-lm32
index cc589a506..437939705 100644
--- a/target/lm32/kernel/qemu-lm32
+++ b/target/lm32/kernel/qemu-lm32
@@ -1,5 +1,168 @@
+CONFIG_BUG=y
+# CONFIG_APM_EMULATION is not set
+CONFIG_ARCH_REQUIRE_GPIOLIB=y
+# CONFIG_ARPD is not set
+# CONFIG_BASE_FULL is not set
+CONFIG_BASE_SMALL=1
+# CONFIG_BINFMT_ELF_FDPIC is not set
+CONFIG_BINFMT_FLAT=y
+# CONFIG_BINFMT_SHARED_FLAT is not set
+# CONFIG_BINFMT_ZFLAT is not set
+CONFIG_BLK_DEV_LOOP=y
+CONFIG_BLK_DEV_RAM=y
+CONFIG_BLK_DEV_RAM_COUNT=1
+CONFIG_BLK_DEV_RAM_SIZE=8192
+CONFIG_BOARD_MILKYMIST_ONE=y
+# CONFIG_BOARD_MILKYMIST_SOC is not set
+# CONFIG_BRIDGE is not set
+# CONFIG_BSD_PROCESS_ACCT is not set
+CONFIG_CC_OPTIMIZE_FOR_SIZE=y
+CONFIG_COMPAT_BRK=y
+# CONFIG_CONSOLE_TRANSLATIONS is not set
+CONFIG_CPU_CLOCK=80000000
+CONFIG_CPU_MICO32=y
+CONFIG_CRAMFS=y
+CONFIG_CRC7=y
+CONFIG_CRC_CCITT=y
+CONFIG_DEBUG_BUGVERBOSE=y
+CONFIG_DECOMPRESS_GZIP=y
+CONFIG_DEFAULT_TCP_CONG="cubic"
+CONFIG_DEVTMPFS=y
+CONFIG_DEVTMPFS_MOUNT=y
+CONFIG_DTC=y
+CONFIG_DUMMY_CONSOLE=y
+CONFIG_EARLY_PRINTK=y
+CONFIG_EXT2_FS=y
+CONFIG_FAT_FS=y
+CONFIG_FB=y
+CONFIG_FB_MILKYMIST=y
+CONFIG_FB_SYS_COPYAREA=y
+CONFIG_FB_SYS_FILLRECT=y
+CONFIG_FB_SYS_FOPS=y
+CONFIG_FB_SYS_IMAGEBLIT=y
+# CONFIG_FB_WMT_GE_ROPS is not set
+# CONFIG_FIRMWARE_EDID is not set
+CONFIG_GENERIC_ALLOCATOR=y
+CONFIG_GENERIC_BUG=y
+CONFIG_GENERIC_CLOCKEVENTS=y
+CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
+CONFIG_GENERIC_CSUM=y
+CONFIG_GENERIC_FIND_NEXT_BIT=y
+CONFIG_GENERIC_GPIO=y
+CONFIG_GENERIC_IRQ_SHOW=y
+# CONFIG_GEN_RTC is not set
+CONFIG_GPIOLIB=y
+CONFIG_GPIO_SYSFS=y
+# CONFIG_HAMRADIO is not set
+CONFIG_HAS_IOMEM=y
+# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
+CONFIG_HAVE_GENERIC_HARDIRQS=y
+CONFIG_HAVE_MEMBLOCK=y
+# CONFIG_HIGH_RES_TIMERS is not set
+CONFIG_HW_CONSOLE=y
+CONFIG_INET_DIAG=y
+CONFIG_INET_TCP_DIAG=y
+CONFIG_INITRAMFS_SOURCE=""
+CONFIG_INOTIFY_USER=y
+CONFIG_KALLSYMS=y
+CONFIG_KERNEL_BASE_ADDR=0x40000000
+# CONFIG_KEYBOARD_GPIO is not set
+CONFIG_KEYBOARD_SOFTUSB=y
+# CONFIG_LBDAF is not set
+CONFIG_LEDS_GPIO=y
+CONFIG_LEDS_GPIO_OF=y
+CONFIG_LEGACY_PTYS=y
+CONFIG_LEGACY_PTY_COUNT=256
CONFIG_LM32=y
+# CONFIG_LM32_HW_JTAG is not set
+CONFIG_LOGO=y
+CONFIG_LOGO_LINUX_CLUT224=y
+CONFIG_LOGO_LINUX_MONO=y
+CONFIG_LOGO_LINUX_VGA16=y
+CONFIG_LOG_BUF_SHIFT=12
+CONFIG_MARVELL_PHY=y
+CONFIG_MDIO_BITBANG=y
+# CONFIG_MDIO_GPIO is not set
+CONFIG_MICREL_PHY=y
+# CONFIG_MII is not set
+# CONFIG_MISC_DEVICES is not set
+# CONFIG_MMAP_ALLOW_UNINITIALIZED is not set
+CONFIG_MMC=y
+CONFIG_MMC_BLOCK=y
+# CONFIG_MMU is not set
+CONFIG_MSDOS_FS=y
+# CONFIG_MTD is not set
+CONFIG_NEED_PER_CPU_KM=y
+# CONFIG_NETDEV_1000 is not set
+# CONFIG_NETWORK_FILESYSTEMS is not set
+# CONFIG_NET_ETHERNET is not set
+CONFIG_NET_KEY=y
+# CONFIG_NET_SCHED is not set
+CONFIG_NLS=y
+CONFIG_NLS_CODEPAGE_437=y
+CONFIG_NLS_ISO8859_1=y
+CONFIG_NOMMU_INITIAL_TRIM_EXCESS=1
+CONFIG_NO_DMA=y
+CONFIG_NO_IOPORT=y
+CONFIG_OF=y
+CONFIG_OF_ADDRESS=y
+CONFIG_OF_DEVICE=y
+CONFIG_OF_EARLY_FLATTREE=y
+CONFIG_OF_FLATTREE=y
+CONFIG_OF_GPIO=y
+CONFIG_OF_IRQ=y
+CONFIG_OF_MDIO=y
+CONFIG_OF_NET=y
+CONFIG_PAGEFLAGS_EXTENDED=y
+# CONFIG_PARTITION_ADVANCED is not set
+CONFIG_PHYLIB=y
CONFIG_PLAT_MILKYMIST=y
-CONFIG_CPU_MICO32=y
-CONFIG_BOARD_MILKYMIST_ONE=y
-CONFIG_BUG=y
+CONFIG_PPP=y
+CONFIG_PPP_ASYNC=y
+CONFIG_PPP_BSDCOMP=y
+CONFIG_PPP_DEFLATE=y
+# CONFIG_PPP_FILTER is not set
+# CONFIG_PPP_MULTILINK is not set
+CONFIG_PPP_SYNC_TTY=y
+# CONFIG_PREEMPT_RCU is not set
+# CONFIG_PROC_DEVICETREE is not set
+# CONFIG_QUOTACTL is not set
+CONFIG_RD_GZIP=y
+# CONFIG_RD_LZMA is not set
+CONFIG_ROMFS_BACKED_BY_BLOCK=y
+CONFIG_ROMFS_FS=y
+CONFIG_ROMFS_ON_BLOCK=y
+# CONFIG_RTC is not set
+# CONFIG_RTC_CLASS is not set
+# CONFIG_SCHED_HRTICK is not set
+# CONFIG_SCSI_DMA is not set
+# CONFIG_SDIO_UART is not set
+# CONFIG_SERIAL_8250 is not set
+CONFIG_SERIAL_MILKYMIST=y
+CONFIG_SERIAL_MILKYMIST_CONSOLE=y
+CONFIG_SERIO=y
+# CONFIG_SERIO_I8042 is not set
+CONFIG_SERIO_LIBPS2=y
+# CONFIG_SERIO_PS2MULT is not set
+# CONFIG_SERIO_RAW is not set
+# CONFIG_SERIO_SERPORT is not set
+# CONFIG_SIGNALFD is not set
+CONFIG_SLHC=y
+# CONFIG_SQUASHFS is not set
+# CONFIG_STAGING is not set
+# CONFIG_STRIP_ASM_SYMS is not set
+# CONFIG_SYN_COOKIES is not set
+# CONFIG_SYSVIPC is not set
+# CONFIG_TCP_CONG_ADVANCED is not set
+CONFIG_TCP_CONG_CUBIC=y
+CONFIG_VFAT_FS=y
+# CONFIG_VGA_CONSOLE is not set
+# CONFIG_VLAN_8021Q is not set
+CONFIG_VM_EVENT_COUNTERS=y
+CONFIG_VT=y
+CONFIG_VT_CONSOLE=y
+# CONFIG_VT_HW_CONSOLE_BINDING is not set
+# CONFIG_WATCHDOG is not set
+# CONFIG_WIRELESS is not set
+# CONFIG_WLAN is not set
+CONFIG_ZONE_DMA_FLAG=0
diff --git a/toolchain/gcc/Makefile.inc b/toolchain/gcc/Makefile.inc
index 6b626715f..5f1783214 100644
--- a/toolchain/gcc/Makefile.inc
+++ b/toolchain/gcc/Makefile.inc
@@ -50,8 +50,8 @@ DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
LIBSTDCXXVER:= 19
endif
ifeq ($(ADK_TOOLCHAIN_GCC_LM32),y)
-PKG_VERSION:= 4.5.2
-PKG_HASH:= 07b880faf29f3f9d9c0953717002ac29f5d061427797d2487a7c9c169e6395b3
+PKG_VERSION:= 4.6.4
+PKG_HASH:= 53de33db01815914b3905a7d2cefac1ecf24ad081b82d93e4f526d8e62ff736f
PKG_SITES:= https://ftp.gnu.org/gnu/gcc/gcc-$(PKG_VERSION)/
PKG_RELEASE:= 1
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz