Add new architecture AVR
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 27 Sep 2014 16:35:47 +0000 (12:35 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 27 Dec 2014 05:01:50 +0000 (00:01 -0500)
Also add new package avrlibc, as AVR target uses it instead of glibc.

config/avr/sysinfos [new file with mode: 0644]
config/packages-list
stage0/hv-install-2
stage0/packages-update
targets/avr [new file with mode: 0644]

diff --git a/config/avr/sysinfos b/config/avr/sysinfos
new file mode 100644 (file)
index 0000000..3890c1b
--- /dev/null
@@ -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}"
index 954278b..35abb50 100644 (file)
@@ -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"
index d4ae7b4..0fd794c 100755 (executable)
@@ -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 $?
index 167e9de..d220f0f 100755 (executable)
@@ -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 (file)
index 0000000..c74dbab
--- /dev/null
@@ -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