From: Hugo Villeneuve Date: Sat, 27 Sep 2014 16:35:47 +0000 (-0400) Subject: Add new architecture AVR X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=49203138ba88f9b8063667260da849cee38611d0;p=hvlinux.git Add new architecture AVR Also add new package avrlibc, as AVR target uses it instead of glibc. --- diff --git a/config/avr/sysinfos b/config/avr/sysinfos new file mode 100644 index 0000000..3890c1b --- /dev/null +++ b/config/avr/sysinfos @@ -0,0 +1,40 @@ +#!/bin/bash + +# This file contains the informations specific to the target system onto which +# HV-Linux will be installed. + +INST_TYPE="workstation" +HVL_TARGET="avr" +MAKEJOBS=4 + +# Destination path where to install new Linux-HV system. This is usually where +# you have mounted your new LFS partition, but it can also be any directory. +# This is relevant only for stage 0 and 1. +LFS="/opt/toolchain/hvlinux-${HVL_TARGET}" +LFS_PARTITION="/dev/sda7" +BOOT_PARTITION="/dev/sda1" +SWAP_PARTITION="/dev/sda2" + +# New user to create +REGUSER="hugo" + +# Define this if you want the mail addressed to the root user automatically be +# forwarded to someone else. +MAIL_ADMIN="hugo" + +# Used for setting '-march=xxx' option in CFLAGS and CPPFLAGS +MACHINE_ARCHITECTURE="" + +# General network settings +INTERFACES="eth0" +MACHINE_NAME="arm" +DOMAIN="mongol.com" +LAN_NETWORK_MASK="192.168.1.0/24" # Utilise par sane in stage3 + +# Network interface card eth0 settings +BOOTPROTO[0]="dhcp" + +# Samba support +USE_SAMBA="no" + +KERNEL_CONFIG="arm/config-${KERNEL}" diff --git a/config/packages-list b/config/packages-list index 954278b..35abb50 100644 --- a/config/packages-list +++ b/config/packages-list @@ -12,6 +12,7 @@ ALSA_PLUGINS="alsa-plugins-1.0.28" ALSA_UTILS="alsa-utils-1.0.28" APR="apr-1.4.6" APR_UTIL="apr-util-1.5.1" +AVRLIBC="avr-libc-1.8.0" AVR_GDB="gdb-6.4" AVRDUDE="avrdude-6.0.1" ATK="atk-2.4.0" diff --git a/stage0/hv-install-2 b/stage0/hv-install-2 index d4ae7b4..0fd794c 100755 --- a/stage0/hv-install-2 +++ b/stage0/hv-install-2 @@ -43,4 +43,8 @@ if [ x"${INSTALL_GLIBC}" == x"1" ]; then ipkg -l "${GCC}-pass2" ${GCC} fi +if [ x"${HVL_TARGET}" == x"avr" ]; then + ipkg ${AVRLIBC} "--host=avr" +fi + exit $? diff --git a/stage0/packages-update b/stage0/packages-update index 167e9de..d220f0f 100755 --- a/stage0/packages-update +++ b/stage0/packages-update @@ -26,4 +26,8 @@ if [ x"${INSTALL_GLIBC}" == x1 ]; then fpkg -m gnu ${GLIBC} fi +if [ x"${HVL_TARGET}" == x"avr" ]; then + fpkg ${AVRLIBC} "http://download.savannah.gnu.org/releases/avr-libc" +fi + exit $? diff --git a/targets/avr b/targets/avr new file mode 100644 index 0000000..c74dbab --- /dev/null +++ b/targets/avr @@ -0,0 +1,9 @@ +#!/bin/bash + +# The AVR toolchain target must be defined only as: +# avr +# and not as the usual triplet: +# avr-linux-gnu +CLFS_OS="" + +INSTALL_GLIBC=0