From 27bc59d4885057c6a167b386ba6140b7a95e5fd7 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 17 Jan 2003 04:31:36 +0000 Subject: Support building jffs2 filesystems. Update top level makefile accordingly --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1738266ce..32fe36110 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,7 @@ TARGETS= # What sortof target system shall we compile this for? ARCH:=i386 #ARCH:=arm +#ARCH:=powerpc #ARCH:=whatever # enable to build a native gcc toolchain with uclibc support @@ -53,6 +54,16 @@ BUILD_WITH_LARGEFILE:=true # Command used to download source code WGET:=wget --passive-ftp +# Optimize toolchain for which type of CPU? +#OPTIMIZE_FOR_CPU:=i486 +#OPTIMIZE_FOR_CPU:=strongarm +#OPTIMIZE_FOR_CPU:=whatever +OPTIMIZE_FOR_CPU:=$(ARCH) + +# Any additional gcc options you may want to include.... +#EXTRA_GCC_CONFIG_OPTIONS:=--without-float +EXTRA_GCC_CONFIG_OPTIONS:= + ############################################################# # # The list of stuff to build for the target filesystem @@ -95,6 +106,14 @@ TARGETS+=busybox tinylogin # Pick your root filesystem type. TARGETS+=ext2root +# Must mount cramfs with 'ramdisk_blocksize=4096' +#TARGETS+=cramfsroot + +# You may need to edit make/jffs2root.mk to change target +# endian-ness or similar, but this is sufficient for most +# things as-is... +#TARGETS+=jffs2root + ############################################################# # # You should probably leave this stuff alone unless you know @@ -116,6 +135,7 @@ TARGET_PATH:=$(STAGING_DIR)/bin:$(STAGING_DIR)/usr/bin:/bin:/sbin:/usr/bin:/usr/ STRIP:=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note #STRIP:=/bin/true IMAGE:=$(BASE_DIR)/root_fs +GNU_TARGET_NAME:=$(OPTIMIZE_FOR_CPU)-pc-linux-gnu ifneq ($(strip $(ARCH)),i386) CROSS:=$(ARCH)-linux- endif -- cgit v1.2.3-55-g7522