To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2469
2468  |  2470
Subject: 
RE: Makefile patch
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 17 Apr 2002 18:13:55 GMT
Viewed: 
1801 times
  
I can get binutils done, but in gcc make ALL_TARGET_MODULES=""  and
make INSTALL_TARGET_MODULES="" install do not work...they come up with
errors.

I'm using the most recent version of cygwin.

As for the script, all I get is Building h8x tools from
/lego-ms/binutils-20011002-1 and gcc-2.95.3-5 which according to the
script, seems to be what would happen anyway because of the "exit 4":

#!/bin/bash

# Syntax: ./build-h8x binutils-srcdir gcc-srcdir

[ -z "$1" ] || [ ! -d $1/binutils ] && { echo 'Argument 1 must be a
binutils source directory!'; exit 1; }
[ -z "$2" ] || [ ! -d $2/gcc ] && { echo 'Argument 2 must be a gcc
source directory!'; exit 2; }
[ -a /h8x ] && { echo 'Directory /h8x already exists!'; exit 3; }

echo "Building h8x tools from $1 and $2"
exit 4

export PATH=/h8x/bin:$PATH &&
pushd $1 && rm -rf objdir && mkdir objdir && cd objdir &&
echo -e '\033[31m' && ../configure --prefix=/h8x --target=h8300-hms
--disable-nls &&
echo -e '\033[32m' && make all &&
echo -e '\033[33m' && make install && popd &&
pushd $2 && rm -rf objdir && mkdir objdir && cd objdir &&
echo -e '\033[34m' && ../configure --prefix=/h8x --target=h8300-hms
--disable-nls --enable-languages=c,c++ --with-newlib &&
echo -e '\033[35m' && make ALL_TARGET_MODULES="" &&
echo -e '\033[36m' && make INSTALL_TARGET_MODULES="" install && popd &&
echo -e '\033[37mALL DONE!\033[0m'

does any of this make sense?
I'm assuming that even if I did get the patch working I would be no
better off since make ALL_TARGET_MODULES="" doesn't work.

thanks

-----Original Message-----
From: Max Bowsher [mailto:maxb@ukf.net]
Sent: Tuesday, April 16, 2002 7:11 PM
To: lugnet.robotics.rcx.legos@lugnet.com; Kingsley Gifford
Subject: Re: Makefile patch

Well problem 1, you need configure, not config.

You may be interested in the attached script, which when invoked with
the paths
to unpacked binutils and gcc source directories, automates the process.

Something like: ./build-h8x binutils-2.12 gcc-2.95.3

Max.



Message has 1 Reply:
  Re: Makefile patch
 
(...) Ooops. Forgot to remove that before I sent it to you. Delete that line. (...) Well, I wrote the script, so I guess it makes sense to me. (...) True... BUT: You are using the cygwin versions of binutils and gcc. I don't know why, and don't have (...) (22 years ago, 18-Apr-02, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: Makefile patch
 
Well problem 1, you need configure, not config. You may be interested in the attached script, which when invoked with the paths to unpacked binutils and gcc source directories, automates the process. Something like: ./build-h8x binutils-2.12 (...) (22 years ago, 16-Apr-02, to lugnet.robotics.rcx.legos)

11 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR