mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-10 19:02:28 +02:00
removed the old directories, too.. cleanup is ready, yay
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2130 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a14b6eb992
commit
bf3eda107c
@ -1,13 +0,0 @@
|
||||
# The "checkoutlist" file is used to support additional version controlled
|
||||
# administrative files in $CVSROOT/CVSROOT, such as template files.
|
||||
#
|
||||
# The first entry on a line is a filename which will be checked out from
|
||||
# the corresponding RCS file in the $CVSROOT/CVSROOT directory.
|
||||
# The remainder of the line is an error message to use if the file cannot
|
||||
# be checked out.
|
||||
#
|
||||
# File format:
|
||||
#
|
||||
# [<whitespace>]<filename><whitespace><error message><end-of-line>
|
||||
#
|
||||
# comment lines begin with '#'
|
@ -1,327 +0,0 @@
|
||||
#!/usr/bin/perl -w
|
||||
#
|
||||
# ciabot -- Mail a CVS log message to a given address, for the purposes of CIA
|
||||
#
|
||||
# Loosely based on cvslog by Russ Allbery <rra@stanford.edu>
|
||||
# Copyright 1998 Board of Trustees, Leland Stanford Jr. University
|
||||
#
|
||||
# Copyright 2001, 2003, 2004 Petr Baudis <pasky@ucw.cz>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it under
|
||||
# the terms of the GNU General Public License version 2, as published by the
|
||||
# Free Software Foundation.
|
||||
#
|
||||
# The master location of this file is
|
||||
# http://pasky.or.cz/~pasky/dev/cvs/ciabot.pl.
|
||||
#
|
||||
# This program is designed to run from the loginfo CVS administration file. It
|
||||
# takes a log message, massaging it and mailing it to the address given below.
|
||||
#
|
||||
# Its record in the loginfo file should look like:
|
||||
#
|
||||
# ALL $CVSROOT/CVSROOT/ciabot.pl %s $USER project from_email dest_email ignore_regexp
|
||||
#
|
||||
# Note that the last four parameters are optional, you can alternatively change
|
||||
# the defaults below in the configuration section.
|
||||
#
|
||||
# If it does not work, try to disable $xml_rpc in the configuration section
|
||||
# below.
|
||||
#
|
||||
# ciabot.pl,v 1.110 2004/01/09 17:40:13 pasky
|
||||
# $Id$
|
||||
|
||||
use strict;
|
||||
use vars qw ($project $from_email $dest_email $rpc_uri $sendmail $sync_delay
|
||||
$xml_rpc $ignore_regexp $alt_local_message_target);
|
||||
|
||||
|
||||
|
||||
|
||||
### Configuration
|
||||
|
||||
# Project name (as known to CIA).
|
||||
$project = 'ELinks';
|
||||
|
||||
# The from address in generated mails.
|
||||
$from_email = 'pasky@ucw.cz';
|
||||
|
||||
# Mail all reports to this address.
|
||||
$dest_email = 'cia@navi.cx';
|
||||
|
||||
# If using XML-RPC, connect to this URI.
|
||||
$rpc_uri = 'http://cia.navi.cx/RPC2';
|
||||
|
||||
# Path to your USCD sendmail compatible binary (your mailer daemon created this
|
||||
# program somewhere).
|
||||
$sendmail = '/usr/sbin/sendmail';
|
||||
|
||||
# Number of seconds to wait for possible concurrent instances. CVS calls up
|
||||
# this script for each involved directory separately and this is the sync
|
||||
# delay. 5s looks as a safe value, but feel free to increase if you are running
|
||||
# this on a slower (or overloaded) machine or if you have really a lot of
|
||||
# directories.
|
||||
$sync_delay = 5;
|
||||
|
||||
# This script can communicate with CIA either by mail or by an XML-RPC
|
||||
# interface. The XML-RPC interface is faster and more efficient, however you
|
||||
# need to have RPC::XML perl module installed, and some large CVS hosting sites
|
||||
# (like Savannah or Sourceforge) might not allow outgoing HTTP connections
|
||||
# while they allow outgoing mail. Also, this script will hang and eventually
|
||||
# not deliver the event at all if CIA server happens to be down, which is
|
||||
# unfortunately not an uncommon condition.
|
||||
$xml_rpc = 0;
|
||||
|
||||
# You can make this bot to totally ignore events concerning the objects
|
||||
# specified below. Each object is composed of <module>/<path>/<filename>,
|
||||
# therefore file Manifest in root directory of module gentoo will be called
|
||||
# "gentoo/Manifest", while file src/bfu/inphist.c of module elinks will be
|
||||
# called "elinks/src/bfu/inphist.c". Easy, isn't it?
|
||||
#
|
||||
# This variable should contain regexp, against which will each object be
|
||||
# checked, and if the regexp is matched, the file is ignored. Therefore ie. to
|
||||
# ignore all changes in the two files above and everything concerning module
|
||||
# 'admin', use:
|
||||
#
|
||||
#$ignore_regexp = "^(gentoo/Manifest|elinks/src/bfu/inphist.c|admin/)";
|
||||
$ignore_regexp = "/Manifest\$";
|
||||
|
||||
# It can be useful to also grab the generated XML message by some other
|
||||
# programs and ie. autogenerate some content based on it. Here you can specify
|
||||
# a file to which it will be appended.
|
||||
$alt_local_message_target = "";
|
||||
|
||||
|
||||
|
||||
|
||||
### The code itself
|
||||
|
||||
use vars qw ($user $module $tag @files $logmsg $message);
|
||||
|
||||
my @dir; # This array stores all the affected directories
|
||||
my @dirfiles; # This array is mapped to the @dir array and contains files
|
||||
# affected in each directory
|
||||
|
||||
|
||||
|
||||
### Input data loading
|
||||
|
||||
|
||||
# These arguments are from %s; first the relative path in the repository
|
||||
# and then the list of files modified.
|
||||
|
||||
@files = split (' ', ($ARGV[0] or ''));
|
||||
$dir[0] = shift @files or die "$0: no directory specified\n";
|
||||
$dirfiles[0] = "@files" or die "$0: no files specified\n";
|
||||
|
||||
|
||||
# Guess module name.
|
||||
|
||||
$module = $dir[0]; $module =~ s#/.*##;
|
||||
|
||||
|
||||
# Figure out who is doing the update.
|
||||
|
||||
$user = $ARGV[1];
|
||||
|
||||
|
||||
# Use the optional parameters, if supplied.
|
||||
|
||||
$project = $ARGV[2] if $ARGV[2];
|
||||
$from_email = $ARGV[3] if $ARGV[3];
|
||||
$dest_email = $ARGV[4] if $ARGV[4];
|
||||
$ignore_regexp = $ARGV[5] if $ARGV[5];
|
||||
|
||||
|
||||
# Parse stdin (what's interesting is the tag and log message)
|
||||
|
||||
while (<STDIN>) {
|
||||
$tag = $1 if /^\s*Tag: ([a-zA-Z0-9_-]+)/;
|
||||
last if /^Log Message/;
|
||||
}
|
||||
|
||||
while (<STDIN>) {
|
||||
next unless ($_ and $_ ne "\n" and $_ ne "\r\n");
|
||||
s/&/&/g;
|
||||
s/</</g;
|
||||
s/>/>/g;
|
||||
$logmsg .= $_;
|
||||
}
|
||||
|
||||
|
||||
|
||||
### Remove to-be-ignored files
|
||||
|
||||
$dirfiles[0] = join (' ',
|
||||
grep {
|
||||
my $f = "$module/$dir[0]/$_";
|
||||
$f !~ m/$ignore_regexp/;
|
||||
} split (/\s+/, $dirfiles[0])
|
||||
) if ($ignore_regexp);
|
||||
exit unless $dirfiles[0];
|
||||
|
||||
|
||||
|
||||
### Sync between the multiple instances potentially being ran simultanously
|
||||
|
||||
my $sum; # _VERY_ simple hash of the log message. It is really weak, but I'm
|
||||
# lazy and it's really sorta exceptional to even get more commits
|
||||
# running simultanously anyway.
|
||||
map { $sum += ord $_ } split(//, $logmsg);
|
||||
|
||||
my $syncfile; # Name of the file used for syncing
|
||||
$syncfile = "/tmp/cvscia.$project.$module.$sum";
|
||||
|
||||
|
||||
if (-f $syncfile and -w $syncfile) {
|
||||
# The synchronization file for this file already exists, so we are not the
|
||||
# first ones. So let's just dump what we know and exit.
|
||||
|
||||
open(FF, ">>$syncfile") or die "aieee... can't log, can't log! $syncfile blocked!";
|
||||
print FF "$dirfiles[0]!@!$dir[0]\n";
|
||||
close(FF);
|
||||
exit;
|
||||
|
||||
} else {
|
||||
# We are the first one! Thus, we'll fork, exit the original instance, and
|
||||
# wait a bit with the new one. Then we'll grab what the others collected and
|
||||
# go on.
|
||||
|
||||
# We don't need to care about permissions since all the instances of the one
|
||||
# commit will obviously live as the same user.
|
||||
|
||||
# system("touch") in a different way
|
||||
open(FF, ">>$syncfile") or die "aieee... can't log, can't log! $syncfile blocked!";
|
||||
close(FF);
|
||||
|
||||
exit if (fork);
|
||||
sleep($sync_delay);
|
||||
|
||||
open(FF, $syncfile);
|
||||
my ($dirnum) = 1; # 0 is the one we got triggerred for
|
||||
while (<FF>) {
|
||||
chomp;
|
||||
($dirfiles[$dirnum], $dir[$dirnum]) = split(/!@!/);
|
||||
$dirnum++;
|
||||
}
|
||||
close(FF);
|
||||
|
||||
unlink($syncfile);
|
||||
}
|
||||
|
||||
|
||||
|
||||
### Compose the mail message
|
||||
|
||||
|
||||
my ($VERSION) = '$Revision$' =~ / (\d+\.\d+) /;
|
||||
my $ts = time;
|
||||
|
||||
$message = <<EM
|
||||
<message>
|
||||
<generator>
|
||||
<name>CIA Perl client for CVS</name>
|
||||
<version>$VERSION</version>
|
||||
<url>http://pasky.or.cz/~pasky/dev/cvs/ciabot.pl</url>
|
||||
</generator>
|
||||
<source>
|
||||
<project>$project</project>
|
||||
<module>$module</module>
|
||||
EM
|
||||
;
|
||||
$message .= " <branch>$tag</branch>" if ($tag);
|
||||
$message .= <<EM
|
||||
</source>
|
||||
<timestamp>
|
||||
$ts
|
||||
</timestamp>
|
||||
<body>
|
||||
<commit>
|
||||
<author>$user</author>
|
||||
<files>
|
||||
EM
|
||||
;
|
||||
|
||||
for (my $dirnum = 0; $dirnum < @dir; $dirnum++) {
|
||||
map {
|
||||
$_ = $dir[$dirnum] . '/' . $_;
|
||||
s#^.*?/##; # weed out the module name
|
||||
s/&/&/g;
|
||||
s/</</g;
|
||||
s/>/>/g;
|
||||
$message .= " <file>$_</file>\n";
|
||||
} split(/ /, $dirfiles[$dirnum]);
|
||||
}
|
||||
|
||||
$message .= <<EM
|
||||
</files>
|
||||
<log>
|
||||
$logmsg
|
||||
</log>
|
||||
</commit>
|
||||
</body>
|
||||
</message>
|
||||
EM
|
||||
;
|
||||
|
||||
|
||||
|
||||
### Write the message to an alt-target
|
||||
|
||||
if ($alt_local_message_target and open (ALT, ">>$alt_local_message_target")) {
|
||||
print ALT $message;
|
||||
close ALT;
|
||||
}
|
||||
|
||||
|
||||
|
||||
### Send out the XML-RPC message
|
||||
|
||||
|
||||
if ($xml_rpc) {
|
||||
# We gotta be careful from now on. We silence all the warnings because
|
||||
# RPC::XML code is crappy and works with undefs etc.
|
||||
$^W = 0;
|
||||
$RPC::XML::ERROR if (0); # silence perl's compile-time warning
|
||||
|
||||
require RPC::XML;
|
||||
require RPC::XML::Client;
|
||||
|
||||
my $rpc_client = new RPC::XML::Client $rpc_uri;
|
||||
my $rpc_request = RPC::XML::request->new('hub.deliver', $message);
|
||||
my $rpc_response = $rpc_client->send_request($rpc_request);
|
||||
|
||||
unless (ref $rpc_response) {
|
||||
die "XML-RPC Error: $RPC::XML::ERROR\n";
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
### Send out the mail
|
||||
|
||||
|
||||
# Open our mail program
|
||||
|
||||
open (MAIL, "| $sendmail -t -oi -oem") or die "Cannot execute $sendmail : " . ($?>>8);
|
||||
|
||||
|
||||
# The mail header
|
||||
|
||||
print MAIL <<EOM;
|
||||
From: $from_email
|
||||
To: $dest_email
|
||||
Content-type: text/xml
|
||||
Subject: DeliverXML
|
||||
|
||||
EOM
|
||||
|
||||
print MAIL $message;
|
||||
|
||||
|
||||
# Close the mail
|
||||
|
||||
close MAIL;
|
||||
die "$0: sendmail exit status " . ($? >> 8) . "\n" unless ($? == 0);
|
||||
|
||||
# vi: set sw=2:
|
@ -1,15 +0,0 @@
|
||||
# The "commitinfo" file is used to control pre-commit checks.
|
||||
# The filter on the right is invoked with the repository and a list
|
||||
# of files to check. A non-zero exit of the filter program will
|
||||
# cause the commit to be aborted.
|
||||
#
|
||||
# The first entry on a line is a regular expression which is tested
|
||||
# against the directory that the change is being committed to, relative
|
||||
# to the $CVSROOT. For the first match that is found, then the remainder
|
||||
# of the line is the name of the filter to run.
|
||||
#
|
||||
# If the repository name does not match any of the regular expressions in this
|
||||
# file, the "DEFAULT" line is used, if it is specified.
|
||||
#
|
||||
# If the name "ALL" appears as a regular expression it is always used
|
||||
# in addition to the first matching regex or "DEFAULT".
|
@ -1,14 +0,0 @@
|
||||
# Set this to "no" if pserver shouldn't check system users/passwords
|
||||
#SystemAuth=no
|
||||
|
||||
# Put CVS lock files in this directory rather than directly in the repository.
|
||||
#LockDir=/var/lock/cvs
|
||||
|
||||
# Set `TopLevelAdmin' to `yes' to create a CVS directory at the top
|
||||
# level of the new working directory when using the `cvs checkout'
|
||||
# command.
|
||||
#TopLevelAdmin=no
|
||||
|
||||
# Set `LogHistory' to `all' or `TOFEWGCMAR' to log all transactions to the
|
||||
# history file, or a subset as needed (ie `TMAR' logs all write operations)
|
||||
#LogHistory=TOFEWGCMAR
|
@ -1,23 +0,0 @@
|
||||
# This file affects handling of files based on their names.
|
||||
#
|
||||
# The -t/-f options allow one to treat directories of files
|
||||
# as a single file, or to transform a file in other ways on
|
||||
# its way in and out of CVS.
|
||||
#
|
||||
# The -m option specifies whether CVS attempts to merge files.
|
||||
#
|
||||
# The -k option specifies keyword expansion (e.g. -kb for binary).
|
||||
#
|
||||
# Format of wrapper file ($CVSROOT/CVSROOT/cvswrappers or .cvswrappers)
|
||||
#
|
||||
# wildcard [option value][option value]...
|
||||
#
|
||||
# where option is one of
|
||||
# -f from cvs filter value: path to filter
|
||||
# -t to cvs filter value: path to filter
|
||||
# -m update methodology value: MERGE or COPY
|
||||
# -k expansion mode value: b, o, kkv, &c
|
||||
#
|
||||
# and value is a single-quote delimited value.
|
||||
# For example:
|
||||
#*.gif -k 'b'
|
@ -1,21 +0,0 @@
|
||||
# The "editinfo" file is used to allow verification of logging
|
||||
# information. It works best when a template (as specified in the
|
||||
# rcsinfo file) is provided for the logging procedure. Given a
|
||||
# template with locations for, a bug-id number, a list of people who
|
||||
# reviewed the code before it can be checked in, and an external
|
||||
# process to catalog the differences that were code reviewed, the
|
||||
# following test can be applied to the code:
|
||||
#
|
||||
# Making sure that the entered bug-id number is correct.
|
||||
# Validating that the code that was reviewed is indeed the code being
|
||||
# checked in (using the bug-id number or a seperate review
|
||||
# number to identify this particular code set.).
|
||||
#
|
||||
# If any of the above test failed, then the commit would be aborted.
|
||||
#
|
||||
# Actions such as mailing a copy of the report to each reviewer are
|
||||
# better handled by an entry in the loginfo file.
|
||||
#
|
||||
# One thing that should be noted is the the ALL keyword is not
|
||||
# supported. There can be only one entry that matches a given
|
||||
# repository.
|
@ -1,29 +0,0 @@
|
||||
# The "loginfo" file controls where "cvs commit" log information
|
||||
# is sent. The first entry on a line is a regular expression which must match
|
||||
# the directory that the change is being made to, relative to the
|
||||
# $CVSROOT. If a match is found, then the remainder of the line is a filter
|
||||
# program that should expect log information on its standard input.
|
||||
#
|
||||
# If the repository name does not match any of the regular expressions in this
|
||||
# file, the "DEFAULT" line is used, if it is specified.
|
||||
#
|
||||
# If the name ALL appears as a regular expression it is always used
|
||||
# in addition to the first matching regex or DEFAULT.
|
||||
#
|
||||
# You may specify a format string as part of the
|
||||
# filter. The string is composed of a `%' followed
|
||||
# by a single format character, or followed by a set of format
|
||||
# characters surrounded by `{' and `}' as separators. The format
|
||||
# characters are:
|
||||
#
|
||||
# s = file name
|
||||
# V = old version number (pre-checkin)
|
||||
# v = new version number (post-checkin)
|
||||
#
|
||||
# For example:
|
||||
#DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
|
||||
# or
|
||||
#DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog
|
||||
|
||||
#^buildroot ( $CVSROOT/CVSROOT/ciabot.pl %s $USER openwrt cvs-commits@openwrt.ksilebo.net cia@navi.cx )
|
||||
#^root ( $CVSROOT/CVSROOT/ciabot.pl %s $USER openwrt cvs-commits@openwrt.ksilebo.net cia@navi.cx )
|
@ -1,26 +0,0 @@
|
||||
# Three different line formats are valid:
|
||||
# key -a aliases...
|
||||
# key [options] directory
|
||||
# key [options] directory files...
|
||||
#
|
||||
# Where "options" are composed of:
|
||||
# -i prog Run "prog" on "cvs commit" from top-level of module.
|
||||
# -o prog Run "prog" on "cvs checkout" of module.
|
||||
# -e prog Run "prog" on "cvs export" of module.
|
||||
# -t prog Run "prog" on "cvs rtag" of module.
|
||||
# -u prog Run "prog" on "cvs update" of module.
|
||||
# -d dir Place module in directory "dir" instead of module name.
|
||||
# -l Top-level directory only -- do not recurse.
|
||||
#
|
||||
# NOTE: If you change any of the "Run" options above, you'll have to
|
||||
# release and re-checkout any working directories of these modules.
|
||||
#
|
||||
# And "directory" is a path to a directory relative to $CVSROOT.
|
||||
#
|
||||
# The "-a" option specifies an alias. An alias is interpreted as if
|
||||
# everything on the right of the "-a" had been typed on the command line.
|
||||
#
|
||||
# You can encode a module within a module by using the special '&'
|
||||
# character to interpose another module into the current module. This
|
||||
# can be useful for creating a module that consists of many directories
|
||||
# spread out over the entire source repository.
|
@ -1,12 +0,0 @@
|
||||
# The "notify" file controls where notifications from watches set by
|
||||
# "cvs watch add" or "cvs edit" are sent. The first entry on a line is
|
||||
# a regular expression which is tested against the directory that the
|
||||
# change is being made to, relative to the $CVSROOT. If it matches,
|
||||
# then the remainder of the line is a filter program that should contain
|
||||
# one occurrence of %s for the user to notify, and information on its
|
||||
# standard input.
|
||||
#
|
||||
# "ALL" or "DEFAULT" can be used in place of the regular expression.
|
||||
#
|
||||
# For example:
|
||||
#ALL mail %s -s "CVS notification"
|
@ -1,13 +0,0 @@
|
||||
# The "rcsinfo" file is used to control templates with which the editor
|
||||
# is invoked on commit and import.
|
||||
#
|
||||
# The first entry on a line is a regular expression which is tested
|
||||
# against the directory that the change is being made to, relative to the
|
||||
# $CVSROOT. For the first match that is found, then the remainder of the
|
||||
# line is the name of the file that contains the template.
|
||||
#
|
||||
# If the repository name does not match any of the regular expressions in this
|
||||
# file, the "DEFAULT" line is used, if it is specified.
|
||||
#
|
||||
# If the name "ALL" appears as a regular expression it is always used
|
||||
# in addition to the first matching regex or "DEFAULT".
|
@ -1,20 +0,0 @@
|
||||
# The "taginfo" file is used to control pre-tag checks.
|
||||
# The filter on the right is invoked with the following arguments:
|
||||
#
|
||||
# $1 -- tagname
|
||||
# $2 -- operation "add" for tag, "mov" for tag -F, and "del" for tag -d
|
||||
# $3 -- repository
|
||||
# $4-> file revision [file revision ...]
|
||||
#
|
||||
# A non-zero exit of the filter program will cause the tag to be aborted.
|
||||
#
|
||||
# The first entry on a line is a regular expression which is tested
|
||||
# against the directory that the change is being committed to, relative
|
||||
# to the $CVSROOT. For the first match that is found, then the remainder
|
||||
# of the line is the name of the filter to run.
|
||||
#
|
||||
# If the repository name does not match any of the regular expressions in this
|
||||
# file, the "DEFAULT" line is used, if it is specified.
|
||||
#
|
||||
# If the name "ALL" appears as a regular expression it is always used
|
||||
# in addition to the first matching regex or "DEFAULT".
|
@ -1,21 +0,0 @@
|
||||
# The "verifymsg" file is used to allow verification of logging
|
||||
# information. It works best when a template (as specified in the
|
||||
# rcsinfo file) is provided for the logging procedure. Given a
|
||||
# template with locations for, a bug-id number, a list of people who
|
||||
# reviewed the code before it can be checked in, and an external
|
||||
# process to catalog the differences that were code reviewed, the
|
||||
# following test can be applied to the code:
|
||||
#
|
||||
# Making sure that the entered bug-id number is correct.
|
||||
# Validating that the code that was reviewed is indeed the code being
|
||||
# checked in (using the bug-id number or a seperate review
|
||||
# number to identify this particular code set.).
|
||||
#
|
||||
# If any of the above test failed, then the commit would be aborted.
|
||||
#
|
||||
# Actions such as mailing a copy of the report to each reviewer are
|
||||
# better handled by an entry in the loginfo file.
|
||||
#
|
||||
# One thing that should be noted is the the ALL keyword is not
|
||||
# supported. There can be only one entry that matches a given
|
||||
# repository.
|
@ -1,4 +0,0 @@
|
||||
UMlinux
|
||||
root_fs*
|
||||
build_*
|
||||
toolchain_build_*
|
@ -1,264 +0,0 @@
|
||||
# Makefile for a simple busybox/uClibc root filesystem
|
||||
#
|
||||
# Copyright (C) 2001-2004 Erik Andersen <andersen@codepoet.org>
|
||||
# Copyright (C) 2002 by Tim Riker <Tim@Rikers.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Library General Public License as
|
||||
# published by the Free Software Foundation; either version 2 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Library General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Library General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
# USA
|
||||
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# EDIT this stuff to suit your system and preferences
|
||||
#
|
||||
# Use := when possible to get precomputation, thereby
|
||||
# speeding up the build process.
|
||||
#
|
||||
#############################################################
|
||||
|
||||
SNAPSHOT:=20050101
|
||||
|
||||
ARCH:=mipsel
|
||||
#USE_UCLIBC_SNAPSHOT:=$(SNAPSHOT)
|
||||
USE_UCLIBC_LDSO_0_9_24:=false
|
||||
#USE_BUSYBOX_SNAPSHOT:=$(SNAPSHOT)
|
||||
USE_NETFILTER_SNAPSHOT:=20041009
|
||||
USE_BRIDGE_VERSION:=1.0.4
|
||||
BUILD_WITH_LARGEFILE:=true
|
||||
|
||||
OPTIMIZE_FOR_CPU=$(ARCH)
|
||||
|
||||
# Command used to download source code
|
||||
WGET:=wget --passive-ftp
|
||||
|
||||
# Soft floating point options.
|
||||
# Notes:
|
||||
# Currently builds with gcc 3.3 for arm, mips, mipsel, powerpc.
|
||||
# (i386 support will be added back in at some point.)
|
||||
# Only tested with multilib enabled.
|
||||
# For i386, long double is the same as double (64 bits). While this
|
||||
# is unusual for x86, it seemed the best approach considering the
|
||||
# limitations in the gcc floating point emulation library.
|
||||
# For arm, soft float uses the usual libfloat routines.
|
||||
# Custom specs files are used to set the default gcc mode to soft float
|
||||
# as a convenience, since you shouldn't link hard and soft float
|
||||
# together. In fact, arm won't even let you.
|
||||
# (Un)comment the appropriate line below.
|
||||
#SOFT_FLOAT:=true
|
||||
SOFT_FLOAT:=false
|
||||
|
||||
TARGET_OPTIMIZATION=-Os -mips2
|
||||
TARGET_DEBUGGING= #-g
|
||||
|
||||
# Currently the unwind stuff seems to work for staticly linked apps but
|
||||
# not dynamic. So use setjmp/longjmp exceptions by default.
|
||||
# GCC_USE_SJLJ_EXCEPTIONS:=--enable-sjlj-exceptions
|
||||
GCC_USE_SJLJ_EXCEPTIONS:=
|
||||
|
||||
# Any additional gcc options you may want to include....
|
||||
EXTRA_GCC_CONFIG_OPTIONS:=
|
||||
|
||||
# Enable the following if you want locale/gettext/i18n support.
|
||||
# NOTE! Currently the pregnerated locale stuff only works for x86!
|
||||
#ENABLE_LOCALE:=true
|
||||
ENABLE_LOCALE:=false
|
||||
|
||||
# If you want multilib enabled, enable this...
|
||||
MULTILIB:=--enable-multilib
|
||||
|
||||
# Build/install c++ compiler and libstdc++?
|
||||
#INSTALL_LIBSTDCPP:=true
|
||||
INSTALL_LIBSTDCPP:=false
|
||||
|
||||
# Build/install java compiler and libgcj? (requires c++)
|
||||
# WARNING!!! DOES NOT BUILD FOR TARGET WITHOUT INTERVENTION!!! mjn3
|
||||
#INSTALL_LIBGCJ:=true
|
||||
INSTALL_LIBGCJ:=false
|
||||
|
||||
# For SMP machines some stuff can be run in parallel
|
||||
#JLEVEL=-j3
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# The list of stuff to build for the target filesystem
|
||||
#
|
||||
#############################################################
|
||||
TARGETS:=host-sed openwrt-code.bin
|
||||
|
||||
PACKAGES:=oidentd iproute2 kmod-sched wshaper zlib openssl openssh pppoecd dropbear chillispot dhcp-fwd ip6tables kmod-ipt6 kmod-ipv6 kmod-nfs kmod-ppp-async kmod-ppp-mppe-mppc ppp pppoecd pptp-server kmod-tun fprobe libpcap libpthread pptp-client vsftpd matrixssl ntpclient radvd strace
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# You should probably leave this stuff alone unless you know
|
||||
# what you are doing.
|
||||
#
|
||||
#############################################################
|
||||
|
||||
ifeq ($(SOFT_FLOAT),true)
|
||||
SOFT_FLOAT_CONFIG_OPTION:=--without-float
|
||||
TARGET_SOFT_FLOAT:=-msoft-float
|
||||
ARCH_FPU_SUFFIX:=_nofpu
|
||||
else
|
||||
SOFT_FLOAT_CONFIG_OPTION:=
|
||||
TARGET_SOFT_FLOAT:=
|
||||
ARCH_FPU_SUFFIX:=
|
||||
endif
|
||||
|
||||
ifeq ($(INSTALL_LIBGCJ),true)
|
||||
INSTALL_LIBSTDCPP:=true
|
||||
endif
|
||||
|
||||
# WARNING -- uClibc currently disables large file support on cris.
|
||||
ifeq ("$(strip $(ARCH))","cris")
|
||||
BUILD_WITH_LARGEFILE:=false
|
||||
endif
|
||||
|
||||
ifneq ($(BUILD_WITH_LARGEFILE),true)
|
||||
DISABLE_LARGEFILE= --disable-largefile
|
||||
endif
|
||||
TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)
|
||||
|
||||
HOSTCC:=gcc
|
||||
BASE_DIR:=${shell pwd}
|
||||
SOURCE_DIR:=$(BASE_DIR)/sources
|
||||
DL_DIR:=$(SOURCE_DIR)/dl
|
||||
PATCH_DIR=$(SOURCE_DIR)/patches
|
||||
BUILD_DIR:=$(BASE_DIR)/build_$(ARCH)$(ARCH_FPU_SUFFIX)
|
||||
TARGET_DIR:=$(BUILD_DIR)/root
|
||||
STAGING_DIR=$(BUILD_DIR)/staging_dir
|
||||
TOOL_BUILD_DIR=$(BASE_DIR)/toolchain_build_$(ARCH)$(ARCH_FPU_SUFFIX)
|
||||
TARGET_PATH=$(STAGING_DIR)/bin:/bin:/sbin:/usr/bin:/usr/sbin
|
||||
IMAGE:=$(BASE_DIR)/root_fs_$(ARCH)$(ARCH_FPU_SUFFIX)
|
||||
REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux-uclibc
|
||||
GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
|
||||
KERNEL_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
|
||||
TARGET_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
|
||||
TARGET_CC=$(TARGET_CROSS)gcc
|
||||
#STRIP=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note --strip-unneeded
|
||||
STRIP=$(STAGING_DIR)/bin/sstrip
|
||||
|
||||
HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
|
||||
-e 's/sparc.*/sparc/' \
|
||||
-e 's/arm.*/arm/g' \
|
||||
-e 's/m68k.*/m68k/' \
|
||||
-e 's/ppc/powerpc/g' \
|
||||
-e 's/v850.*/v850/g' \
|
||||
-e 's/sh[234]/sh/' \
|
||||
-e 's/mips-.*/mips/' \
|
||||
-e 's/mipsel-.*/mipsel/' \
|
||||
-e 's/cris.*/cris/' \
|
||||
-e 's/i[3-9]86/i386/' \
|
||||
)
|
||||
GNU_HOST_NAME:=$(HOST_ARCH)-pc-linux-gnu
|
||||
TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
|
||||
AR=$(TARGET_CROSS)ar \
|
||||
AS=$(TARGET_CROSS)as \
|
||||
LD=$(TARGET_CROSS)ld \
|
||||
NM=$(TARGET_CROSS)nm \
|
||||
CC=$(TARGET_CROSS)gcc \
|
||||
GCC=$(TARGET_CROSS)gcc \
|
||||
CXX=$(TARGET_CROSS)g++ \
|
||||
RANLIB=$(TARGET_CROSS)ranlib
|
||||
|
||||
ifeq ($(ENABLE_LOCALE),true)
|
||||
DISABLE_NLS:=
|
||||
else
|
||||
DISABLE_NLS:=--disable-nls
|
||||
endif
|
||||
|
||||
all: world
|
||||
|
||||
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
|
||||
TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS))
|
||||
TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS))
|
||||
|
||||
|
||||
PACKAGES_IPK:=$(patsubst %,%-ipk,$(PACKAGES))
|
||||
OPENWRT_IPK_DIR=$(SOURCE_DIR)/openwrt/ipkg
|
||||
|
||||
world: $(DL_DIR) $(TARGETS_SOURCE) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) $(TARGETS)
|
||||
@echo "ALL DONE."
|
||||
|
||||
packages: ipkg-utils $(PACKAGES_IPK)
|
||||
-@mkdir -p $(BASE_DIR)/packages
|
||||
{ \
|
||||
cd $(BASE_DIR)/packages; \
|
||||
mv $(BUILD_DIR)/*.ipk .; \
|
||||
$(IPKG_MAKE_INDEX) . > Packages; \
|
||||
}
|
||||
@echo "ALL DONE."
|
||||
|
||||
.PHONY: all world clean dirclean distclean source $(TARGETS) \
|
||||
$(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE)
|
||||
|
||||
include make/*.mk
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# staging and target directories do NOT list these as
|
||||
# dependancies anywhere else
|
||||
#
|
||||
#############################################################
|
||||
$(DL_DIR):
|
||||
mkdir $(DL_DIR)
|
||||
|
||||
$(BUILD_DIR):
|
||||
mkdir $(BUILD_DIR)
|
||||
|
||||
$(STAGING_DIR):
|
||||
rm -rf $(STAGING_DIR)
|
||||
mkdir -p $(STAGING_DIR)/lib
|
||||
mkdir -p $(STAGING_DIR)/usr
|
||||
ln -fs $(REAL_GNU_TARGET_NAME)/include $(STAGING_DIR)/include
|
||||
ln -fs ../lib $(STAGING_DIR)/usr/lib
|
||||
ln -fs ../$(REAL_GNU_TARGET_NAME)/include $(STAGING_DIR)/usr/include
|
||||
|
||||
|
||||
$(TARGET_DIR):
|
||||
rm -rf $(TARGET_DIR)
|
||||
cp -a $(SOURCE_DIR)/openwrt/root/ $(TARGET_DIR)
|
||||
-find $(TARGET_DIR) -type d -name CVS -exec rm -rf {} \; > /dev/null 2>&1
|
||||
|
||||
source: $(TARGETS_SOURCE)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Cleanup and misc junk
|
||||
#
|
||||
#############################################################
|
||||
clean:
|
||||
rm -rf $(TOOL_BUILD_DIR) $(BUILD_DIR) $(IMAGE) \
|
||||
$(BASE_DIR)/packages \
|
||||
openwrt-linux.trx openwrt-g-code.bin openwrt-gs-code.bin \
|
||||
openwrt-kmodules.tar.bz2
|
||||
|
||||
dirclean: $(TARGETS_DIRCLEAN)
|
||||
rm -rf $(TARGET_DIR) $(STAGING_DIR) $(IMAGE) \
|
||||
$(BASE_DIR)/packages \
|
||||
openwrt-linux.trx openwrt-g-code.bin openwrt-gs-code.bin \
|
||||
openwrt-kmodules.tar.bz2
|
||||
|
||||
distclean:
|
||||
rm -rf $(DL_DIR) $(BUILD_DIR) $(LINUX_KERNEL) $(IMAGE) \
|
||||
openwrt-linux.trx openwrt-g-code.bin openwrt-gs-code.bin \
|
||||
openwrt-kmodules.tar.bz2
|
||||
|
||||
sourceball:
|
||||
rm -rf $(BUILD_DIR)
|
||||
set -e; \
|
||||
cd ..; \
|
||||
rm -f buildroot.tar.bz2; \
|
||||
tar -cvf buildroot.tar buildroot; \
|
||||
bzip2 -9 buildroot.tar; \
|
@ -1,41 +0,0 @@
|
||||
This is a modified uClibc buildroot, customized to build OpenWRT.
|
||||
|
||||
If you already have the linksys tarball (check make/openwrt.mk for the
|
||||
version used), then move/copy/symlink it into sources/dl. At the
|
||||
moment (2004/03/05) I'm using wrt54gv2.2.02.2.tgz.
|
||||
|
||||
Simply running 'make' will build openwrt-code.bin and a tarball of
|
||||
the kernel modules. Customizations of the kernel, uClibc, and busybox
|
||||
are possible by modifying the appropriate config files in source.
|
||||
Copies of the stock openwrt Makefile, uClibc.config, busybox.config,
|
||||
are included with a '-openwrt' suffix.
|
||||
|
||||
Remember that different configurations of uClibc may not be binary
|
||||
compatible. Also, uClibc is not necessarily binary compatible between
|
||||
versions. In particular, dynamicly linked applications and libraries
|
||||
built with the linksys/broadcom toolchain are NOT binary compatible
|
||||
with current uClibc.
|
||||
|
||||
Manuel Novoa III
|
||||
mjn3@codepoet.org
|
||||
|
||||
|
||||
2004/03/16 Added patch to support boardtype of bcm94710ap.
|
||||
Updated resetmon patch as per mbm.
|
||||
Set busybox and uClibc snapshots to known good versions.
|
||||
|
||||
2004/03/30 Switch to wrt54gs.2.07.1.tgz as the base tarball.
|
||||
Start grabbing the (updated) root skeleton from openwrt cvs.
|
||||
Add busybox applets: passwd and nameif.
|
||||
Update snapshots of buildroot, uClibc, and busybox.
|
||||
Fix broken /var symlink.
|
||||
|
||||
2004/03/31 Replace diag_led.c with mbm's rewrite.
|
||||
Create code.bin files for both 'G' and 'GS' units.
|
||||
Update busybox for sed fix.
|
||||
|
||||
2004/05/08 Add busybox applets: chown, chgrp, lsmod, sysctl
|
||||
Remove: ipaddr, iplink, iproute
|
||||
Update snapshots of buildroot, uClibc, busybox, netfilter.
|
||||
|
||||
.. more changes as yet undocumented ..
|
@ -1,103 +0,0 @@
|
||||
OPENWRT PPPOECD NOTES
|
||||
=====================
|
||||
|
||||
1. GENERAL
|
||||
----------
|
||||
|
||||
This package is used to estabilish basic connection to the
|
||||
Internet via DSL/ADSL modems. This is also known as the
|
||||
PPPoE or PPP-over-Ethernet connection.
|
||||
|
||||
The PPPOECD program included in the OpenWrt distribution is a
|
||||
modified version of the PPPOECD that is present in the original
|
||||
Linksys firmware.
|
||||
|
||||
This modified version is directly supported by the OpenWrt
|
||||
startup scripts.
|
||||
|
||||
2. BUILDING
|
||||
-----------
|
||||
|
||||
If you have a pre-compiled PPPOECD package, skip this section.
|
||||
|
||||
PPPOECD can be built in two ways. As an integrated part
|
||||
of the OpenWrt FLASH image or as an .ipk package that can
|
||||
be installed separately.
|
||||
|
||||
To build PPPOECD as an embedded component, add "pppoecd" to the
|
||||
TARGETS variable in the main OpenWrt Makefile before the
|
||||
"openwrt-bin" value.
|
||||
|
||||
To build as a standalone package, add "pppoecd" to the
|
||||
PACKAGES variable in the main OpenWrt Makefile.
|
||||
|
||||
3. NVRAM variables
|
||||
------------------
|
||||
|
||||
In order for the PPPoE link to be established by the networking
|
||||
scripts the following NVRAM variables must be present:
|
||||
|
||||
wan_ifname Should be set to: ppp0
|
||||
|
||||
wan_proto Should be set to: pppoe
|
||||
|
||||
pppoe_ifname Set it to the WAN interface on which the PPPoE
|
||||
is to function. On a 2.0 or a GS model it is
|
||||
usually vlan1. The 1.0 and 1.1 models used vlan2.
|
||||
|
||||
ppp_username User name for your PPPoE connection.
|
||||
|
||||
ppp_passwd Password for the connection.
|
||||
|
||||
ppp_redialperiod Time between reconnect attempts.
|
||||
Usualy set to 30.
|
||||
|
||||
ppp_idletime Time the link has to stay dead before reconnecting.
|
||||
Usually set to 5.
|
||||
|
||||
wan_mtu The Maxumum Transfer Unit for the PPPoE connection.
|
||||
Typically 1492.
|
||||
|
||||
Please consult the OpenWrt WIKI or the forum for more
|
||||
information on NVRAM variables.
|
||||
|
||||
|
||||
4. STARTUP / SHUTDOWN
|
||||
---------------------
|
||||
|
||||
OpenWrt will attempt to connect using PPPOECD when starting up.
|
||||
The script responsible for that is /etc/init.d/S40network.
|
||||
|
||||
You can also manually start the PPPOECD by doing:
|
||||
|
||||
ifup wan
|
||||
|
||||
Similarly you can shutdown the PPPOECD by doing:
|
||||
|
||||
ifdown wan
|
||||
|
||||
|
||||
5. CONFIGURATION
|
||||
----------------
|
||||
|
||||
PPPoE firewall configuration is the standard OpenWrt configuration
|
||||
in /etc/init.d/S45firewall that applies to all the other types
|
||||
of connections to the Internet.
|
||||
|
||||
Additional actions can be performed when connecting or disconnecting
|
||||
by modifying "ip-up" and "ip-down" scripts in the /etc/ppp directory.
|
||||
|
||||
When connecting, PPPOECD creates /tmp/resolv.conf file that contains
|
||||
DNS server entries as supplied by the ISP. The standard ip-up
|
||||
script will also add a default route leading via the PPPoE link.
|
||||
|
||||
6. DIFFERENCES FROM THE ORIGINAL PPPOECD
|
||||
----------------------------------------
|
||||
|
||||
The main difference is the location of files. Original Linksys
|
||||
PPPOECD operated almost exclusively in the /tmp/ppp directory. This
|
||||
however prevents any persistent configuration of the program via
|
||||
ip-up or ip-down scripts. Also the program itself was located in
|
||||
/usr/sbin whereas OpenWrt scripts expect it to be in /sbin directory.
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
## missing variables that should be declared somewhere
|
||||
|
||||
LINUX_VERSION := 2.4.20
|
@ -1,47 +0,0 @@
|
||||
########################################################################
|
||||
#
|
||||
# arptables
|
||||
#
|
||||
# Arptables is used to set up, maintain, and inspect the tables of ARP
|
||||
# rules in the Linux kernel. It is analogous to iptables, but operates
|
||||
# at the ARP layer rather than the IP layer."
|
||||
#
|
||||
########################################################################
|
||||
|
||||
ARPTABLES_NAME=arptables
|
||||
ARPTABLES_VER=v0.0.3-2
|
||||
ARPTABLES_SOURCE=$(ARPTABLES_NAME)-$(ARPTABLES_VER).tar.gz
|
||||
ARPTABLES_SOURCE_URL=http://unc.dl.sourceforge.net/sourceforge/ebtables/
|
||||
ARPTABLES_BUILD_DIR=$(BUILD_DIR)/$(ARPTABLES_NAME)-$(ARPTABLES_VER)
|
||||
|
||||
$(DL_DIR)/$(ARPTABLES_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(ARPTABLES_SOURCE_URL)/$(ARPTABLES_SOURCE)
|
||||
|
||||
$(ARPTABLES_BUILD_DIR)/.unpacked: $(DL_DIR)/$(ARPTABLES_SOURCE)
|
||||
zcat $(DL_DIR)/$(ARPTABLES_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(ARPTABLES_BUILD_DIR)/.unpacked
|
||||
|
||||
$(ARPTABLES_BUILD_DIR)/.configured: $(ARPTABLES_BUILD_DIR)/.unpacked
|
||||
# Allow patches. Needed for openwrt for instance.
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(ARPTABLES_BUILD_DIR) $(SOURCE_DIR) $(ARPTABLES_NAME)-*.patch
|
||||
touch $(ARPTABLES_BUILD_DIR)/.configured
|
||||
|
||||
$(ARPTABLES_BUILD_DIR)/$(ARPTABLES_NAME): $(ARPTABLES_BUILD_DIR)/.configured
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) -C $(ARPTABLES_BUILD_DIR) \
|
||||
CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)"
|
||||
|
||||
$(TARGET_DIR)/sbin/$(ARPTABLES_NAME): $(ARPTABLES_BUILD_DIR)/$(ARPTABLES_NAME)
|
||||
mkdir -p $(TARGET_DIR)/sbin/
|
||||
cp $(ARPTABLES_BUILD_DIR)/$(ARPTABLES_NAME) $(TARGET_DIR)/sbin/$(ARPTABLES_NAME)
|
||||
$(STRIP) $(TARGET_DIR)/sbin/$(ARPTABLES_NAME)
|
||||
|
||||
$(ARPTABLES_NAME): $(TARGET_DIR)/sbin/$(ARPTABLES_NAME)
|
||||
|
||||
$(ARPTABLES_NAME)-source: $(DL_DIR)/$(ARPTABLES_SOURCE)
|
||||
|
||||
$(ARPTABLES_NAME)-clean:
|
||||
-$(MAKE) -C $(ARPTABLES_BUILD_DIR) clean
|
||||
|
||||
$(ARPTABLES_NAME)-dirclean:
|
||||
rm -rf $(ARPTABLES_BUILD_DIR)
|
@ -1,72 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# autoconf
|
||||
#
|
||||
#############################################################
|
||||
AUTOCONF_SOURCE:=autoconf-2.57.tar.bz2
|
||||
AUTOCONF_SITE:=ftp://ftp.gnu.org/gnu/autoconf
|
||||
AUTOCONF_CAT:=bzcat
|
||||
AUTOCONF_DIR:=$(BUILD_DIR)/autoconf-2.57
|
||||
AUTOCONF_BINARY:=autoconf
|
||||
AUTOCONF_TARGET_BINARY:=usr/bin/autoconf
|
||||
|
||||
$(DL_DIR)/$(AUTOCONF_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(AUTOCONF_SITE)/$(AUTOCONF_SOURCE)
|
||||
|
||||
autoconf-source: $(DL_DIR)/$(AUTOCONF_SOURCE)
|
||||
|
||||
$(AUTOCONF_DIR)/.unpacked: $(DL_DIR)/$(AUTOCONF_SOURCE)
|
||||
$(AUTOCONF_CAT) $(DL_DIR)/$(AUTOCONF_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(AUTOCONF_DIR)/.unpacked
|
||||
|
||||
$(AUTOCONF_DIR)/.configured: $(AUTOCONF_DIR)/.unpacked
|
||||
(cd $(AUTOCONF_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) EMACS="no" \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
);
|
||||
touch $(AUTOCONF_DIR)/.configured
|
||||
|
||||
$(AUTOCONF_DIR)/bin/$(AUTOCONF_BINARY): $(AUTOCONF_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(AUTOCONF_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(AUTOCONF_TARGET_BINARY): $(AUTOCONF_DIR)/bin/$(AUTOCONF_BINARY)
|
||||
$(MAKE) \
|
||||
prefix=$(TARGET_DIR)/usr \
|
||||
exec_prefix=$(TARGET_DIR)/usr \
|
||||
bindir=$(TARGET_DIR)/usr/bin \
|
||||
sbindir=$(TARGET_DIR)/usr/sbin \
|
||||
libexecdir=$(TARGET_DIR)/usr/lib \
|
||||
datadir=$(TARGET_DIR)/usr/share \
|
||||
sysconfdir=$(TARGET_DIR)/etc \
|
||||
localstatedir=$(TARGET_DIR)/var \
|
||||
libdir=$(TARGET_DIR)/usr/lib \
|
||||
infodir=$(TARGET_DIR)/usr/info \
|
||||
mandir=$(TARGET_DIR)/usr/man \
|
||||
includedir=$(TARGET_DIR)/usr/include \
|
||||
-C $(AUTOCONF_DIR) install;
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
autoconf: uclibc $(TARGET_DIR)/$(AUTOCONF_TARGET_BINARY)
|
||||
|
||||
autoconf-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(AUTOCONF_DIR) uninstall
|
||||
-$(MAKE) -C $(AUTOCONF_DIR) clean
|
||||
|
||||
autoconf-dirclean:
|
||||
rm -rf $(AUTOCONF_DIR)
|
||||
|
@ -1,74 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# automake
|
||||
#
|
||||
#############################################################
|
||||
AUTOMAKE_SOURCE:=automake-1.6.3.tar.bz2
|
||||
AUTOMAKE_SITE:=ftp://ftp.gnu.org/gnu/automake
|
||||
AUTOMAKE_CAT:=bzcat
|
||||
AUTOMAKE_DIR:=$(BUILD_DIR)/automake-1.6.3
|
||||
AUTOMAKE_BINARY:=automake
|
||||
AUTOMAKE_TARGET_BINARY:=usr/bin/automake
|
||||
|
||||
$(DL_DIR)/$(AUTOMAKE_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(AUTOMAKE_SITE)/$(AUTOMAKE_SOURCE)
|
||||
|
||||
automake-source: $(DL_DIR)/$(AUTOMAKE_SOURCE)
|
||||
|
||||
$(AUTOMAKE_DIR)/.unpacked: $(DL_DIR)/$(AUTOMAKE_SOURCE)
|
||||
$(AUTOMAKE_CAT) $(DL_DIR)/$(AUTOMAKE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(AUTOMAKE_DIR)/.unpacked
|
||||
|
||||
$(AUTOMAKE_DIR)/.configured: $(AUTOMAKE_DIR)/.unpacked
|
||||
(cd $(AUTOMAKE_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
);
|
||||
touch $(AUTOMAKE_DIR)/.configured
|
||||
|
||||
$(AUTOMAKE_DIR)/$(AUTOMAKE_BINARY): $(AUTOMAKE_DIR)/.configured
|
||||
$(MAKE) -C $(AUTOMAKE_DIR)
|
||||
touch -c $(AUTOMAKE_DIR)/$(AUTOMAKE_BINARY)
|
||||
|
||||
$(TARGET_DIR)/$(AUTOMAKE_TARGET_BINARY): $(AUTOMAKE_DIR)/$(AUTOMAKE_BINARY)
|
||||
$(MAKE) \
|
||||
prefix=$(TARGET_DIR)/usr \
|
||||
exec_prefix=$(TARGET_DIR)/usr \
|
||||
bindir=$(TARGET_DIR)/usr/bin \
|
||||
sbindir=$(TARGET_DIR)/usr/sbin \
|
||||
libexecdir=$(TARGET_DIR)/usr/lib \
|
||||
datadir=$(TARGET_DIR)/usr/share \
|
||||
sysconfdir=$(TARGET_DIR)/etc \
|
||||
localstatedir=$(TARGET_DIR)/var \
|
||||
libdir=$(TARGET_DIR)/usr/lib \
|
||||
infodir=$(TARGET_DIR)/usr/info \
|
||||
mandir=$(TARGET_DIR)/usr/man \
|
||||
includedir=$(TARGET_DIR)/usr/include \
|
||||
-C $(AUTOMAKE_DIR) install;
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
touch -c $(TARGET_DIR)/$(AUTOMAKE_TARGET_BINARY)
|
||||
|
||||
automake: uclibc $(TARGET_DIR)/$(AUTOMAKE_TARGET_BINARY)
|
||||
|
||||
automake-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(AUTOMAKE_DIR) uninstall
|
||||
-$(MAKE) -C $(AUTOMAKE_DIR) clean
|
||||
|
||||
automake-dirclean:
|
||||
rm -rf $(AUTOMAKE_DIR)
|
||||
|
@ -1,71 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# bash
|
||||
#
|
||||
#############################################################
|
||||
BASH_SOURCE:=bash-2.05b.tar.gz
|
||||
BASH_SITE:=ftp://ftp.gnu.org/gnu/bash
|
||||
BASH_CAT:=zcat
|
||||
BASH_DIR:=$(BUILD_DIR)/bash-2.05b
|
||||
BASH_BINARY:=bash
|
||||
BASH_TARGET_BINARY:=bin/bash
|
||||
|
||||
$(DL_DIR)/$(BASH_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(BASH_SITE)/$(BASH_SOURCE)
|
||||
|
||||
bash-source: $(DL_DIR)/$(BASH_SOURCE)
|
||||
|
||||
$(BASH_DIR)/.unpacked: $(DL_DIR)/$(BASH_SOURCE)
|
||||
$(BASH_CAT) $(DL_DIR)/$(BASH_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
# This is broken when -lintl is added to LIBS
|
||||
$(SED) 's,LIBS_FOR_BUILD =.*,LIBS_FOR_BUILD =,g' \
|
||||
$(BASH_DIR)/builtins/Makefile.in
|
||||
touch $(BASH_DIR)/.unpacked
|
||||
|
||||
$(BASH_DIR)/.configured: $(BASH_DIR)/.unpacked
|
||||
(cd $(BASH_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
ac_cv_func_setvbuf_reversed=no \
|
||||
bash_cv_have_mbstate_t=yes \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
--with-curses \
|
||||
--enable-alias \
|
||||
);
|
||||
touch $(BASH_DIR)/.configured
|
||||
|
||||
$(BASH_DIR)/$(BASH_BINARY): $(BASH_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) CC_FOR_BUILD=$(HOSTCC) -C $(BASH_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(BASH_TARGET_BINARY): $(BASH_DIR)/$(BASH_BINARY)
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BASH_DIR) install
|
||||
rm -f $(TARGET_DIR)/bin/bash*
|
||||
mv $(TARGET_DIR)/usr/bin/bash* $(TARGET_DIR)/bin/
|
||||
(cd $(TARGET_DIR)/bin; ln -fs bash sh)
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
bash: ncurses uclibc $(TARGET_DIR)/$(BASH_TARGET_BINARY)
|
||||
|
||||
bash-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BASH_DIR) uninstall
|
||||
-$(MAKE) -C $(BASH_DIR) clean
|
||||
|
||||
bash-dirclean:
|
||||
rm -rf $(BASH_DIR)
|
||||
|
@ -1,94 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# berkeley db
|
||||
#
|
||||
#############################################################
|
||||
DB_SITE:=http://www.sleepycat.com/update/snapshot
|
||||
DB_SOURCE:=db-4.1.25.NC.tar.gz
|
||||
DB_DIR:=$(BUILD_DIR)/db-4.1.25.NC
|
||||
|
||||
|
||||
$(DL_DIR)/$(DB_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(DB_SITE)/$(DB_SOURCE)
|
||||
|
||||
berkeleydb-source: $(DL_DIR)/$(DB_SOURCE)
|
||||
|
||||
$(DB_DIR)/.dist: $(DL_DIR)/$(DB_SOURCE)
|
||||
zcat $(DL_DIR)/$(DB_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(DB_DIR)/.dist
|
||||
|
||||
$(DB_DIR)/.configured: $(DB_DIR)/.dist
|
||||
(cd $(DB_DIR)/build_unix; rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
../dist/configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--with-gnu-ld \
|
||||
--enable-shared \
|
||||
--disable-cxx \
|
||||
--disable-java \
|
||||
--disable-rpc \
|
||||
--disable-tcl \
|
||||
--disable-compat185 \
|
||||
--with-pic \
|
||||
);
|
||||
$(SED) 's/\.lo/.o/g' $(DB_DIR)/build_unix/Makefile
|
||||
touch $(DB_DIR)/.configured
|
||||
|
||||
$(DB_DIR)/build_unix/.libs/libdb-4.1.so: $(DB_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(DB_DIR)/build_unix
|
||||
|
||||
$(STAGING_DIR)/lib/libdb-4.1.so: $(DB_DIR)/build_unix/.libs/libdb-4.1.so
|
||||
$(MAKE) \
|
||||
prefix=$(STAGING_DIR) \
|
||||
exec_prefix=$(STAGING_DIR) \
|
||||
bindir=$(STAGING_DIR)/bin \
|
||||
sbindir=$(STAGING_DIR)/sbin \
|
||||
libexecdir=$(STAGING_DIR)/lib \
|
||||
datadir=$(STAGING_DIR)/share \
|
||||
sysconfdir=$(STAGING_DIR)/etc \
|
||||
localstatedir=$(STAGING_DIR)/var \
|
||||
libdir=$(STAGING_DIR)/lib \
|
||||
infodir=$(STAGING_DIR)/info \
|
||||
mandir=$(STAGING_DIR)/man \
|
||||
includedir=$(STAGING_DIR)/include \
|
||||
-C $(DB_DIR)/build_unix install;
|
||||
chmod a-x $(STAGING_DIR)/lib/libdb*so*
|
||||
rm -f $(STAGING_DIR)/bin/db_*
|
||||
rm -rf $(STAGING_DIR)/share/locale $(STAGING_DIR)/info \
|
||||
$(STAGING_DIR)/man $(STAGING_DIR)/share/doc
|
||||
|
||||
$(TARGET_DIR)/lib/libdb-4.1.so: $(STAGING_DIR)/lib/libdb-4.1.so
|
||||
rm -rf $(TARGET_DIR)/lib/libdb*
|
||||
cp -a $(STAGING_DIR)/lib/libdb*so* $(TARGET_DIR)/lib/
|
||||
rm -f $(TARGET_DIR)/lib/libdb.so $(TARGET_DIR)/lib/libdb.la $(TARGET_DIR)/lib/libdb.a
|
||||
(cd $(TARGET_DIR)/usr/lib; ln -fs /lib/libdb-4.1.so libdb.so)
|
||||
-$(STRIP) $(TARGET_DIR)/lib/libdb*so*
|
||||
|
||||
$(TARGET_DIR)/usr/lib/libdb.a: $(STAGING_DIR)/lib/libdb-4.1.a
|
||||
cp -dpf $(STAGING_DIR)/include/db.h $(TARGET_DIR)/usr/include/
|
||||
cp -dpf $(STAGING_DIR)/lib/libdb*.a $(TARGET_DIR)/usr/lib/
|
||||
cp -dpf $(STAGING_DIR)/lib/libdb*.la $(TARGET_DIR)/usr/lib/
|
||||
touch -c $(TARGET_DIR)/usr/lib/libdb.a
|
||||
|
||||
berkeleydb-headers: $(TARGET_DIR)/usr/lib/libdb.a
|
||||
|
||||
berkeleydb-clean:
|
||||
$(MAKE) -C $(DB_DIR)/build_unix clean
|
||||
|
||||
berkeleydb-dirclean:
|
||||
rm -rf $(DB_DIR)
|
||||
|
||||
berkeleydb: uclibc $(TARGET_DIR)/lib/libdb-4.1.so
|
||||
|
@ -1,120 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# build binutils for use on the host system
|
||||
#
|
||||
#############################################################
|
||||
BINUTILS_SITE:=http://ftp.kernel.org/pub/linux/devel/binutils
|
||||
BINUTILS_SOURCE:=binutils-2.14.90.0.7.tar.bz2
|
||||
BINUTILS_DIR:=$(TOOL_BUILD_DIR)/binutils-2.14.90.0.7
|
||||
BINUTILS_CAT:=bzcat
|
||||
|
||||
BINUTILS_DIR1:=$(TOOL_BUILD_DIR)/binutils-build
|
||||
|
||||
$(DL_DIR)/$(BINUTILS_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(BINUTILS_SITE)/$(BINUTILS_SOURCE)
|
||||
|
||||
$(BINUTILS_DIR)/.unpacked: $(DL_DIR)/$(BINUTILS_SOURCE)
|
||||
mkdir -p $(TOOL_BUILD_DIR)
|
||||
mkdir -p $(DL_DIR)
|
||||
$(BINUTILS_CAT) $(DL_DIR)/$(BINUTILS_SOURCE) | tar -C $(TOOL_BUILD_DIR) -xvf -
|
||||
touch $(BINUTILS_DIR)/.unpacked
|
||||
|
||||
$(BINUTILS_DIR)/.patched: $(BINUTILS_DIR)/.unpacked
|
||||
# Apply any files named binutils-*.patch from the source directory to binutils
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(BINUTILS_DIR) $(SOURCE_DIR) binutils-uclibc*.patch
|
||||
touch $(BINUTILS_DIR)/.patched
|
||||
|
||||
$(BINUTILS_DIR1)/.configured: $(BINUTILS_DIR)/.patched
|
||||
mkdir -p $(BINUTILS_DIR1)
|
||||
(cd $(BINUTILS_DIR1); \
|
||||
$(BINUTILS_DIR)/configure \
|
||||
--prefix=$(STAGING_DIR) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(GNU_HOST_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) );
|
||||
touch $(BINUTILS_DIR1)/.configured
|
||||
|
||||
$(BINUTILS_DIR1)/binutils/objdump: $(BINUTILS_DIR1)/.configured
|
||||
$(MAKE) $(JLEVEL) -C $(BINUTILS_DIR1) all
|
||||
|
||||
# Make install will put gettext data in staging_dir/share/locale.
|
||||
# Unfortunatey, it isn't configureable.
|
||||
$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/ld: $(BINUTILS_DIR1)/binutils/objdump
|
||||
$(MAKE) $(JLEVEL) -C $(BINUTILS_DIR1) install
|
||||
|
||||
binutils-dependancies:
|
||||
@if [ -z "`which bison`" ] ; then \
|
||||
echo -e "\n\nYou must install 'bison' on your build machine\n"; \
|
||||
exit 1; \
|
||||
fi;
|
||||
@if [ -z "`which flex`" ] ; then \
|
||||
echo -e "\n\nYou must install 'flex' on your build machine\n"; \
|
||||
exit 1; \
|
||||
fi;
|
||||
@if [ -z "`which msgfmt`" ] ; then \
|
||||
echo -e "\n\nYou must install 'gettext' on your build machine\n"; \
|
||||
exit 1; \
|
||||
fi;
|
||||
|
||||
binutils: binutils-dependancies $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/ld
|
||||
|
||||
binutils-source: $(DL_DIR)/$(BINUTILS_SOURCE)
|
||||
|
||||
binutils-clean:
|
||||
rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
-$(MAKE) -C $(BINUTILS_DIR1) clean
|
||||
|
||||
binutils-dirclean:
|
||||
rm -rf $(BINUTILS_DIR1)
|
||||
|
||||
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# build binutils for use on the target system
|
||||
#
|
||||
#############################################################
|
||||
BINUTILS_DIR2:=$(BUILD_DIR)/binutils-target
|
||||
$(BINUTILS_DIR2)/.configured: $(BINUTILS_DIR)/.patched
|
||||
mkdir -p $(BINUTILS_DIR2)
|
||||
(cd $(BINUTILS_DIR2); \
|
||||
PATH=$(TARGET_PATH) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
CFLAGS_FOR_BUILD="-O2 -g" \
|
||||
$(BINUTILS_DIR)/configure \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(REAL_GNU_TARGET_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) );
|
||||
touch $(BINUTILS_DIR2)/.configured
|
||||
|
||||
$(BINUTILS_DIR2)/binutils/objdump: $(BINUTILS_DIR2)/.configured
|
||||
PATH=$(TARGET_PATH) \
|
||||
$(MAKE) $(JLEVEL) -C $(BINUTILS_DIR2) all
|
||||
|
||||
$(TARGET_DIR)/usr/bin/ld: $(BINUTILS_DIR2)/binutils/objdump
|
||||
PATH=$(TARGET_PATH) \
|
||||
$(MAKE) $(JLEVEL) DESTDIR=$(TARGET_DIR) \
|
||||
tooldir=/usr build_tooldir=/usr \
|
||||
-C $(BINUTILS_DIR2) install
|
||||
#rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
# $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
-$(STRIP) $(TARGET_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin/* > /dev/null 2>&1
|
||||
-$(STRIP) $(TARGET_DIR)/usr/bin/* > /dev/null 2>&1
|
||||
|
||||
binutils_target: $(GCC_DEPENDANCY) $(TARGET_DIR)/usr/bin/ld
|
||||
|
||||
binutils_target-clean:
|
||||
rm -f $(TARGET_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
-$(MAKE) -C $(BINUTILS_DIR2) clean
|
||||
|
||||
binutils_target-dirclean:
|
||||
rm -rf $(BINUTILS_DIR2)
|
||||
|
@ -1,62 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# bison
|
||||
#
|
||||
#############################################################
|
||||
BISON_SOURCE:=bison-1.35.tar.bz2
|
||||
BISON_SITE:=ftp://ftp.gnu.org/gnu/bison
|
||||
BISON_DIR:=$(BUILD_DIR)/bison-1.35
|
||||
BISON_CAT:=bzcat
|
||||
BISON_BINARY:=src/bison
|
||||
BISON_TARGET_BINARY:=usr/bin/bison
|
||||
|
||||
$(DL_DIR)/$(BISON_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(BISON_SITE)/$(BISON_SOURCE)
|
||||
|
||||
bison-source: $(DL_DIR)/$(BISON_SOURCE)
|
||||
|
||||
$(BISON_DIR)/.unpacked: $(DL_DIR)/$(BISON_SOURCE)
|
||||
$(BISON_CAT) $(DL_DIR)/$(BISON_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(BISON_DIR)/.unpacked
|
||||
|
||||
$(BISON_DIR)/.configured: $(BISON_DIR)/.unpacked
|
||||
(cd $(BISON_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
gt_cv_func_gnugettext2_libintl=yes \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
);
|
||||
touch $(BISON_DIR)/.configured
|
||||
|
||||
$(BISON_DIR)/$(BISON_BINARY): $(BISON_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(BISON_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(BISON_TARGET_BINARY): $(BISON_DIR)/$(BISON_BINARY)
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BISON_DIR) install
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
cp -a $(SOURCE_DIR)/yacc $(TARGET_DIR)/usr/bin/yacc
|
||||
|
||||
bison: uclibc $(TARGET_DIR)/$(BISON_TARGET_BINARY)
|
||||
|
||||
bison-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BISON_DIR) uninstall
|
||||
-$(MAKE) -C $(BISON_DIR) clean
|
||||
|
||||
bison-dirclean:
|
||||
rm -rf $(BISON_DIR)
|
||||
|
@ -1,57 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# boa
|
||||
#
|
||||
#############################################################
|
||||
|
||||
BOA_VERSION=0.94.14rc4
|
||||
|
||||
# Don't alter below this line unless you (think) you know
|
||||
# what you are doing! Danger, Danger!
|
||||
|
||||
BOA_SOURCE=boa-$(BOA_VERSION).tar.gz
|
||||
BOA_SITE=http://www.boa.org/
|
||||
BOA_DIR=$(BUILD_DIR)/${shell basename $(BOA_SOURCE) .tar.gz}
|
||||
BOA_WORKDIR=$(BUILD_DIR)/boa_workdir
|
||||
|
||||
$(DL_DIR)/$(BOA_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(BOA_SITE)/$(BOA_SOURCE)
|
||||
|
||||
$(BOA_DIR)/.unpacked: $(DL_DIR)/$(BOA_SOURCE)
|
||||
gzip -d -c $(DL_DIR)/$(BOA_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(BOA_DIR)/.unpacked
|
||||
|
||||
$(BOA_WORKDIR)/Makefile: $(BOA_DIR)/.unpacked
|
||||
rm -f $(BOA_WORKDIR)/Makefile
|
||||
mkdir -p $(BOA_WORKDIR)
|
||||
(cd $(BOA_WORKDIR) && CONFIG_SITE=$(SOURCE_DIR)/boa-config.site-$(ARCH) \
|
||||
CC=$(TARGET_CC) $(BOA_DIR)/configure)
|
||||
touch $(BOA_WORKDIR)/.depend
|
||||
|
||||
$(BOA_WORKDIR)/boa $(BOA_WORKDIR)/boa_indexer: $(BOA_WORKDIR)/Makefile
|
||||
rm -f $@
|
||||
$(MAKE) VPATH=$(BOA_DIR)/src/ -C $(BOA_WORKDIR)
|
||||
|
||||
$(BOA_WORKDIR)/.installed: $(BOA_WORKDIR)/boa $(BOA_WORKDIR)/boa_indexer
|
||||
mkdir -p $(TARGET_DIR)/usr/sbin
|
||||
cp -f $(BOA_WORKDIR)/src/boa $(TARGET_DIR)/usr/sbin/boa
|
||||
mkdir -p $(TARGET_DIR)/usr/lib/boa
|
||||
cp -f $(BOA_WORKDIR)/src/boa_indexer $(TARGET_DIR)/usr/lib/boa/boa_indexer
|
||||
mkdir -p $(TARGET_DIR)/etc/boa
|
||||
cp -f $(SOURCE_DIR)/boa.conf $(TARGET_DIR)/etc/boa
|
||||
cp -f $(SOURCE_DIR)/mime.types $(TARGET_DIR)/etc/mime.types
|
||||
strip --strip-all $(TARGET_DIR)/usr/sbin/boa $(TARGET_DIR)/usr/lib/boa/boa_indexer
|
||||
touch $(BOA_WORKDIR)/.installed
|
||||
|
||||
boa: uclibc $(BOA_WORKDIR)/.installed
|
||||
|
||||
boa-source: $(DL_DIR)/$(BOA_SOURCE)
|
||||
|
||||
boa-clean:
|
||||
@if [ -d $(BOA_WORKDIR)/Makefile ] ; then \
|
||||
$(MAKE) -C $(BOA_WORKDIR) clean ; \
|
||||
fi;
|
||||
|
||||
boa-dirclean:
|
||||
rm -rf $(BOA_DIR) $(BOA_WORKDIR)
|
||||
|
@ -1,65 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# bridgeutils - User Space Program For Controling Bridging
|
||||
#
|
||||
#############################################################
|
||||
|
||||
ifeq ($(strip $(USE_BRIDGE_VERSION)),)
|
||||
USE_BRIDGE_VERSION=0.9.7
|
||||
endif
|
||||
BRIDGE_SOURCE_URL=http://dl.sourceforge.net/sourceforge/bridge/
|
||||
BRIDGE_SOURCE=bridge-utils-$(USE_BRIDGE_VERSION).tar.gz
|
||||
BRIDGE_BUILD_DIR=$(BUILD_DIR)/bridge-utils-$(USE_BRIDGE_VERSION)
|
||||
BRIDGE_TARGET_BINARY:=usr/sbin/brctl
|
||||
|
||||
$(DL_DIR)/$(BRIDGE_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(BRIDGE_SOURCE_URL)/$(BRIDGE_SOURCE)
|
||||
|
||||
$(BRIDGE_BUILD_DIR)/.unpacked: $(DL_DIR)/$(BRIDGE_SOURCE)
|
||||
# ack! it's a .tgz which is really a bzip
|
||||
zcat $(DL_DIR)/$(BRIDGE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
patch -p1 -d $(BRIDGE_BUILD_DIR) < $(SOURCE_DIR)/bridge.patch
|
||||
touch $(BRIDGE_BUILD_DIR)/.unpacked
|
||||
|
||||
$(BRIDGE_BUILD_DIR)/.configured: $(BRIDGE_BUILD_DIR)/.unpacked
|
||||
(cd $(BRIDGE_BUILD_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
--with-linux-headers=$(LINUX_DIR) \
|
||||
);
|
||||
touch $(BRIDGE_BUILD_DIR)/.configured
|
||||
|
||||
$(BRIDGE_BUILD_DIR)/brctl/brctl: $(BRIDGE_BUILD_DIR)/.configured
|
||||
$(MAKE) -C $(BRIDGE_BUILD_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(BRIDGE_TARGET_BINARY): $(BRIDGE_BUILD_DIR)/brctl/brctl
|
||||
cp -af $(BRIDGE_BUILD_DIR)/brctl/brctl $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
|
||||
$(STRIP) $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
|
||||
#cp -af $(BRIDGE_BUILD_DIR)/brctl/brctld $(TARGET_DIR)/usr/sbin/
|
||||
#$(STRIP) $(TARGET_DIR)/usr/sbin/brctld
|
||||
|
||||
bridge: $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
|
||||
|
||||
bridge-source: $(DL_DIR)/$(BRIDGE_SOURCE)
|
||||
|
||||
bridge-clean:
|
||||
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BRIDGE_BUILD_DIR) uninstall
|
||||
-$(MAKE) -C $(BRIDGE_BUILD_DIR) clean
|
||||
|
||||
bridge-dirclean:
|
||||
rm -rf $(BRIDGE_BUILD_DIR)
|
@ -1,59 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# busybox
|
||||
#
|
||||
#############################################################
|
||||
|
||||
ifneq ($(strip $(USE_BUSYBOX_SNAPSHOT)),)
|
||||
# Be aware that this changes daily....
|
||||
BUSYBOX_DIR:=$(BUILD_DIR)/busybox
|
||||
BUSYBOX_SOURCE:=busybox-$(strip $(USE_BUSYBOX_SNAPSHOT)).tar.bz2
|
||||
BUSYBOX_SITE:=http://www.busybox.net/downloads/snapshots
|
||||
else
|
||||
BUSYBOX_DIR:=$(BUILD_DIR)/busybox-1.00
|
||||
BUSYBOX_SOURCE:=busybox-1.00.tar.bz2
|
||||
BUSYBOX_SITE:=http://www.busybox.net/downloads
|
||||
endif
|
||||
BUSYBOX_UNZIP=bzcat
|
||||
BUSYBOX_CONFIG:=$(SOURCE_DIR)/openwrt/busybox/busybox.config
|
||||
|
||||
$(DL_DIR)/$(BUSYBOX_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(BUSYBOX_SITE)/$(BUSYBOX_SOURCE)
|
||||
|
||||
busybox-source: $(DL_DIR)/$(BUSYBOX_SOURCE) $(BUSYBOX_CONFIG)
|
||||
|
||||
$(BUSYBOX_DIR)/.configured: $(DL_DIR)/$(BUSYBOX_SOURCE) $(BUSYBOX_CONFIG)
|
||||
$(BUSYBOX_UNZIP) $(DL_DIR)/$(BUSYBOX_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
# Allow busybox patches.
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(BUSYBOX_DIR) $(SOURCE_DIR)/openwrt/busybox/patches
|
||||
cp $(BUSYBOX_CONFIG) $(BUSYBOX_DIR)/.config
|
||||
$(SED) "s,^CROSS.*,CROSS=$(TARGET_CROSS)\n\
|
||||
PREFIX=$(TARGET_DIR),;" $(BUSYBOX_DIR)/Rules.mak
|
||||
ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
|
||||
$(SED) "s/^.*CONFIG_LFS.*/CONFIG_LFS=y/;" $(BUSYBOX_DIR)/.config
|
||||
else
|
||||
$(SED) "s/^.*CONFIG_LFS.*/CONFIG_LFS=n/;" $(BUSYBOX_DIR)/.config
|
||||
endif
|
||||
$(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(BUSYBOX_DIR) oldconfig
|
||||
touch $(BUSYBOX_DIR)/.configured
|
||||
|
||||
busybox-unpack: $(BUSYBOX_DIR)/.configured
|
||||
|
||||
$(BUSYBOX_DIR)/busybox: $(BUSYBOX_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(TARGET_DIR)" \
|
||||
EXTRA_CFLAGS="$(TARGET_CFLAGS) -fomit-frame-pointer" -C $(BUSYBOX_DIR)
|
||||
|
||||
$(TARGET_DIR)/bin/busybox: $(BUSYBOX_DIR)/busybox
|
||||
$(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(TARGET_DIR)" \
|
||||
EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(BUSYBOX_DIR) install
|
||||
# Just in case
|
||||
-chmod a+x $(TARGET_DIR)/usr/share/udhcpc/default.script
|
||||
|
||||
busybox: uclibc $(TARGET_DIR)/bin/busybox
|
||||
|
||||
busybox-clean:
|
||||
rm -f $(TARGET_DIR)/bin/busybox
|
||||
-$(MAKE) -C $(BUSYBOX_DIR) clean
|
||||
|
||||
busybox-dirclean:
|
||||
rm -rf $(BUSYBOX_DIR)
|
@ -1,86 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# bzip2
|
||||
#
|
||||
#############################################################
|
||||
BZIP2_SOURCE:=bzip2-1.0.2.tar.gz
|
||||
BZIP2_SITE:=ftp://sources.redhat.com/pub/bzip2/v102
|
||||
BZIP2_DIR:=$(BUILD_DIR)/bzip2-1.0.2
|
||||
BZIP2_CAT:=zcat
|
||||
BZIP2_BINARY:=$(BZIP2_DIR)/bzip2
|
||||
BZIP2_TARGET_BINARY:=$(TARGET_DIR)/usr/bin/bzmore
|
||||
|
||||
$(DL_DIR)/$(BZIP2_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(BZIP2_SITE)/$(BZIP2_SOURCE)
|
||||
|
||||
bzip2-source: $(DL_DIR)/$(BZIP2_SOURCE)
|
||||
|
||||
$(BZIP2_DIR)/.unpacked: $(DL_DIR)/$(BZIP2_SOURCE)
|
||||
$(BZIP2_CAT) $(DL_DIR)/$(BZIP2_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
$(SED) "s,ln \$$(,ln -sf \$$(,g" $(BZIP2_DIR)/Makefile
|
||||
$(SED) "s,ln -s (lib.*),ln -sf \$$1 ; ln -sf libbz2.so.1.0.2 libbz2.so,g" \
|
||||
$(BZIP2_DIR)/Makefile-libbz2_so
|
||||
ifeq ($(strip $(BUILD_WITH_LARGEFILE)),false)
|
||||
$(SED) "s,^BIGFILES,#BIGFILES,g" $(BZIP2_DIR)/Makefile
|
||||
$(SED) "s,^BIGFILES,#BIGFILES,g" $(BZIP2_DIR)/Makefile-libbz2_so
|
||||
endif
|
||||
touch $(BZIP2_DIR)/.unpacked
|
||||
|
||||
$(STAGING_DIR)/lib/libbz2.so.1.0.2: $(BZIP2_DIR)/.unpacked
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(BZIP2_DIR) -f Makefile-libbz2_so
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(BZIP2_DIR) libbz2.a
|
||||
cp $(BZIP2_DIR)/bzlib.h $(STAGING_DIR)/include/
|
||||
cp $(BZIP2_DIR)/libbz2.so.1.0.2 $(STAGING_DIR)/lib/
|
||||
cp $(BZIP2_DIR)/libbz2.a $(STAGING_DIR)/lib/
|
||||
(cd $(STAGING_DIR)/lib/; ln -sf libbz2.so.1.0.2 libbz2.so)
|
||||
(cd $(STAGING_DIR)/lib/; ln -sf libbz2.so.1.0.2 libbz2.so.1.0)
|
||||
|
||||
$(BZIP2_BINARY): $(STAGING_DIR)/lib/libbz2.so.1.0.2
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(BZIP2_DIR) bzip2 bzip2recover
|
||||
|
||||
$(BZIP2_TARGET_BINARY): $(BZIP2_BINARY)
|
||||
(cd $(TARGET_DIR)/usr/bin; \
|
||||
rm -f bzip2 bunzip2 bzcat bzip2recover bzgrep bzegrep bzfgrep bzmore bzless bzdiff bzcmp);
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) PREFIX=$(TARGET_DIR)/usr -C $(BZIP2_DIR) install
|
||||
rm -f $(TARGET_DIR)/usr/lib/libbz2.a
|
||||
rm -f $(TARGET_DIR)/usr/include/bzlib.h
|
||||
cp $(BZIP2_DIR)/libbz2.so.1.0.2 $(TARGET_DIR)/usr/lib/
|
||||
(cd $(TARGET_DIR)/usr/lib; \
|
||||
ln -sf libbz2.so.1.0.2 libbz2.so.1.0; \
|
||||
ln -sf libbz2.so.1.0.2 libbz2.so)
|
||||
(cd $(TARGET_DIR)/usr/bin; \
|
||||
ln -sf bzip2 bunzip2; \
|
||||
ln -sf bzip2 bzcat; \
|
||||
ln -sf bzdiff bzcmp; \
|
||||
ln -sf bzmore bzless; \
|
||||
ln -sf bzgrep bzegrep; \
|
||||
ln -sf bzgrep bzfgrep;)
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
$(TARGET_DIR)/usr/lib/libbz2.a: $(STAGING_DIR)/lib/libbz2.a
|
||||
mkdir -p $(TARGET_DIR)/usr/include
|
||||
cp $(STAGING_DIR)/include/bzlib.h $(TARGET_DIR)/usr/include/
|
||||
cp $(STAGING_DIR)/lib/libbz2.a $(TARGET_DIR)/usr/lib/
|
||||
rm -f $(TARGET_DIR)/lib/libbz2.so
|
||||
(cd $(TARGET_DIR)/usr/lib; \
|
||||
ln -fs /usr/lib/libbz2.so.1.0 libbz2.so; \
|
||||
)
|
||||
-$(STRIP) $(TARGET_DIR)/usr/lib/libbz2.so.1.0
|
||||
touch -c $(TARGET_DIR)/usr/lib/libbz2.a
|
||||
|
||||
bzip2-headers: $(TARGET_DIR)/usr/lib/libbz2.a
|
||||
|
||||
bzip2: uclibc $(BZIP2_TARGET_BINARY)
|
||||
|
||||
bzip2-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BZIP2_DIR) uninstall
|
||||
-$(MAKE) -C $(BZIP2_DIR) clean
|
||||
|
||||
bzip2-dirclean:
|
||||
rm -rf $(BZIP2_DIR)
|
||||
|
@ -1,147 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# build ccache to make recompiles faster on the build system
|
||||
#
|
||||
#############################################################
|
||||
CCACHE_SITE:=http://ccache.samba.org/ftp/ccache
|
||||
CCACHE_SOURCE:=ccache-2.3.tar.gz
|
||||
CCACHE_DIR1:=$(TOOL_BUILD_DIR)/ccache-2.3
|
||||
CCACHE_DIR2:=$(BUILD_DIR)/ccache-2.3
|
||||
CCACHE_CAT:=zcat
|
||||
CCACHE_BINARY:=ccache
|
||||
CCACHE_TARGET_BINARY:=usr/bin/ccache
|
||||
|
||||
$(DL_DIR)/$(CCACHE_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(CCACHE_SITE)/$(CCACHE_SOURCE)
|
||||
|
||||
$(CCACHE_DIR1)/.unpacked: $(DL_DIR)/$(CCACHE_SOURCE)
|
||||
$(CCACHE_CAT) $(DL_DIR)/$(CCACHE_SOURCE) | tar -C $(TOOL_BUILD_DIR) -xvf -
|
||||
touch $(CCACHE_DIR1)/.unpacked
|
||||
|
||||
$(CCACHE_DIR1)/.patched: $(CCACHE_DIR1)/.unpacked
|
||||
$(SED) "s,getenv(\"CCACHE_PATH\"),\"$(STAGING_DIR)/usr/bin\",g" \
|
||||
$(CCACHE_DIR1)/execute.c
|
||||
$(SED) "s,getenv(\"CCACHE_DIR\"),\"$(CCACHE_DIR1)/cache\",g" \
|
||||
$(CCACHE_DIR1)/ccache.c
|
||||
mkdir -p $(CCACHE_DIR1)/cache
|
||||
touch $(CCACHE_DIR1)/.patched
|
||||
|
||||
$(CCACHE_DIR1)/.configured: $(CCACHE_DIR1)/.patched
|
||||
mkdir -p $(CCACHE_DIR1)
|
||||
(cd $(CCACHE_DIR1); rm -rf config.cache; \
|
||||
CC=$(HOSTCC) \
|
||||
$(CCACHE_DIR1)/configure \
|
||||
--target=$(GNU_HOST_NAME) \
|
||||
--host=$(GNU_HOST_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
);
|
||||
touch $(CCACHE_DIR1)/.configured
|
||||
|
||||
$(CCACHE_DIR1)/$(CCACHE_BINARY): $(CCACHE_DIR1)/.configured
|
||||
$(MAKE) CC=$(HOSTCC) -C $(CCACHE_DIR1)
|
||||
|
||||
$(STAGING_DIR)/$(CCACHE_TARGET_BINARY): $(CCACHE_DIR1)/$(CCACHE_BINARY)
|
||||
mkdir -p $(STAGING_DIR)/usr/bin;
|
||||
mkdir -p $(TOOL_BUILD_DIR)/.ccache;
|
||||
cp $(CCACHE_DIR1)/ccache $(STAGING_DIR)/usr/bin
|
||||
(cd $(STAGING_DIR)/usr/bin; \
|
||||
ln -fs $(OPTIMIZE_FOR_CPU)-linux-uclibc-gcc $(OPTIMIZE_FOR_CPU)-linux-gcc; \
|
||||
ln -fs $(OPTIMIZE_FOR_CPU)-linux-uclibc-gcc $(OPTIMIZE_FOR_CPU)-linux-cc; \
|
||||
ln -fs $(OPTIMIZE_FOR_CPU)-linux-uclibc-gcc $(OPTIMIZE_FOR_CPU)-linux-uclibc-cc);
|
||||
[ -f $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-gcc ] && \
|
||||
mv $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-gcc $(STAGING_DIR)/usr/bin/
|
||||
(cd $(STAGING_DIR)/bin; \
|
||||
ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-cc; \
|
||||
ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-gcc; \
|
||||
ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-uclibc-cc; \
|
||||
ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-uclibc-gcc);
|
||||
ifeq ($(INSTALL_LIBSTDCPP),true)
|
||||
[ -f $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-c++ ] && \
|
||||
mv $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-c++ $(STAGING_DIR)/usr/bin/
|
||||
[ -f $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-g++ ] && \
|
||||
mv $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-g++ $(STAGING_DIR)/usr/bin/
|
||||
(cd $(STAGING_DIR)/bin; \
|
||||
ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-c++; \
|
||||
ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-g++;\
|
||||
ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-uclibc-c++; \
|
||||
ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-uclibc-g++);
|
||||
endif
|
||||
|
||||
ifeq ($(GCC_2_95_TOOLCHAIN),true)
|
||||
ccache: gcc2_95 $(STAGING_DIR)/$(CCACHE_TARGET_BINARY)
|
||||
else
|
||||
ccache: gcc3_3 $(STAGING_DIR)/$(CCACHE_TARGET_BINARY)
|
||||
endif
|
||||
|
||||
ccache-clean:
|
||||
$(MAKE) -C $(CCACHE_DIR1) uninstall
|
||||
-$(MAKE) -C $(CCACHE_DIR1) clean
|
||||
|
||||
ccache-dirclean:
|
||||
rm -rf $(CCACHE_DIR1)
|
||||
|
||||
|
||||
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# build ccache for use on the target system
|
||||
#
|
||||
#############################################################
|
||||
|
||||
$(CCACHE_DIR2)/.unpacked: $(DL_DIR)/$(CCACHE_SOURCE)
|
||||
$(CCACHE_CAT) $(DL_DIR)/$(CCACHE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(CCACHE_DIR2)/.unpacked
|
||||
|
||||
$(CCACHE_DIR2)/.patched: $(CCACHE_DIR2)/.unpacked
|
||||
touch $(CCACHE_DIR2)/.patched
|
||||
|
||||
$(CCACHE_DIR2)/.configured: $(CCACHE_DIR2)/.patched
|
||||
mkdir -p $(CCACHE_DIR2)
|
||||
(cd $(CCACHE_DIR2); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(CCACHE_DIR2)/configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
);
|
||||
touch $(CCACHE_DIR2)/.configured
|
||||
|
||||
$(CCACHE_DIR2)/$(CCACHE_BINARY): $(CCACHE_DIR2)/.configured
|
||||
$(MAKE) -C $(CCACHE_DIR2)
|
||||
|
||||
$(TARGET_DIR)/$(CCACHE_TARGET_BINARY): $(CCACHE_DIR2)/$(CCACHE_BINARY)
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(CCACHE_DIR2) install
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
# put a bunch of symlinks into /bin, since that is earlier
|
||||
# in the default PATH than /usr/bin where gcc lives
|
||||
(cd $(TARGET_DIR)/bin; \
|
||||
ln -fs /usr/bin/ccache cc; \
|
||||
ln -fs /usr/bin/ccache gcc; \
|
||||
ln -fs /usr/bin/ccache c++; \
|
||||
ln -fs /usr/bin/ccache g++;)
|
||||
|
||||
ccache_target: uclibc $(TARGET_DIR)/$(CCACHE_TARGET_BINARY)
|
||||
|
||||
ccache_target-sources: $(DL_DIR)/$(CCACHE_SOURCE)
|
||||
|
||||
ccache_target-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(CCACHE_DIR2) uninstall
|
||||
-$(MAKE) -C $(CCACHE_DIR2) clean
|
||||
|
||||
ccache_target-dirclean:
|
||||
rm -rf $(CCACHE_DIR2)
|
||||
|
@ -1,94 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# chillispot
|
||||
#
|
||||
#############################################################
|
||||
|
||||
CHILLISPOT_VERSION:=0.96
|
||||
CHILLISPOT_RELEASE:=1
|
||||
|
||||
CHILLISPOT_SOURCE:=chillispot-$(CHILLISPOT_VERSION).tar.gz
|
||||
CHILLISPOT_SITE:=http://www.chillispot.org/download/
|
||||
CHILLISPOT_CAT:=zcat
|
||||
CHILLISPOT_DIR:=$(BUILD_DIR)/chillispot-$(CHILLISPOT_VERSION)
|
||||
CHILLISPOT_BINARY:=src/chilli
|
||||
CHILLISPOT_TARGET_BINARY:=usr/sbin/chilli
|
||||
|
||||
CHILLISPOT_BUILD_DIR := $(BUILD_DIR)/chillispot_$(CHILLISPOT_VERSION)-$(CHILLISPOT_RELEASE)
|
||||
CHILLISPOT_IPK_DIR := $(OPENWRT_IPK_DIR)/chillispot
|
||||
CHILLISPOT_IPK := $(CHILLISPOT_BUILD_DIR)_$(ARCH).ipk
|
||||
|
||||
|
||||
$(DL_DIR)/$(CHILLISPOT_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(CHILLISPOT_SITE)/$(CHILLISPOT_SOURCE)
|
||||
|
||||
chillispot-source: $(DL_DIR)/$(CHILLISPOT_SOURCE)
|
||||
|
||||
$(CHILLISPOT_DIR)/.stamp-unpacked: $(DL_DIR)/$(CHILLISPOT_SOURCE)
|
||||
$(CHILLISPOT_CAT) $(DL_DIR)/$(CHILLISPOT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
|
||||
touch $(CHILLISPOT_DIR)/.stamp-unpacked
|
||||
|
||||
$(CHILLISPOT_DIR)/.stamp-configured: $(CHILLISPOT_DIR)/.stamp-unpacked
|
||||
(cd $(CHILLISPOT_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
ac_cv_func_malloc_0_nonnull=yes \
|
||||
ac_cv_func_memcmp_working=yes \
|
||||
ac_cv_func_setvbuf_reversed=no \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib/locate \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var/lib \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
);
|
||||
touch $(CHILLISPOT_DIR)/.stamp-configured
|
||||
|
||||
$(CHILLISPOT_DIR)/.stamp-built: $(CHILLISPOT_DIR)/.stamp-configured
|
||||
$(MAKE) CC=$(TARGET_CC) $(TARGET_CONFIGURE_OPTS) -C $(CHILLISPOT_DIR)
|
||||
touch $(CHILLISPOT_DIR)/.stamp-built
|
||||
|
||||
$(CHILLISPOT_BUILD_DIR)/CONTROL/control: $(CHILLISPOT_DIR)/.stamp-built
|
||||
rm -rf $(CHILLISPOT_BUILD_DIR)
|
||||
mkdir -p $(CHILLISPOT_BUILD_DIR)/usr/sbin
|
||||
cp -a $(CHILLISPOT_DIR)/src/chilli $(CHILLISPOT_BUILD_DIR)/usr/sbin/
|
||||
$(STRIP) $(CHILLISPOT_BUILD_DIR)/usr/sbin/*
|
||||
mkdir -p $(CHILLISPOT_BUILD_DIR)/etc
|
||||
cp -a $(CHILLISPOT_DIR)/doc/chilli.conf $(CHILLISPOT_BUILD_DIR)/etc
|
||||
cp -a $(CHILLISPOT_IPK_DIR)/root/* $(CHILLISPOT_BUILD_DIR)/
|
||||
chmod 0755 $(CHILLISPOT_BUILD_DIR)/etc
|
||||
chmod 0600 $(CHILLISPOT_BUILD_DIR)/etc/chilli.conf
|
||||
chmod 0755 $(CHILLISPOT_BUILD_DIR)/etc/init.d
|
||||
chmod 0755 $(CHILLISPOT_BUILD_DIR)/etc/init.d/*
|
||||
chmod 0755 $(CHILLISPOT_BUILD_DIR)/usr
|
||||
chmod 0755 $(CHILLISPOT_BUILD_DIR)/usr/sbin
|
||||
chmod 0755 $(CHILLISPOT_BUILD_DIR)/usr/sbin/*
|
||||
cp -a $(CHILLISPOT_IPK_DIR)/CONTROL $(CHILLISPOT_BUILD_DIR)/
|
||||
perl -pi -e "s/^Vers.*:.*$$/Version: $(CHILLISPOT_VERSION)-$(CHILLISPOT_RELEASE)/" $(CHILLISPOT_BUILD_DIR)/CONTROL/control
|
||||
perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(CHILLISPOT_BUILD_DIR)/CONTROL/control
|
||||
|
||||
touch $(CHILLISPOT_BUILD_DIR)/CONTROL/control
|
||||
|
||||
|
||||
$(CHILLISPOT_IPK): $(CHILLISPOT_BUILD_DIR)/CONTROL/control
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(CHILLISPOT_BUILD_DIR)
|
||||
|
||||
|
||||
chillispot-ipk: ipkg-utils $(CHILLISPOT_IPK)
|
||||
|
||||
chillispot-clean:
|
||||
$(MAKE) -C $(CHILLISPOT_DIR) clean
|
||||
|
||||
chillispot-dirclean:
|
||||
rm -rf $(CHILLISPOT_DIR)
|
@ -1,82 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# coreutils
|
||||
#
|
||||
#############################################################
|
||||
COREUTILS_SOURCE:=coreutils-5.0.tar.bz2
|
||||
COREUTILS_SITE:=ftp://ftp.gnu.org/gnu/coreutils/
|
||||
COREUTILS_CAT:=bzcat
|
||||
COREUTILS_DIR:=$(BUILD_DIR)/coreutils-5.0
|
||||
COREUTILS_BINARY:=src/vdir
|
||||
COREUTILS_TARGET_BINARY:=bin/vdir
|
||||
BIN_PROGS:=cat chgrp chmod chown cp date dd df dir echo false hostname \
|
||||
ln ls mkdir mknod mv pwd rm rmdir vdir sleep stty sync touch true uname
|
||||
|
||||
$(DL_DIR)/$(COREUTILS_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(COREUTILS_SITE)/$(COREUTILS_SOURCE)
|
||||
|
||||
coreutils-source: $(DL_DIR)/$(COREUTILS_SOURCE)
|
||||
|
||||
$(COREUTILS_DIR)/.unpacked: $(DL_DIR)/$(COREUTILS_SOURCE)
|
||||
$(COREUTILS_CAT) $(DL_DIR)/$(COREUTILS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(COREUTILS_DIR)/.unpacked
|
||||
|
||||
$(COREUTILS_DIR)/.configured: $(COREUTILS_DIR)/.unpacked
|
||||
(cd $(COREUTILS_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
--disable-rpath \
|
||||
--disable-dependency-tracking \
|
||||
);
|
||||
#Fix up the max number of open files per process, which apparently
|
||||
# is not set when cross compiling
|
||||
$(SED) 's,.*UTILS_OPEN_MAX.*,#define UTILS_OPEN_MAX 1019,g' \
|
||||
$(COREUTILS_DIR)/config.h
|
||||
# This is undefined when crosscompiling...
|
||||
$(SED) 's,.*HAVE_PROC_UPTIME.*,#define HAVE_PROC_UPTIME 1,g' \
|
||||
$(COREUTILS_DIR)/config.h
|
||||
touch $(COREUTILS_DIR)/.configured
|
||||
|
||||
$(COREUTILS_DIR)/$(COREUTILS_BINARY): $(COREUTILS_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(COREUTILS_DIR)
|
||||
rm -f $(TARGET_DIR)/$(COREUTILS_TARGET_BINARY)
|
||||
|
||||
$(TARGET_DIR)/$(COREUTILS_TARGET_BINARY): $(COREUTILS_DIR)/$(COREUTILS_BINARY)
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(COREUTILS_DIR) install
|
||||
# some things go in root rather than usr
|
||||
for f in $(BIN_PROGS); do \
|
||||
mv $(TARGET_DIR)/usr/bin/$$f $(TARGET_DIR)/bin/$$f; \
|
||||
done
|
||||
# link for archaic shells
|
||||
ln -fs test $(TARGET_DIR)/usr/bin/[
|
||||
# gnu thinks chroot is in bin, debian thinks it's in sbin
|
||||
mv $(TARGET_DIR)/usr/bin/chroot $(TARGET_DIR)/usr/sbin/chroot
|
||||
$(STRIP) $(TARGET_DIR)/usr/sbin/chroot > /dev/null 2>&1
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
coreutils: uclibc $(TARGET_DIR)/$(COREUTILS_TARGET_BINARY)
|
||||
|
||||
coreutils-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(COREUTILS_DIR) uninstall
|
||||
-$(MAKE) -C $(COREUTILS_DIR) clean
|
||||
|
||||
coreutils-dirclean:
|
||||
rm -rf $(COREUTILS_DIR)
|
||||
|
@ -1,52 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# mkcramfs to build to target cramfs filesystems
|
||||
#
|
||||
#############################################################
|
||||
CRAMFS_DIR=$(BUILD_DIR)/cramfs-1.1
|
||||
CRAMFS_SOURCE=cramfs-1.1.tar.gz
|
||||
CRAMFS_SITE=http://aleron.dl.sourceforge.net/sourceforge/cramfs
|
||||
CRAMFS_PATCH=$(SOURCE_DIR)/cramfs.patch
|
||||
|
||||
$(DL_DIR)/$(CRAMFS_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(CRAMFS_SITE)/$(CRAMFS_SOURCE)
|
||||
|
||||
$(CRAMFS_DIR): $(DL_DIR)/$(CRAMFS_SOURCE) $(CRAMFS_PATCH)
|
||||
zcat $(DL_DIR)/$(CRAMFS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
cat $(CRAMFS_PATCH) | patch -p1 -d $(CRAMFS_DIR)
|
||||
|
||||
$(CRAMFS_DIR)/mkcramfs: $(CRAMFS_DIR)
|
||||
$(MAKE) CFLAGS="-Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" -C $(CRAMFS_DIR);
|
||||
touch -c $(CRAMFS_DIR)/mkcramfs
|
||||
|
||||
cramfs: $(CRAMFS_DIR)/mkcramfs
|
||||
|
||||
cramfs-source: $(DL_DIR)/$(CRAMFS_SOURCE)
|
||||
|
||||
cramfs-clean:
|
||||
-$(MAKE) -C $(CRAMFS_DIR) clean
|
||||
|
||||
cramfs-dirclean:
|
||||
rm -rf $(CRAMFS_DIR)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Build the cramfs root filesystem image
|
||||
#
|
||||
#############################################################
|
||||
|
||||
cramfsroot: cramfs
|
||||
#-@find $(TARGET_DIR)/lib -type f -name \*.so\* | xargs $(STRIP) 2>/dev/null || true;
|
||||
-@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
|
||||
@rm -rf $(TARGET_DIR)/usr/man
|
||||
@rm -rf $(TARGET_DIR)/usr/info
|
||||
$(CRAMFS_DIR)/mkcramfs -q -D $(SOURCE_DIR)/device_table.txt $(TARGET_DIR) $(IMAGE)
|
||||
|
||||
cramfsroot-source: cramfs-source
|
||||
|
||||
cramfsroot-clean:
|
||||
-$(MAKE) -C $(CRAMFS_DIR) clean
|
||||
|
||||
cramfsroot-dirclean:
|
||||
rm -rf $(CRAMFS_DIR)
|
||||
|
@ -1,10 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# Any custom stuff you feel like doing....
|
||||
#
|
||||
#############################################################
|
||||
CUST_DIR:=$(SOURCE_DIR)/customize
|
||||
ROOT_DIR:=$(BUILD_DIR)/root
|
||||
|
||||
customize:
|
||||
cp -af $(CUST_DIR)/* $(ROOT_DIR)/
|
@ -1,92 +0,0 @@
|
||||
## dhcp-fwd
|
||||
|
||||
DHCP_FWD_VERSION := 0.7
|
||||
DHCP_FWD_RELEASE := 1
|
||||
|
||||
DHCP_FWD_SOURCE := dhcp-forwarder-$(DHCP_FWD_VERSION).tar.bz2
|
||||
DHCP_FWD_SITE := http://www-user.tu-chemnitz.de/~ensc/dhcp-fwd/files/
|
||||
DHCP_FWD_DIR := $(BUILD_DIR)/dhcp-forwarder-$(DHCP_FWD_VERSION)
|
||||
DHCP_FWD_CAT := bzcat
|
||||
|
||||
DHCP_FWD_BUILD_DIR := $(BUILD_DIR)/dhcp-fwd_$(DHCP_FWD_VERSION)-$(DHCP_FWD_RELEASE)
|
||||
DHCP_FWD_IPK_DIR := $(OPENWRT_IPK_DIR)/dhcp-fwd
|
||||
DHCP_FWD_IPK := $(DHCP_FWD_BUILD_DIR)_$(ARCH).ipk
|
||||
|
||||
|
||||
$(DL_DIR)/$(DHCP_FWD_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(DHCP_FWD_SITE)/$(DHCP_FWD_SOURCE)
|
||||
|
||||
|
||||
$(DHCP_FWD_DIR)/.stamp-unpacked: $(DL_DIR)/$(DHCP_FWD_SOURCE)
|
||||
$(DHCP_FWD_CAT) $(DL_DIR)/$(DHCP_FWD_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
|
||||
touch $(DHCP_FWD_DIR)/.stamp-unpacked
|
||||
|
||||
|
||||
$(DHCP_FWD_DIR)/.stamp-configured: $(DHCP_FWD_DIR)/.stamp-unpacked
|
||||
cd $(DHCP_FWD_DIR) ; \
|
||||
rm -rf config.cache ; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
ac_cv_func_malloc_0_nonnull="yes" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--datadir=/usr/share \
|
||||
--infodir=/usr/share/info \
|
||||
--mandir=/usr/share/man \
|
||||
--localstatedir=/var \
|
||||
--sysconfdir=/etc \
|
||||
$(DISABLE_NLS) \
|
||||
|
||||
touch $(DHCP_FWD_DIR)/.stamp-configured
|
||||
|
||||
|
||||
$(DHCP_FWD_DIR)/.stamp-built: $(DHCP_FWD_DIR)/.stamp-configured
|
||||
cd $(DHCP_FWD_DIR) ; \
|
||||
touch config.guess ; \
|
||||
touch config.sub ; \
|
||||
$(MAKE) \
|
||||
CC=$(TARGET_CC) \
|
||||
cfg_filename="/etc/dhcp-fwd.conf" \
|
||||
all \
|
||||
|
||||
touch $(DHCP_FWD_DIR)/.stamp-built
|
||||
|
||||
|
||||
$(DHCP_FWD_BUILD_DIR)/CONTROL/control: $(DHCP_FWD_DIR)/.stamp-built
|
||||
rm -rf $(DHCP_FWD_BUILD_DIR)
|
||||
mkdir -p $(DHCP_FWD_BUILD_DIR)/usr/sbin
|
||||
cp -a $(DHCP_FWD_DIR)/dhcp-fwd $(DHCP_FWD_BUILD_DIR)/usr/sbin/
|
||||
$(STRIP) $(DHCP_FWD_BUILD_DIR)/usr/sbin/*
|
||||
cp -a $(DHCP_FWD_IPK_DIR)/root/* $(DHCP_FWD_BUILD_DIR)/
|
||||
chmod 0755 $(DHCP_FWD_BUILD_DIR)/etc
|
||||
chmod 0755 $(DHCP_FWD_BUILD_DIR)/etc/init.d
|
||||
chmod 0755 $(DHCP_FWD_BUILD_DIR)/etc/init.d/*
|
||||
chmod 0644 $(DHCP_FWD_BUILD_DIR)/etc/dhcp-fwd.conf
|
||||
chmod 0755 $(DHCP_FWD_BUILD_DIR)/usr
|
||||
chmod 0755 $(DHCP_FWD_BUILD_DIR)/usr/sbin
|
||||
chmod 0755 $(DHCP_FWD_BUILD_DIR)/usr/sbin/*
|
||||
cp -a $(DHCP_FWD_IPK_DIR)/CONTROL $(DHCP_FWD_BUILD_DIR)/
|
||||
perl -pi -e "s/^Vers.*:.*$$/Version: $(DHCP_FWD_VERSION)-$(DHCP_FWD_RELEASE)/" $(DHCP_FWD_BUILD_DIR)/CONTROL/control
|
||||
perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(DHCP_FWD_BUILD_DIR)/CONTROL/control
|
||||
|
||||
touch $(DHCP_FWD_BUILD_DIR)/CONTROL/control
|
||||
|
||||
|
||||
$(DHCP_FWD_IPK): $(DHCP_FWD_BUILD_DIR)/CONTROL/control
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(DHCP_FWD_BUILD_DIR)
|
||||
|
||||
|
||||
dhcp-fwd-ipk: ipkg-utils $(DHCP_FWD_IPK)
|
||||
|
||||
dhcp-fwd-clean:
|
||||
rm -rf $(DHCP_FWD_IPK)
|
||||
rm -rf $(DHCP_FWD_BUILD_DIR)
|
||||
rm -rf $(DHCP_FWD_DIR)
|
@ -1,47 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# dhcp_relay
|
||||
#
|
||||
#############################################################
|
||||
DHCP_RELAY_SOURCE:=dhcp-3.0pl2.tar.gz
|
||||
DHCP_RELAY_SITE:=ftp://ftp.isc.org/isc/dhcp
|
||||
DHCP_RELAY_CAT:=zcat
|
||||
DHCP_RELAY_DIR:=$(BUILD_DIR)/dhcp-3.0pl2
|
||||
DHCP_RELAY_BINARY:=work.linux-2.2/relay/dhcrelay
|
||||
DHCP_RELAY_TARGET_BINARY:=usr/sbin/dhcrelay
|
||||
BVARS=PREDEFINES='-D_PATH_DHCPD_DB=\"/var/lib/dhcp/dhcpd.leases\" \
|
||||
-D_PATH_DHCLIENT_DB=\"/var/lib/dhcp/dhclient.leases\"' \
|
||||
VARDB=/var/lib/dhcp
|
||||
|
||||
$(DL_DIR)/$(DHCP_RELAY_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(DHCP_RELAY_SITE)/$(DHCP_RELAY_SOURCE)
|
||||
|
||||
dhcp_relay-source: $(DL_DIR)/$(DHCP_RELAY_SOURCE)
|
||||
|
||||
$(DHCP_RELAY_DIR)/.unpacked: $(DL_DIR)/$(DHCP_RELAY_SOURCE)
|
||||
$(DHCP_RELAY_CAT) $(DL_DIR)/$(DHCP_RELAY_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(DHCP_RELAY_DIR)/.unpacked
|
||||
|
||||
$(DHCP_RELAY_DIR)/.configured: $(DHCP_RELAY_DIR)/.unpacked
|
||||
(cd $(DHCP_RELAY_DIR); $(TARGET_CONFIGURE_OPTS) ./configure );
|
||||
touch $(DHCP_RELAY_DIR)/.configured
|
||||
|
||||
$(DHCP_RELAY_DIR)/$(DHCP_RELAY_BINARY): $(DHCP_RELAY_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) $(BVARS) -C $(DHCP_RELAY_DIR)
|
||||
$(STRIP) $(DHCP_RELAY_DIR)/$(DHCP_RELAY_BINARY)
|
||||
|
||||
$(TARGET_DIR)/$(DHCP_RELAY_TARGET_BINARY): $(DHCP_RELAY_DIR)/$(DHCP_RELAY_BINARY)
|
||||
(cd $(TARGET_DIR)/var/lib; ln -sf /tmp dhcp)
|
||||
cp -a $(DHCP_RELAY_DIR)/$(DHCP_RELAY_BINARY) $(TARGET_DIR)/$(DHCP_RELAY_TARGET_BINARY)
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
dhcp_relay: uclibc $(TARGET_DIR)/$(DHCP_RELAY_TARGET_BINARY)
|
||||
|
||||
dhcp_relay-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DHCP_RELAY_DIR) uninstall
|
||||
-$(MAKE) -C $(DHCP_RELAY_DIR) clean
|
||||
|
||||
dhcp_relay-dirclean:
|
||||
rm -rf $(DHCP_RELAY_DIR)
|
||||
|
@ -1,61 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# diffutils
|
||||
#
|
||||
#############################################################
|
||||
DIFFUTILS_SOURCE:=diffutils-2.8.4.tar.gz
|
||||
DIFFUTILS_SITE:=ftp://alpha.gnu.org/gnu/diffutils/
|
||||
DIFFUTILS_CAT:=zcat
|
||||
DIFFUTILS_DIR:=$(BUILD_DIR)/diffutils-2.8.4
|
||||
DIFFUTILS_BINARY:=src/diff
|
||||
DIFFUTILS_TARGET_BINARY:=usr/bin/diff
|
||||
|
||||
$(DL_DIR)/$(DIFFUTILS_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(DIFFUTILS_SITE)/$(DIFFUTILS_SOURCE)
|
||||
|
||||
diffutils-source: $(DL_DIR)/$(DIFFUTILS_SOURCE)
|
||||
|
||||
$(DIFFUTILS_DIR)/.unpacked: $(DL_DIR)/$(DIFFUTILS_SOURCE)
|
||||
$(DIFFUTILS_CAT) $(DL_DIR)/$(DIFFUTILS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(DIFFUTILS_DIR)/.unpacked
|
||||
|
||||
$(DIFFUTILS_DIR)/.configured: $(DIFFUTILS_DIR)/.unpacked
|
||||
(cd $(DIFFUTILS_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
);
|
||||
touch $(DIFFUTILS_DIR)/.configured
|
||||
|
||||
$(DIFFUTILS_DIR)/$(DIFFUTILS_BINARY): $(DIFFUTILS_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(DIFFUTILS_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(DIFFUTILS_TARGET_BINARY): $(DIFFUTILS_DIR)/$(DIFFUTILS_BINARY)
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIFFUTILS_DIR) install
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
diffutils: uclibc $(TARGET_DIR)/$(DIFFUTILS_TARGET_BINARY)
|
||||
|
||||
diffutils-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIFFUTILS_DIR) uninstall
|
||||
-$(MAKE) -C $(DIFFUTILS_DIR) clean
|
||||
|
||||
diffutils-dirclean:
|
||||
rm -rf $(DIFFUTILS_DIR)
|
||||
|
@ -1,50 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# dnsmasq
|
||||
#
|
||||
#############################################################
|
||||
|
||||
DNSMASQ_SITE=http://thekelleys.org.uk/dnsmasq
|
||||
ifeq ($(filter $(TARGETS),dnsmasq1),)
|
||||
DNSMASQ_SOURCE=dnsmasq-2.19.tar.gz
|
||||
DNSMASQ_DIR=$(BUILD_DIR)/dnsmasq-2.19
|
||||
DNSMASQ_VER=dnsmasq2
|
||||
else
|
||||
DNSMASQ_SOURCE=dnsmasq-1.18.tar.gz
|
||||
DNSMASQ_DIR=$(BUILD_DIR)/dnsmasq-1.18
|
||||
DNSMASQ_VER=dnsmasq1
|
||||
endif
|
||||
DNSMASQ_BINARY=dnsmasq
|
||||
DNSMASQ_TARGET_BINARY=usr/sbin/dnsmasq
|
||||
|
||||
$(DL_DIR)/$(DNSMASQ_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(DNSMASQ_SITE)/$(DNSMASQ_SOURCE)
|
||||
|
||||
$(DNSMASQ_DIR)/.source: $(DL_DIR)/$(DNSMASQ_SOURCE)
|
||||
zcat $(DL_DIR)/$(DNSMASQ_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(DNSMASQ_DIR) $(SOURCE_DIR) \
|
||||
$(DNSMASQ_VER)-*.patch
|
||||
touch $(DNSMASQ_DIR)/.source
|
||||
|
||||
$(DNSMASQ_DIR)/$(DNSMASQ_BINARY): $(DNSMASQ_DIR)/.source
|
||||
$(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" \
|
||||
BINDIR=/usr/sbin MANDIR=/usr/man -C $(DNSMASQ_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(DNSMASQ_TARGET_BINARY): $(DNSMASQ_DIR)/$(DNSMASQ_BINARY)
|
||||
$(MAKE) BINDIR=/usr/sbin MANDIR=/usr/man \
|
||||
DESTDIR=$(TARGET_DIR) -C $(DNSMASQ_DIR) install
|
||||
$(STRIP) $(TARGET_DIR)/$(DNSMASQ_TARGET_BINARY)
|
||||
rm -rf $(TARGET_DIR)/usr/man
|
||||
|
||||
dnsmasq: uclibc $(TARGET_DIR)/$(DNSMASQ_TARGET_BINARY)
|
||||
|
||||
dnsmasq1: uclibc $(TARGET_DIR)/$(DNSMASQ_TARGET_BINARY)
|
||||
|
||||
dnsmasq-source: $(DL_DIR)/$(DNSMASQ_SOURCE)
|
||||
|
||||
dnsmasq-clean:
|
||||
#$(MAKE) prefix=$(TARGET_DIR)/usr -C $(DNSMASQ_DIR) uninstall
|
||||
-$(MAKE) -C $(DNSMASQ_DIR) clean
|
||||
|
||||
dnsmasq-dirclean:
|
||||
rm -rf $(DNSMASQ_DIR)
|
@ -1,78 +0,0 @@
|
||||
######################################################
|
||||
#
|
||||
# An example makefile to fetch a package from sources
|
||||
# then fetch the ipkg updates required to the base package
|
||||
# extract the archives into the build tree
|
||||
# and then build the source
|
||||
#
|
||||
######################################################
|
||||
|
||||
|
||||
# For this example we'll use a fairly simple package that compiles easily
|
||||
# and has sources available for download at sourceforge
|
||||
DROPBEAR=dropbear-0.44
|
||||
DROPBEAR_TARGET=.built
|
||||
DROPBEAR_DIR=$(BUILD_DIR)/$(DROPBEAR)
|
||||
DROPBEAR_IPK=$(BUILD_DIR)/$(DROPBEAR)_mipsel.ipk
|
||||
DROPBEAR_IPK_DIR=$(BUILD_DIR)/$(DROPBEAR)-ipk
|
||||
|
||||
DROPBEAR_SITE=http://matt.ucc.asn.au/dropbear/
|
||||
DROPBEAR_SOURCE=$(DROPBEAR).tar.bz2
|
||||
|
||||
|
||||
# We need to download sources if we dont have them
|
||||
$(DL_DIR)/$(DROPBEAR_SOURCE) :
|
||||
$(WGET) -P $(DL_DIR) $(DROPBEAR_SITE)/$(DROPBEAR_SOURCE)
|
||||
|
||||
# if we have the sources, they do no good unless they are unpacked
|
||||
$(DROPBEAR_DIR)/.unpacked: $(DL_DIR)/$(DROPBEAR_SOURCE)
|
||||
bzcat $(DL_DIR)/$(DROPBEAR_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
cat $(SOURCE_DIR)/openwrt/ipkg/dropbear/dropbear.patch | patch -p1 -d $(DROPBEAR_DIR)
|
||||
touch $(DROPBEAR_DIR)/.unpacked
|
||||
|
||||
# if we have the sources unpacked, we need to configure them
|
||||
$(DROPBEAR_DIR)/.configured: $(DROPBEAR_DIR)/.unpacked
|
||||
(cd $(DROPBEAR_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
LD=$(TARGET_CROSS)gcc \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--disable-zlib \
|
||||
);
|
||||
touch $(DROPBEAR_DIR)/.configured
|
||||
|
||||
|
||||
# now that we have it all in place, just build it
|
||||
$(DROPBEAR_DIR)/$(DROPBEAR_TARGET): $(DROPBEAR_DIR)/.configured
|
||||
mkdir -p $(DROPBEAR_IPK_DIR)/usr/bin
|
||||
cd $(DROPBEAR_DIR) && make PROGRAMS="dbclient dropbear" MULTI=1 && rm -f ssh && ln -s dbclient ssh
|
||||
$(STAGING_DIR)/bin/sstrip $(DROPBEAR_DIR)/dropbearmulti
|
||||
cd $(DROPBEAR_DIR) && cp -dpf dropbearmulti ssh dropbear dbclient $(DROPBEAR_IPK_DIR)/usr/bin
|
||||
|
||||
cd $(DROPBEAR_DIR) && make SCPPROGRESS=1 scp
|
||||
$(STAGING_DIR)/bin/sstrip $(DROPBEAR_DIR)/scp
|
||||
cd $(DROPBEAR_DIR) && cp -dpf scp $(DROPBEAR_IPK_DIR)/usr/bin
|
||||
|
||||
cd $(DROPBEAR_DIR) && make clean && make dropbearkey
|
||||
$(STAGING_DIR)/bin/sstrip $(DROPBEAR_DIR)/dropbearkey
|
||||
mkdir -p $(DROPBEAR_IPK_DIR)/tmp
|
||||
cd $(DROPBEAR_DIR) && cp -dpf dropbearkey $(DROPBEAR_IPK_DIR)/tmp/dropbearkey
|
||||
touch $(DROPBEAR_DIR)/$(DROPBEAR_TARGET)
|
||||
|
||||
$(DROPBEAR_IPK): uclibc $(DROPBEAR_DIR)/$(DROPBEAR_TARGET)
|
||||
mkdir -p $(DROPBEAR_IPK_DIR)/CONTROL
|
||||
cp $(SOURCE_DIR)/openwrt/ipkg/dropbear/CONTROL/conffiles $(DROPBEAR_IPK_DIR)/CONTROL
|
||||
cp $(SOURCE_DIR)/openwrt/ipkg/dropbear/CONTROL/control $(DROPBEAR_IPK_DIR)/CONTROL
|
||||
cp $(SOURCE_DIR)/openwrt/ipkg/dropbear/CONTROL/postinst $(DROPBEAR_IPK_DIR)/CONTROL
|
||||
mkdir -p $(DROPBEAR_IPK_DIR)/etc/init.d
|
||||
cp $(SOURCE_DIR)/openwrt/ipkg/dropbear/S51dropbear $(DROPBEAR_IPK_DIR)/etc/init.d
|
||||
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(DROPBEAR_IPK_DIR)
|
||||
|
||||
dropbear-ipk: $(DROPBEAR_IPK)
|
@ -1,56 +0,0 @@
|
||||
########################################################################
|
||||
#
|
||||
# ebtables
|
||||
#
|
||||
# Utility that enables basic Ethernet frame filtering on a Linux bridge,
|
||||
# MAC NAT and brouting.
|
||||
#
|
||||
########################################################################
|
||||
|
||||
EBTABLES_NAME=ebtables
|
||||
EBTABLES_VERSION=v2.0.6
|
||||
EBTABLES_SOURCE=$(EBTABLES_NAME)-$(EBTABLES_VERSION).tar.gz
|
||||
#EBTABLES_SOURCE_URL=http://unc.dl.sourceforge.net/sourceforge/$(EBTABLES_NAME)/
|
||||
EBTABLES_SOURCE_URL=http://aleron.dl.sourceforge.net/sourceforge/$(EBTABLES_NAME)/
|
||||
EBTABLES_BUILD_DIR=$(BUILD_DIR)/$(EBTABLES_NAME)-$(EBTABLES_VERSION)
|
||||
|
||||
$(DL_DIR)/$(EBTABLES_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(EBTABLES_SOURCE_URL)/$(EBTABLES_SOURCE)
|
||||
|
||||
$(EBTABLES_BUILD_DIR)/.unpacked: $(DL_DIR)/$(EBTABLES_SOURCE)
|
||||
zcat $(DL_DIR)/$(EBTABLES_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(EBTABLES_BUILD_DIR)/.unpacked
|
||||
|
||||
$(EBTABLES_BUILD_DIR)/.configured: $(EBTABLES_BUILD_DIR)/.unpacked
|
||||
# Allow patches. Needed for openwrt for instance.
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(LINUX_DIR)/../.. $(SOURCE_DIR) $(EBTABLES_NAME)-*.patch
|
||||
touch $(EBTABLES_BUILD_DIR)/.configured
|
||||
|
||||
$(EBTABLES_BUILD_DIR)/$(EBTABLES_NAME): $(EBTABLES_BUILD_DIR)/.configured
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) -C $(EBTABLES_BUILD_DIR) \
|
||||
CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)"
|
||||
|
||||
$(TARGET_DIR)/sbin/$(EBTABLES_NAME): $(EBTABLES_BUILD_DIR)/$(EBTABLES_NAME)
|
||||
mkdir -p $(TARGET_DIR)/sbin/
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) -C $(EBTABLES_BUILD_DIR) \
|
||||
MANDIR=$(TARGET_DIR)/usr/share/man \
|
||||
ETHERTYPESPATH=${D}/etc/ \
|
||||
BINPATH=$(TARGET_DIR)/sbin/ \
|
||||
CC=$(TARGET_CC) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
install
|
||||
$(STRIP) $(TARGET_DIR)/sbin/$(EBTABLES_NAME)
|
||||
rm -rf $(TARGET_DIR)/usr/share/man
|
||||
|
||||
$(EBTABLES_NAME): $(TARGET_DIR)/sbin/$(EBTABLES_NAME)
|
||||
|
||||
$(EBTABLES_NAME)-source: $(DL_DIR)/$(EBTABLES_SOURCE)
|
||||
|
||||
$(EBTABLES_NAME)-clean:
|
||||
-$(MAKE) -C $(EBTABLES_BUILD_DIR) clean
|
||||
|
||||
$(EBTABLES_NAME)-dirclean:
|
||||
rm -rf $(EBTABLES_BUILD_DIR)
|
@ -1,55 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# ed
|
||||
#
|
||||
#############################################################
|
||||
ED_SOURCE:=ed_0.2.orig.tar.gz
|
||||
ED_PATCH:=ed_0.2-19.diff.gz
|
||||
ED_SITE:=http://ftp.debian.org/debian/pool/main/e/ed
|
||||
ED_CAT:=zcat
|
||||
ED_DIR:=$(BUILD_DIR)/ed-0.2
|
||||
ED_BINARY:=ed
|
||||
ED_TARGET_BINARY:=bin/ed
|
||||
|
||||
$(DL_DIR)/$(ED_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(ED_SITE)/$(ED_SOURCE)
|
||||
|
||||
$(DL_DIR)/$(ED_PATCH):
|
||||
$(WGET) -P $(DL_DIR) $(ED_SITE)/$(ED_PATCH)
|
||||
|
||||
ed-source: $(DL_DIR)/$(ED_SOURCE) $(DL_DIR)/$(ED_PATCH)
|
||||
|
||||
$(ED_DIR)/.unpacked: $(DL_DIR)/$(ED_SOURCE) $(DL_DIR)/$(ED_PATCH)
|
||||
$(ED_CAT) $(DL_DIR)/$(ED_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(ED_DIR) $(DL_DIR) $(ED_PATCH)
|
||||
touch $(ED_DIR)/.unpacked
|
||||
|
||||
$(ED_DIR)/.configured: $(ED_DIR)/.unpacked
|
||||
(cd $(ED_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
$(DISABLE_NLS) \
|
||||
);
|
||||
touch $(ED_DIR)/.configured
|
||||
|
||||
$(ED_DIR)/$(ED_BINARY): $(ED_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(ED_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(ED_TARGET_BINARY): $(ED_DIR)/$(ED_BINARY)
|
||||
cp -a $(ED_DIR)/$(ED_BINARY) $(TARGET_DIR)/$(ED_TARGET_BINARY)
|
||||
|
||||
ed: uclibc $(TARGET_DIR)/$(ED_TARGET_BINARY)
|
||||
|
||||
ed-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(ED_DIR) uninstall
|
||||
-$(MAKE) -C $(ED_DIR) clean
|
||||
|
||||
ed-dirclean:
|
||||
rm -rf $(ED_DIR)
|
||||
|
@ -1,56 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# genext2fs to build to target ext2 filesystems
|
||||
#
|
||||
#############################################################
|
||||
GENEXT2_DIR=$(BUILD_DIR)/genext2fs-1.3
|
||||
GENEXT2_SOURCE=genext2fs_1.3.orig.tar.gz
|
||||
GENEXT2_SITE=http://ftp.debian.org/debian/pool/main/g/genext2fs
|
||||
GENEXT2_PATCH=$(SOURCE_DIR)/genext2fs.patch
|
||||
|
||||
$(DL_DIR)/$(GENEXT2_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(GENEXT2_SITE)/$(GENEXT2_SOURCE)
|
||||
|
||||
$(GENEXT2_DIR): $(DL_DIR)/$(GENEXT2_SOURCE) $(GENEXT2_PATCH)
|
||||
zcat $(DL_DIR)/$(GENEXT2_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
mv $(GENEXT2_DIR).orig $(GENEXT2_DIR)
|
||||
cat $(GENEXT2_PATCH) | patch -p1 -d $(GENEXT2_DIR)
|
||||
|
||||
$(GENEXT2_DIR)/genext2fs: $(GENEXT2_DIR)
|
||||
$(MAKE) CFLAGS="-Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
|
||||
-D_FILE_OFFSET_BITS=64" -C $(GENEXT2_DIR);
|
||||
touch -c $(GENEXT2_DIR)/genext2fs
|
||||
|
||||
genext2fs: $(GENEXT2_DIR)/genext2fs
|
||||
|
||||
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Build the ext2 root filesystem image
|
||||
#
|
||||
#############################################################
|
||||
|
||||
# How much KB we want to add to the calculated size for slack space
|
||||
#GENEXT2_ADDTOROOTSIZE=4096
|
||||
GENEXT2_ADDTOROOTSIZE=16384
|
||||
GENEXT2_REALSIZE=$(subst total,, $(shell LANG=C du $(TARGET_DIR) -s -c -k | grep total ))
|
||||
GENEXT2_SIZE=$(shell expr $(GENEXT2_REALSIZE) + $(GENEXT2_ADDTOROOTSIZE))
|
||||
# We currently add about 400 device nodes, so add that into the total
|
||||
GENEXT2_INODES=$(shell expr $(shell find $(TARGET_DIR) | wc -l) + 400)
|
||||
#GENEXT2_SIZE=100000
|
||||
|
||||
ext2root: genext2fs
|
||||
#-@find $(TARGET_DIR)/lib -type f -name \*.so\* | xargs $(STRIP) 2>/dev/null || true;
|
||||
-@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
|
||||
$(GENEXT2_DIR)/genext2fs -i $(GENEXT2_INODES) -b $(GENEXT2_SIZE) \
|
||||
-d $(TARGET_DIR) -q -D $(SOURCE_DIR)/device_table.txt $(IMAGE)
|
||||
|
||||
ext2root-source: $(DL_DIR)/$(GENEXT2_SOURCE)
|
||||
|
||||
ext2root-clean:
|
||||
-$(MAKE) -C $(GENEXT2_DIR) clean
|
||||
|
||||
ext2root-dirclean:
|
||||
rm -rf $(GENEXT2_DIR)
|
||||
|
@ -1,63 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# fakeroot
|
||||
#
|
||||
#############################################################
|
||||
FAKEROOT_SOURCE:=fakeroot_0.7.5.tar.gz
|
||||
FAKEROOT_SITE:=http://ftp.debian.org/debian/pool/main/f/fakeroot
|
||||
FAKEROOT_CAT:=zcat
|
||||
FAKEROOT_DIR:=$(BUILD_DIR)/fakeroot-0.7.5
|
||||
|
||||
|
||||
$(DL_DIR)/$(FAKEROOT_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(FAKEROOT_SITE)/$(FAKEROOT_SOURCE)
|
||||
|
||||
fakeroot-source: $(DL_DIR)/$(FAKEROOT_SOURCE)
|
||||
|
||||
$(FAKEROOT_DIR)/.unpacked: $(DL_DIR)/$(FAKEROOT_SOURCE)
|
||||
$(FAKEROOT_CAT) $(DL_DIR)/$(FAKEROOT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
# If using busybox getopt, make it be quiet.
|
||||
$(SED) "s,getopt --version,getopt --version 2>/dev/null," \
|
||||
$(FAKEROOT_DIR)/scripts/fakeroot
|
||||
touch $(FAKEROOT_DIR)/.unpacked
|
||||
|
||||
$(FAKEROOT_DIR)/.configured: $(FAKEROOT_DIR)/.unpacked
|
||||
(cd $(FAKEROOT_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libdir=/usr/lib/libfakeroot \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
);
|
||||
touch $(FAKEROOT_DIR)/.configured
|
||||
|
||||
$(FAKEROOT_DIR)/faked: $(FAKEROOT_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(FAKEROOT_DIR)
|
||||
|
||||
$(TARGET_DIR)/usr/bin/fakeroot: $(FAKEROOT_DIR)/faked
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(FAKEROOT_DIR) install
|
||||
-mv $(TARGET_DIR)/usr/bin/$(ARCH)-linux-faked $(TARGET_DIR)/usr/bin/faked
|
||||
-mv $(TARGET_DIR)/usr/bin/$(ARCH)-linux-fakeroot $(TARGET_DIR)/usr/bin/fakeroot
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
fakeroot: uclibc $(TARGET_DIR)/usr/bin/fakeroot
|
||||
|
||||
fakeroot-clean:
|
||||
$(MAKE) -C $(FAKEROOT_DIR) clean
|
||||
|
||||
fakeroot-dirclean:
|
||||
rm -rf $(FAKEROOT_DIR)
|
||||
|
||||
|
@ -1,64 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# file
|
||||
#
|
||||
#############################################################
|
||||
FILE_SOURCE:=file-4.08.tar.gz
|
||||
FILE_SITE:=ftp://ftp.astron.com/pub/file
|
||||
FILE_DIR:=$(BUILD_DIR)/file-4.08
|
||||
FILE_CAT:=zcat
|
||||
FILE_BINARY:=src/file
|
||||
FILE_TARGET_BINARY:=usr/bin/file
|
||||
|
||||
$(DL_DIR)/$(FILE_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(FILE_SITE)/$(FILE_SOURCE)
|
||||
|
||||
file-source: $(DL_DIR)/$(FILE_SOURCE)
|
||||
|
||||
$(FILE_DIR)/.unpacked: $(DL_DIR)/$(FILE_SOURCE)
|
||||
$(FILE_CAT) $(DL_DIR)/$(FILE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
cat $(SOURCE_DIR)/file.patch | patch -p1 -d $(FILE_DIR)
|
||||
touch $(FILE_DIR)/.unpacked
|
||||
|
||||
$(FILE_DIR)/.configured: $(FILE_DIR)/.unpacked
|
||||
(cd $(FILE_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share/misc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
--disable-fsect-man5 \
|
||||
);
|
||||
touch $(FILE_DIR)/.configured
|
||||
|
||||
$(FILE_DIR)/$(FILE_BINARY): $(FILE_DIR)/.configured
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(FILE_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(FILE_TARGET_BINARY): $(FILE_DIR)/$(FILE_BINARY)
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) -C $(FILE_DIR) install
|
||||
-($(STRIP) $(TARGET_DIR)/usr/lib/libmagic.so.*.* > /dev/null 2>&1)
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
file: zlib uclibc $(TARGET_DIR)/$(FILE_TARGET_BINARY)
|
||||
|
||||
file-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(FILE_DIR) uninstall
|
||||
-$(MAKE) -C $(FILE_DIR) clean
|
||||
|
||||
file-dirclean:
|
||||
rm -rf $(FILE_DIR)
|
||||
|
@ -1,70 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# findutils
|
||||
#
|
||||
#############################################################
|
||||
FINDUTILS_SOURCE:=findutils_4.1.7.orig.tar.gz
|
||||
FINDUTILS_SITE:=http://ftp.debian.org/debian/pool/main/f/findutils
|
||||
FINDUTILS_CAT:=zcat
|
||||
FINDUTILS_DIR:=$(BUILD_DIR)/findutils-4.1.7
|
||||
FINDUTILS_BINARY:=find/find
|
||||
FINDUTILS_TARGET_BINARY:=usr/bin/find
|
||||
|
||||
$(DL_DIR)/$(FINDUTILS_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(FINDUTILS_SITE)/$(FINDUTILS_SOURCE)
|
||||
|
||||
findutils-source: $(DL_DIR)/$(FINDUTILS_SOURCE)
|
||||
|
||||
$(FINDUTILS_DIR)/.unpacked: $(DL_DIR)/$(FINDUTILS_SOURCE)
|
||||
$(FINDUTILS_CAT) $(DL_DIR)/$(FINDUTILS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
mv $(FINDUTILS_DIR).orig $(FINDUTILS_DIR)
|
||||
touch $(FINDUTILS_DIR)/.unpacked
|
||||
|
||||
$(FINDUTILS_DIR)/.configured: $(FINDUTILS_DIR)/.unpacked
|
||||
(cd $(FINDUTILS_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
ac_cv_func_setvbuf_reversed=no \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib/locate \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var/lib \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
);
|
||||
touch $(FINDUTILS_DIR)/.configured
|
||||
|
||||
$(FINDUTILS_DIR)/$(FINDUTILS_BINARY): $(FINDUTILS_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(FINDUTILS_DIR)
|
||||
|
||||
# This stuff is needed to work around GNU make deficiencies
|
||||
findutils-target_binary: $(FINDUTILS_DIR)/$(FINDUTILS_BINARY)
|
||||
@if [ -L $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY) ] ; then \
|
||||
rm -f $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY); fi;
|
||||
@if [ ! -f $(FINDUTILS_DIR)/$(FINDUTILS_BINARY) -o $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY) \
|
||||
-ot $(FINDUTILS_DIR)/$(FINDUTILS_BINARY) ] ; then \
|
||||
set -x; \
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(FINDUTILS_DIR) install; \
|
||||
$(STRIP) $(TARGET_DIR)/usr/lib/locate/* > /dev/null 2>&1; \
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc; fi;
|
||||
|
||||
findutils: uclibc findutils-target_binary
|
||||
|
||||
findutils-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(FINDUTILS_DIR) uninstall
|
||||
-$(MAKE) -C $(FINDUTILS_DIR) clean
|
||||
|
||||
findutils-dirclean:
|
||||
rm -rf $(FINDUTILS_DIR)
|
||||
|
@ -1,81 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# flex
|
||||
#
|
||||
#############################################################
|
||||
FLEX_SOURCE:=flex_2.5.4a.orig.tar.gz
|
||||
FLEX_PATCH:=flex_2.5.4a-24.diff.gz
|
||||
FLEX_SITE:=http://ftp.debian.org/debian/pool/main/f/flex
|
||||
FLEX_DIR:=$(BUILD_DIR)/flex-2.5.4
|
||||
FLEX_CAT:=zcat
|
||||
FLEX_BINARY:=flex
|
||||
FLEX_TARGET_BINARY:=usr/bin/flex
|
||||
|
||||
$(DL_DIR)/$(FLEX_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(FLEX_SITE)/$(FLEX_SOURCE)
|
||||
|
||||
$(DL_DIR)/$(FLEX_PATCH):
|
||||
$(WGET) -P $(DL_DIR) $(FLEX_SITE)/$(FLEX_PATCH)
|
||||
|
||||
flex-source: $(DL_DIR)/$(FLEX_SOURCE) $(DL_DIR)/$(FLEX_PATCH)
|
||||
|
||||
$(FLEX_DIR)/.unpacked: $(DL_DIR)/$(FLEX_SOURCE) $(DL_DIR)/$(FLEX_PATCH)
|
||||
$(FLEX_CAT) $(DL_DIR)/$(FLEX_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
#$(SOURCE_DIR)/patch-kernel.sh $(FLEX_DIR) $(DL_DIR) $(FLEX_PATCH)
|
||||
touch $(FLEX_DIR)/.unpacked
|
||||
|
||||
$(FLEX_DIR)/.configured: $(FLEX_DIR)/.unpacked
|
||||
(cd $(FLEX_DIR); autoconf; rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
);
|
||||
touch $(FLEX_DIR)/.configured
|
||||
|
||||
$(FLEX_DIR)/$(FLEX_BINARY): $(FLEX_DIR)/.configured
|
||||
$(MAKE) -C $(FLEX_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(FLEX_TARGET_BINARY): $(FLEX_DIR)/$(FLEX_BINARY)
|
||||
$(MAKE) \
|
||||
prefix=$(TARGET_DIR)/usr \
|
||||
exec_prefix=$(TARGET_DIR)/usr \
|
||||
bindir=$(TARGET_DIR)/usr/bin \
|
||||
sbindir=$(TARGET_DIR)/usr/sbin \
|
||||
libexecdir=$(TARGET_DIR)/usr/lib \
|
||||
datadir=$(TARGET_DIR)/usr/share \
|
||||
sysconfdir=$(TARGET_DIR)/etc \
|
||||
sharedstatedir=$(TARGET_DIR)/usr/com \
|
||||
localstatedir=$(TARGET_DIR)/var \
|
||||
libdir=$(TARGET_DIR)/usr/lib \
|
||||
infodir=$(TARGET_DIR)/usr/info \
|
||||
mandir=$(TARGET_DIR)/usr/man \
|
||||
includedir=$(TARGET_DIR)/usr/include \
|
||||
-C $(FLEX_DIR) install;
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
(cd $(TARGET_DIR)/usr/bin; ln -s flex lex)
|
||||
|
||||
flex: uclibc $(TARGET_DIR)/$(FLEX_TARGET_BINARY)
|
||||
|
||||
flex-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(FLEX_DIR) uninstall
|
||||
-$(MAKE) -C $(FLEX_DIR) clean
|
||||
|
||||
flex-dirclean:
|
||||
rm -rf $(FLEX_DIR)
|
||||
|
@ -1,101 +0,0 @@
|
||||
## fprobe
|
||||
|
||||
FPROBE_VERSION:=1.0.5
|
||||
FPROBE_RELEASE:=1
|
||||
|
||||
FPROBE_SOURCE:=fprobe-$(FPROBE_VERSION).tar.bz2
|
||||
FPROBE_SITE:=http://dl.sourceforge.net/sourceforge/fprobe/
|
||||
FPROBE_DIR:=$(BUILD_DIR)/fprobe-$(FPROBE_VERSION)
|
||||
FPROBE_CAT:=bzcat
|
||||
|
||||
FPROBE_PATCH_DIR := $(SOURCE_DIR)/openwrt/patches/fprobe
|
||||
|
||||
FPROBE_BUILD_DIR := $(BUILD_DIR)/fprobe_$(FPROBE_VERSION)-$(FPROBE_RELEASE)
|
||||
FPROBE_IPK_DIR := $(OPENWRT_IPK_DIR)/fprobe
|
||||
FPROBE_IPK := $(FPROBE_BUILD_DIR)_$(ARCH).ipk
|
||||
|
||||
|
||||
$(DL_DIR)/$(FPROBE_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(FPROBE_SITE)/$(FPROBE_SOURCE)
|
||||
|
||||
|
||||
$(FPROBE_DIR)/.stamp-unpacked: $(DL_DIR)/$(FPROBE_SOURCE)
|
||||
$(FPROBE_CAT) $(DL_DIR)/$(FPROBE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
|
||||
touch $(FPROBE_DIR)/.stamp-unpacked
|
||||
|
||||
|
||||
$(FPROBE_DIR)/.stamp-configured: $(FPROBE_DIR)/.stamp-unpacked
|
||||
cd $(FPROBE_DIR) ; \
|
||||
rm -rf config.cache ; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib/locate \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var/lib \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info \
|
||||
--includedir=/usr/include \
|
||||
--libdir=/usr/lib \
|
||||
$(DISABLE_NLS) \
|
||||
--with-membulk=index8 \
|
||||
--with-hash=xor8
|
||||
|
||||
touch $(FPROBE_DIR)/.stamp-configured
|
||||
|
||||
|
||||
$(FPROBE_DIR)/.stamp-built: $(FPROBE_DIR)/.stamp-configured
|
||||
cd $(FPROBE_DIR) ; \
|
||||
$(MAKE) \
|
||||
CC=$(TARGET_CC) \
|
||||
|
||||
touch $(FPROBE_DIR)/.stamp-built
|
||||
|
||||
|
||||
$(FPROBE_DIR)/.stamp-installed: $(FPROBE_DIR)/.stamp-built
|
||||
mkdir -p $(FPROBE_BUILD_DIR)
|
||||
cd $(FPROBE_DIR) ; \
|
||||
$(MAKE) \
|
||||
DESTDIR="$(FPROBE_BUILD_DIR)" \
|
||||
install \
|
||||
|
||||
install -m0755 -d $(FPROBE_BUILD_DIR)/etc
|
||||
install -m0644 $(FPROBE_IPK_DIR)/root/etc/fprobe.conf $(FPROBE_BUILD_DIR)/etc/
|
||||
|
||||
install -m0755 -d $(FPROBE_BUILD_DIR)/etc/init.d
|
||||
install -m0755 $(FPROBE_IPK_DIR)/root/etc/init.d/fprobe $(FPROBE_BUILD_DIR)/etc/init.d/
|
||||
|
||||
rm -rf $(FPROBE_BUILD_DIR)/usr/share
|
||||
|
||||
$(STRIP) $(FPROBE_BUILD_DIR)/usr/sbin/*
|
||||
|
||||
touch $(FPROBE_DIR)/.stamp-installed
|
||||
|
||||
|
||||
$(FPROBE_IPK): $(FPROBE_DIR)/.stamp-installed
|
||||
cp -a $(FPROBE_IPK_DIR)/CONTROL $(FPROBE_BUILD_DIR)/
|
||||
perl -pi -e "s/^Vers.*:.*$$/Version: $(FPROBE_VERSION)-$(FPROBE_RELEASE)/" $(FPROBE_BUILD_DIR)/CONTROL/control
|
||||
perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(FPROBE_BUILD_DIR)/CONTROL/control
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(FPROBE_BUILD_DIR)
|
||||
|
||||
|
||||
fprobe-source: $(DL_DIR)/$(FPROBE_SOURCE)
|
||||
|
||||
fprobe-ipk: ipkg-utils libpcap-ipk $(FPROBE_IPK)
|
||||
|
||||
fprobe-clean:
|
||||
$(MAKE) -C $(FPROBE_DIR) clean
|
||||
|
||||
fprobe-clean-all:
|
||||
rm -rf $(FPROBE_DIR)
|
||||
rm -rf $(FPROBE_BUILD_DIR)
|
||||
rm -rf $(FPROBE_IPK)
|
@ -1,66 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# gawk
|
||||
#
|
||||
#############################################################
|
||||
GAWK_SOURCE:=gawk-3.1.2.tar.gz
|
||||
GAWK_SITE:=ftp://ftp.gnu.org/gnu/gawk
|
||||
GAWK_CAT:=zcat
|
||||
GAWK_DIR:=$(BUILD_DIR)/gawk-3.1.2
|
||||
GAWK_BINARY:=gawk
|
||||
GAWK_TARGET_BINARY:=usr/bin/gawk
|
||||
|
||||
$(DL_DIR)/$(GAWK_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(GAWK_SITE)/$(GAWK_SOURCE)
|
||||
|
||||
gawk-source: $(DL_DIR)/$(GAWK_SOURCE)
|
||||
|
||||
$(GAWK_DIR)/.unpacked: $(DL_DIR)/$(GAWK_SOURCE)
|
||||
$(GAWK_CAT) $(DL_DIR)/$(GAWK_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(GAWK_DIR)/.unpacked
|
||||
|
||||
$(GAWK_DIR)/.configured: $(GAWK_DIR)/.unpacked
|
||||
(cd $(GAWK_DIR); rm -rf config.cache; autoconf; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
ac_cv_func_getpgrp_void=yes \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
);
|
||||
touch $(GAWK_DIR)/.configured
|
||||
|
||||
$(GAWK_DIR)/$(GAWK_BINARY): $(GAWK_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(GAWK_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(GAWK_TARGET_BINARY): $(GAWK_DIR)/$(GAWK_BINARY)
|
||||
rm -f $(TARGET_DIR)/usr/bin/awk
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GAWK_DIR) install
|
||||
rm -f $(TARGET_DIR)/usr/bin/gawk-*
|
||||
(cd $(TARGET_DIR)/usr/bin; ln -sf gawk awk)
|
||||
$(STRIP) $(TARGET_DIR)/usr/lib/awk/* > /dev/null 2>&1
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
gawk: uclibc $(TARGET_DIR)/$(GAWK_TARGET_BINARY)
|
||||
|
||||
gawk-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GAWK_DIR) uninstall
|
||||
-$(MAKE) -C $(GAWK_DIR) clean
|
||||
|
||||
gawk-dirclean:
|
||||
rm -rf $(GAWK_DIR)
|
||||
|
@ -1,276 +0,0 @@
|
||||
# Makefile for to build a gcc/uClibc toolchain
|
||||
#
|
||||
# Copyright (C) 2002-2003 Erik Andersen <andersen@uclibc.org>
|
||||
# Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
ifeq ($(GCC_2_95_TOOLCHAIN),true)
|
||||
|
||||
GCC_SITE:=http://www.uclibc.org/downloads/toolchain
|
||||
GCC_SOURCE:=gcc-20011006.tar.bz2
|
||||
GCC_DIR:=$(TOOL_BUILD_DIR)/gcc-20011006
|
||||
GCC_CAT:=bzcat
|
||||
|
||||
STLPORT_SITE=http://www.stlport.org/archive
|
||||
STLPORT_SOURCE=STLport-4.5.3.tar.gz
|
||||
STLPORT_DIR=$(TOOL_BUILD_DIR)/STLport-4.5.3
|
||||
GCC_STRIP_HOST_BINARIES:=true
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Setup some initial stuff
|
||||
#
|
||||
#############################################################
|
||||
|
||||
ifeq ($(INSTALL_LIBSTDCPP),true)
|
||||
TARGET_LANGUAGES:=c,c++
|
||||
STLPORT_TARGET=stlport
|
||||
else
|
||||
TARGET_LANGUAGES:=c
|
||||
STLPORT_TARGET=
|
||||
endif
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# build the first pass gcc compiler
|
||||
#
|
||||
#############################################################
|
||||
GCC_BUILD_DIR1:=$(TOOL_BUILD_DIR)/gcc2_95-initial
|
||||
|
||||
$(DL_DIR)/$(GCC_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(GCC_SITE)/$(GCC_SOURCE)
|
||||
|
||||
$(GCC_DIR)/.unpacked: $(DL_DIR)/$(GCC_SOURCE)
|
||||
$(GCC_CAT) $(DL_DIR)/$(GCC_SOURCE) | tar -C $(TOOL_BUILD_DIR) -xvf -
|
||||
touch $(GCC_DIR)/.unpacked
|
||||
|
||||
$(GCC_DIR)/.patched: $(GCC_DIR)/.unpacked
|
||||
# Apply any files named gcc-*.patch from the source directory to gcc
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(GCC_DIR) $(SOURCE_DIR) gcc2.95-mega.patch.bz2
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(GCC_DIR) $(SOURCE_DIR) gcc2.95-uclibc-conf.patch
|
||||
#$(SOURCE_DIR)/patch-kernel.sh $(GCC_DIR) $(SOURCE_DIR) gcc-uclibc2_95*.patch
|
||||
#
|
||||
# We do not wish to build the libstdc++ library provided with gcc,
|
||||
# since it doesn't seem to work at all with uClibc plus gcc 2.95...
|
||||
#
|
||||
mv $(GCC_DIR)/libstdc++ $(GCC_DIR)/libstdc++.orig
|
||||
mv $(GCC_DIR)/libio $(GCC_DIR)/libio.orig
|
||||
#
|
||||
touch $(GCC_DIR)/.patched
|
||||
|
||||
# The --without-headers option stopped working with gcc 3.0 and has never been
|
||||
# # fixed, so we need to actually have working C library header files prior to
|
||||
# # the step or libgcc will not build...
|
||||
$(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.patched
|
||||
mkdir -p $(GCC_BUILD_DIR1)
|
||||
-mkdir -p $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include
|
||||
# Important! Required for limits.h to be fixed.
|
||||
ln -sf include $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/sys-include
|
||||
(cd $(GCC_BUILD_DIR1); PATH=$(TARGET_PATH) \
|
||||
$(GCC_DIR)/configure \
|
||||
--prefix=$(STAGING_DIR) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(GNU_HOST_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--enable-languages=c \
|
||||
--disable-shared \
|
||||
--includedir=$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include \
|
||||
--with-headers=$(TOOL_BUILD_DIR)/uClibc_dev/usr/include \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-target-optspace \
|
||||
--with-gnu-ld \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
touch $(GCC_BUILD_DIR1)/.configured
|
||||
|
||||
$(GCC_BUILD_DIR1)/.compiled: $(GCC_BUILD_DIR1)/.configured
|
||||
PATH=$(TARGET_PATH) $(MAKE) $(JLEVEL) -C $(GCC_BUILD_DIR1) all-gcc
|
||||
touch $(GCC_BUILD_DIR1)/.compiled
|
||||
|
||||
$(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc: $(GCC_BUILD_DIR1)/.compiled
|
||||
PATH=$(TARGET_PATH) $(MAKE) $(JLEVEL) -C $(GCC_BUILD_DIR1) install-gcc
|
||||
#rm -f $(STAGING_DIR)/bin/gccbug $(STAGING_DIR)/bin/gcov
|
||||
#rm -rf $(STAGING_DIR)/info $(STAGING_DIR)/man $(STAGING_DIR)/share/doc $(STAGING_DIR)/share/locale
|
||||
|
||||
gcc2_95_initial: uclibc-configured binutils $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc
|
||||
|
||||
gcc2_95_initial-clean:
|
||||
rm -rf $(GCC_BUILD_DIR1)
|
||||
rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
|
||||
gcc2_95_initial-dirclean:
|
||||
rm -rf $(GCC_BUILD_DIR1)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# STLport -- an alternative C++ library
|
||||
#
|
||||
#############################################################
|
||||
STLPORT_PATCH=$(SOURCE_DIR)/STLport-4.5.3.patch
|
||||
|
||||
$(DL_DIR)/$(STLPORT_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(STLPORT_SITE)/$(STLPORT_SOURCE)
|
||||
|
||||
$(STLPORT_DIR)/Makefile: $(DL_DIR)/$(STLPORT_SOURCE) $(STLPORT_PATCH)
|
||||
zcat $(DL_DIR)/$(STLPORT_SOURCE) | tar -C $(TOOL_BUILD_DIR) -xvf -
|
||||
cat $(STLPORT_PATCH) | patch -d $(STLPORT_DIR) -p1
|
||||
|
||||
$(STLPORT_DIR)/lib/libstdc++.a: $(STLPORT_DIR)/Makefile
|
||||
$(MAKE) ARCH=$(OPTIMIZE_FOR_CPU) PREFIX=$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME) -C $(STLPORT_DIR)
|
||||
|
||||
$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libstdc++.a: $(STLPORT_DIR)/lib/libstdc++.a
|
||||
$(MAKE) ARCH=$(OPTIMIZE_FOR_CPU) PREFIX=$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME) -C $(STLPORT_DIR) install
|
||||
|
||||
stlport: $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libstdc++.a
|
||||
|
||||
stlport-source: $(DL_DIR)/$(STLPORT_SOURCE)
|
||||
|
||||
stlport-clean:
|
||||
rm -f $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libstdc++*
|
||||
rm -f $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include/c++*
|
||||
-$(MAKE) -C $(STLPORT_DIR) clean
|
||||
|
||||
stlport-dirclean:
|
||||
rm -f $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libstdc++*
|
||||
rm -f $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include/g++-v3*
|
||||
rm -rf $(STLPORT_DIR)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# second pass compiler build. Build the compiler targeting
|
||||
# the newly built shared uClibc library.
|
||||
#
|
||||
#############################################################
|
||||
GCC_BUILD_DIR2:=$(TOOL_BUILD_DIR)/gcc2_95-final
|
||||
|
||||
$(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libc.a
|
||||
mkdir -p $(GCC_BUILD_DIR2)
|
||||
(cd $(GCC_BUILD_DIR2); PATH=$(TARGET_PATH) \
|
||||
$(GCC_DIR)/configure \
|
||||
--prefix=$(STAGING_DIR) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(GNU_HOST_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--enable-languages=$(TARGET_LANGUAGES) \
|
||||
--enable-shared \
|
||||
--with-gxx-include-dir=$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include/c++ \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-target-optspace \
|
||||
--with-gnu-ld \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
touch $(GCC_BUILD_DIR2)/.configured
|
||||
|
||||
$(GCC_BUILD_DIR2)/.compiled: $(GCC_BUILD_DIR2)/.configured
|
||||
PATH=$(TARGET_PATH) $(MAKE) $(JLEVEL) -C $(GCC_BUILD_DIR2) all
|
||||
touch $(GCC_BUILD_DIR2)/.compiled
|
||||
|
||||
$(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled
|
||||
PATH=$(TARGET_PATH) $(MAKE) $(JLEVEL) -C $(GCC_BUILD_DIR2) install
|
||||
# Strip the host binaries
|
||||
ifeq ($(GCC_STRIP_HOST_BINARIES),true)
|
||||
-strip --strip-all -R .note -R .comment $(STAGING_DIR)/bin/*
|
||||
endif
|
||||
# Set up the symlinks to enable lying about target name.
|
||||
set -e; \
|
||||
(cd $(STAGING_DIR); \
|
||||
ln -sf $(REAL_GNU_TARGET_NAME) $(GNU_TARGET_NAME); \
|
||||
cd bin; \
|
||||
for app in $(REAL_GNU_TARGET_NAME)-* ; do \
|
||||
ln -sf $${app} \
|
||||
$(GNU_TARGET_NAME)$${app##$(REAL_GNU_TARGET_NAME)}; \
|
||||
done; \
|
||||
);
|
||||
touch $(GCC_BUILD_DIR2)/.installed
|
||||
|
||||
gcc2_95: uclibc-configured binutils gcc2_95_initial $(LIBFLOAT_TARGET) uclibc \
|
||||
$(GCC_BUILD_DIR2)/.installed $(GCC_TARGETS) $(STLPORT_TARGET)
|
||||
|
||||
gcc2_95-source: $(DL_DIR)/$(GCC_SOURCE)
|
||||
|
||||
gcc2_95-clean:
|
||||
rm -rf $(GCC_BUILD_DIR2)
|
||||
rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
|
||||
gcc2_95-dirclean:
|
||||
rm -rf $(GCC_BUILD_DIR2)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Next build target gcc compiler
|
||||
#
|
||||
#############################################################
|
||||
GCC_BUILD_DIR3:=$(BUILD_DIR)/gcc2_95-target
|
||||
|
||||
$(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR2)/.installed
|
||||
mkdir -p $(GCC_BUILD_DIR3)
|
||||
(cd $(GCC_BUILD_DIR3); PATH=$(TARGET_PATH) \
|
||||
$(GCC_DIR)/configure \
|
||||
--prefix=/usr \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(REAL_GNU_TARGET_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--enable-languages=$(TARGET_LANGUAGES) \
|
||||
--enable-shared \
|
||||
--with-gxx-include-dir=/usr/include/c++ \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-target-optspace \
|
||||
--with-gnu-ld \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
touch $(GCC_BUILD_DIR3)/.configured
|
||||
|
||||
$(GCC_BUILD_DIR3)/.compiled: $(GCC_BUILD_DIR3)/.configured
|
||||
PATH=$(TARGET_PATH) \
|
||||
$(MAKE) $(JLEVEL) $(TARGET_GCC_ARGS) -C $(GCC_BUILD_DIR3) all
|
||||
touch $(GCC_BUILD_DIR3)/.compiled
|
||||
|
||||
$(TARGET_DIR)/usr/bin/gcc: $(GCC_BUILD_DIR3)/.compiled
|
||||
PATH=$(TARGET_PATH) \
|
||||
$(MAKE) $(JLEVEL) DESTDIR=$(TARGET_DIR) -C $(GCC_BUILD_DIR3) install
|
||||
# Remove broken specs file (cross compile flag is set).
|
||||
rm -f $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
|
||||
-(cd $(TARGET_DIR)/bin; find -type f | xargs $(STRIP) > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/usr/bin; find -type f | xargs $(STRIP) > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION); $(STRIP) cc1 cc1plus collect2 > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/usr/lib; $(STRIP) libstdc++.so.*.*.* > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/lib; $(STRIP) libgcc_s.so.*.*.* > /dev/null 2>&1)
|
||||
#
|
||||
rm -f $(TARGET_DIR)/usr/lib/*.la*
|
||||
#rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
# $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
# Work around problem of missing syslimits.h
|
||||
cp -f $(STAGING_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/include/syslimits.h $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/include/
|
||||
# These are in /lib, so...
|
||||
#rm -rf $(TARGET_DIR)/usr/lib/libgcc_s.so*
|
||||
#touch -c $(TARGET_DIR)/usr/bin/gcc
|
||||
|
||||
gcc2_95_target: uclibc_target binutils_target $(TARGET_DIR)/usr/bin/gcc
|
||||
|
||||
gcc2_95_target-clean:
|
||||
rm -rf $(GCC_BUILD_DIR3)
|
||||
rm -f $(TARGET_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
|
||||
gcc2_95_target-dirclean:
|
||||
rm -rf $(GCC_BUILD_DIR3)
|
||||
|
||||
endif
|
@ -1,267 +0,0 @@
|
||||
# Makefile for to build a gcc/uClibc toolchain
|
||||
#
|
||||
# Copyright (C) 2002-2003 Erik Andersen <andersen@uclibc.org>
|
||||
# Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
ifneq ($(GCC_2_95_TOOLCHAIN),true)
|
||||
|
||||
# Shiny new stuff...
|
||||
GCC_VERSION:=3.3.3
|
||||
GCC_SITE:=ftp://ftp.gnu.org/gnu/gcc/releases/gcc-$(GCC_VERSION)
|
||||
#GCC_SITE:=http://www.binarycode.org/gcc/releases/gcc-$(GCC_VERSION)
|
||||
#GCC_SITE:=http://gcc.get-software.com/releases/gcc-$(GCC_VERSION)
|
||||
|
||||
#
|
||||
# snapshots....
|
||||
#GCC_VERSION:=3.3-20031013
|
||||
#GCC_SITE:=http://gcc.get-software.com/snapshots/$(GCC_VERSION)
|
||||
#
|
||||
GCC_SOURCE:=gcc-$(GCC_VERSION).tar.bz2
|
||||
GCC_DIR:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)
|
||||
GCC_CAT:=bzcat
|
||||
GCC_STRIP_HOST_BINARIES:=true
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Setup some initial stuff
|
||||
#
|
||||
#############################################################
|
||||
|
||||
ifeq ($(INSTALL_LIBGCJ),true)
|
||||
TARGET_LANGUAGES:=c,c++,java
|
||||
else
|
||||
ifeq ($(INSTALL_LIBSTDCPP),true)
|
||||
TARGET_LANGUAGES:=c,c++
|
||||
else
|
||||
TARGET_LANGUAGES:=c
|
||||
endif
|
||||
endif
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# build the first pass gcc compiler
|
||||
#
|
||||
#############################################################
|
||||
GCC_BUILD_DIR1:=$(TOOL_BUILD_DIR)/gcc-3.3-initial
|
||||
|
||||
$(DL_DIR)/$(GCC_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(GCC_SITE)/$(GCC_SOURCE)
|
||||
|
||||
$(GCC_DIR)/.unpacked: $(DL_DIR)/$(GCC_SOURCE)
|
||||
$(GCC_CAT) $(DL_DIR)/$(GCC_SOURCE) | tar -C $(TOOL_BUILD_DIR) -xvf -
|
||||
touch $(GCC_DIR)/.unpacked
|
||||
|
||||
$(GCC_DIR)/.patched: $(GCC_DIR)/.unpacked
|
||||
# Apply any files named gcc-*.patch from the source directory to gcc
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(GCC_DIR) $(SOURCE_DIR) gcc3.3-mega.patch.bz2
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(GCC_DIR) $(SOURCE_DIR) gcc-uclibc-3.3*.patch
|
||||
ifeq ($(SOFT_FLOAT),true)
|
||||
ifeq ("$(strip $(ARCH))","i386")
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(GCC_DIR) $(SOURCE_DIR) i386-gcc-soft-float.patch
|
||||
endif
|
||||
endif
|
||||
touch $(GCC_DIR)/.patched
|
||||
|
||||
# The --without-headers option stopped working with gcc 3.0 and has never been
|
||||
# # fixed, so we need to actually have working C library header files prior to
|
||||
# # the step or libgcc will not build...
|
||||
$(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.patched
|
||||
mkdir -p $(GCC_BUILD_DIR1)
|
||||
-mkdir -p $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include
|
||||
(cd $(GCC_BUILD_DIR1); PATH=$(TARGET_PATH) \
|
||||
$(GCC_DIR)/configure \
|
||||
--prefix=$(STAGING_DIR) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(GNU_HOST_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--enable-languages=c \
|
||||
--disable-shared \
|
||||
--includedir=$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include \
|
||||
--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/ \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-target-optspace \
|
||||
--with-gnu-ld \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
touch $(GCC_BUILD_DIR1)/.configured
|
||||
|
||||
$(GCC_BUILD_DIR1)/.compiled: $(GCC_BUILD_DIR1)/.configured
|
||||
PATH=$(TARGET_PATH) $(MAKE) $(JLEVEL) -C $(GCC_BUILD_DIR1) all-gcc
|
||||
touch $(GCC_BUILD_DIR1)/.compiled
|
||||
|
||||
$(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc: $(GCC_BUILD_DIR1)/.compiled
|
||||
PATH=$(TARGET_PATH) $(MAKE) $(JLEVEL) -C $(GCC_BUILD_DIR1) install-gcc
|
||||
#rm -f $(STAGING_DIR)/bin/gccbug $(STAGING_DIR)/bin/gcov
|
||||
#rm -rf $(STAGING_DIR)/info $(STAGING_DIR)/man $(STAGING_DIR)/share/doc $(STAGING_DIR)/share/locale
|
||||
|
||||
gcc3_3_initial: uclibc-configured binutils $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc
|
||||
|
||||
gcc3_3_initial-clean:
|
||||
rm -rf $(GCC_BUILD_DIR1)
|
||||
rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
|
||||
gcc3_3_initial-dirclean:
|
||||
rm -rf $(GCC_BUILD_DIR1)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# second pass compiler build. Build the compiler targeting
|
||||
# the newly built shared uClibc library.
|
||||
#
|
||||
#############################################################
|
||||
GCC_BUILD_DIR2:=$(TOOL_BUILD_DIR)/gcc-3.3-final
|
||||
$(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libc.a
|
||||
mkdir -p $(GCC_BUILD_DIR2)
|
||||
# Important! Required for limits.h to be fixed.
|
||||
ln -sf include $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/sys-include
|
||||
(cd $(GCC_BUILD_DIR2); PATH=$(TARGET_PATH) \
|
||||
$(GCC_DIR)/configure \
|
||||
--prefix=$(STAGING_DIR) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(GNU_HOST_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--enable-languages=$(TARGET_LANGUAGES) \
|
||||
--enable-shared \
|
||||
--with-gxx-include-dir=$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include/c++ \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-target-optspace \
|
||||
--with-gnu-ld \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(GCC_USE_SJLJ_EXCEPTIONS) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
touch $(GCC_BUILD_DIR2)/.configured
|
||||
|
||||
$(GCC_BUILD_DIR2)/.compiled: $(GCC_BUILD_DIR2)/.configured
|
||||
PATH=$(TARGET_PATH) $(MAKE) $(JLEVEL) -C $(GCC_BUILD_DIR2) all
|
||||
touch $(GCC_BUILD_DIR2)/.compiled
|
||||
|
||||
$(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled
|
||||
PATH=$(TARGET_PATH) $(MAKE) $(JLEVEL) -C $(GCC_BUILD_DIR2) install
|
||||
# Strip the host binaries
|
||||
ifeq ($(GCC_STRIP_HOST_BINARIES),true)
|
||||
-strip --strip-all -R .note -R .comment $(STAGING_DIR)/bin/*
|
||||
endif
|
||||
# Set up the symlinks to enable lying about target name.
|
||||
set -e; \
|
||||
(cd $(STAGING_DIR); \
|
||||
ln -sf $(REAL_GNU_TARGET_NAME) $(GNU_TARGET_NAME); \
|
||||
cd bin; \
|
||||
for app in $(REAL_GNU_TARGET_NAME)-* ; do \
|
||||
ln -sf $${app} \
|
||||
$(GNU_TARGET_NAME)$${app##$(REAL_GNU_TARGET_NAME)}; \
|
||||
done; \
|
||||
);
|
||||
ifeq ($(SOFT_FLOAT),true)
|
||||
# Replace specs file with one that defaults to soft float mode.
|
||||
if [ ! -f $(STAGING_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs ] ; then \
|
||||
echo staging dir specs file is missing ; \
|
||||
/bin/false ; \
|
||||
fi;
|
||||
cp $(SOURCE_DIR)/specs-$(ARCH)-soft-float $(STAGING_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
|
||||
endif
|
||||
touch $(GCC_BUILD_DIR2)/.installed
|
||||
|
||||
gcc3_3: uclibc-configured binutils gcc3_3_initial $(LIBFLOAT_TARGET) uclibc \
|
||||
$(GCC_BUILD_DIR2)/.installed $(GCC_TARGETS)
|
||||
|
||||
gcc3_3-source: $(DL_DIR)/$(GCC_SOURCE)
|
||||
|
||||
gcc3_3-clean:
|
||||
rm -rf $(GCC_BUILD_DIR2)
|
||||
rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
|
||||
gcc3_3-dirclean:
|
||||
rm -rf $(GCC_BUILD_DIR2)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Next build target gcc compiler
|
||||
#
|
||||
#############################################################
|
||||
GCC_BUILD_DIR3:=$(BUILD_DIR)/gcc-3.3-target
|
||||
|
||||
$(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR2)/.installed
|
||||
mkdir -p $(GCC_BUILD_DIR3)
|
||||
(cd $(GCC_BUILD_DIR3); PATH=$(TARGET_PATH) \
|
||||
$(GCC_DIR)/configure \
|
||||
--prefix=/usr \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(REAL_GNU_TARGET_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--enable-languages=$(TARGET_LANGUAGES) \
|
||||
--enable-shared \
|
||||
--with-gxx-include-dir=/usr/include/c++ \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-target-optspace \
|
||||
--with-gnu-ld \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(GCC_USE_SJLJ_EXCEPTIONS) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
touch $(GCC_BUILD_DIR3)/.configured
|
||||
|
||||
$(GCC_BUILD_DIR3)/.compiled: $(GCC_BUILD_DIR3)/.configured
|
||||
PATH=$(TARGET_PATH) \
|
||||
$(MAKE) $(JLEVEL) $(TARGET_GCC_ARGS) -C $(GCC_BUILD_DIR3) all
|
||||
touch $(GCC_BUILD_DIR3)/.compiled
|
||||
|
||||
$(TARGET_DIR)/usr/bin/gcc: $(GCC_BUILD_DIR3)/.compiled
|
||||
PATH=$(TARGET_PATH) \
|
||||
$(MAKE) $(JLEVEL) DESTDIR=$(TARGET_DIR) -C $(GCC_BUILD_DIR3) install
|
||||
ifeq ($(SOFT_FLOAT),true)
|
||||
# Replace specs file with one that defaults to soft float mode.
|
||||
if [ ! -f $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs ] ; then \
|
||||
echo target dir specs file is missing ; \
|
||||
/bin/false ; \
|
||||
fi;
|
||||
cp $(SOURCE_DIR)/specs-$(ARCH)-soft-float $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
|
||||
# Make sure gcc does not think we are cross compiling
|
||||
$(SED) "s/^1/0/;" $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
|
||||
else
|
||||
# Remove broken specs file (cross compile flag is set).
|
||||
rm -f $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
|
||||
endif
|
||||
-(cd $(TARGET_DIR)/bin; find -type f | xargs $(STRIP) > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/usr/bin; find -type f | xargs $(STRIP) > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION); $(STRIP) cc1 cc1plus collect2 > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/usr/lib; $(STRIP) libstdc++.so.*.*.* > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/lib; $(STRIP) libgcc_s.so.*.*.* > /dev/null 2>&1)
|
||||
#
|
||||
rm -f $(TARGET_DIR)/usr/lib/*.la*
|
||||
#rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
# $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
# Work around problem of missing syslimits.h
|
||||
cp -f $(STAGING_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/include/syslimits.h $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/include/
|
||||
# These are in /lib, so...
|
||||
#rm -rf $(TARGET_DIR)/usr/lib/libgcc_s.so*
|
||||
#touch -c $(TARGET_DIR)/usr/bin/gcc
|
||||
|
||||
gcc3_3_target: uclibc_target binutils_target $(TARGET_DIR)/usr/bin/gcc
|
||||
|
||||
gcc3_3_target-clean:
|
||||
rm -rf $(GCC_BUILD_DIR3)
|
||||
rm -f $(TARGET_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
|
||||
gcc3_3_target-dirclean:
|
||||
rm -rf $(GCC_BUILD_DIR3)
|
||||
|
||||
endif
|
@ -1,80 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# gdb
|
||||
#
|
||||
#############################################################
|
||||
|
||||
GDB_SITE:=ftp://ftp.gnu.org/gnu/gdb/
|
||||
GDB_DIR:=$(BUILD_DIR)/gdb-5.3
|
||||
GDB_SOURCE:=gdb-5.3.tar.gz
|
||||
GDB_PATCH:=$(SOURCE_DIR)/gdb.patch
|
||||
GDB_UCLIBC_PATCH:=$(SOURCE_DIR)/gdb-5.3-uclibc.patch
|
||||
|
||||
$(DL_DIR)/$(GDB_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(GDB_SITE)/$(GDB_SOURCE)
|
||||
|
||||
$(GDB_DIR)/.unpacked: $(DL_DIR)/$(GDB_SOURCE) $(GDB_PATCH)
|
||||
gunzip -c $(DL_DIR)/$(GDB_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
cat $(GDB_PATCH) | patch -p1 -d $(GDB_DIR)
|
||||
cat $(GDB_UCLIBC_PATCH) | patch -p1 -d $(GDB_DIR)
|
||||
touch $(GDB_DIR)/.unpacked
|
||||
|
||||
$(GDB_DIR)/.configured: $(GDB_DIR)/.unpacked
|
||||
# Copy a config.sub from gcc. This is only necessary until
|
||||
# gdb's config.sub supports <arch>-linux-uclibc tuples.
|
||||
cp $(GCC_DIR)/config.sub $(GDB_DIR)
|
||||
cp $(GCC_DIR)/config.sub $(GDB_DIR)/readline/support/
|
||||
(cd $(GDB_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
ac_cv_type_uintptr_t=yes \
|
||||
gt_cv_func_gettext_libintl=yes \
|
||||
ac_cv_func_dcgettext=yes \
|
||||
gdb_cv_func_sigsetjmp=yes \
|
||||
bash_cv_func_strcoll_broken=no \
|
||||
bash_cv_must_reinstall_sighandlers=no \
|
||||
bash_cv_func_sigsetjmp=present \
|
||||
./configure \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--host=$(REAL_GNU_TARGET_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--includedir=$(STAGING_DIR)/include \
|
||||
$(DISABLE_NLS) \
|
||||
--without-uiout --disable-gdbmi \
|
||||
--disable-tui --disable-gdbtk --without-x \
|
||||
--disable-sim --enable-gdbserver \
|
||||
--without-included-gettext \
|
||||
);
|
||||
ifeq ($(ENABLE_LOCALE),true)
|
||||
-$(SED) "s,^INTL *=.*,INTL = -lintl,g;" $(GDB_DIR)/gdb/Makefile
|
||||
endif
|
||||
touch $(GDB_DIR)/.configured
|
||||
|
||||
$(GDB_DIR)/gdb/gdb: $(GDB_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(GDB_DIR)
|
||||
$(STRIP) $(GDB_DIR)/gdb/gdb
|
||||
|
||||
$(TARGET_DIR)/usr/bin/gdb: $(GDB_DIR)/gdb/gdb
|
||||
install -c $(GDB_DIR)/gdb/gdb $(TARGET_DIR)/usr/bin/gdb
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
gdb: $(TARGET_DIR)/usr/bin/gdb
|
||||
|
||||
gdb-source: $(DL_DIR)/$(GDB_SOURCE)
|
||||
|
||||
gdb-clean:
|
||||
$(MAKE) -C $(GDB_DIR) clean
|
||||
|
||||
gdb-dirclean:
|
||||
rm -rf $(GDB_DIR)
|
||||
|
@ -1,53 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# gdbserver
|
||||
#
|
||||
#############################################################
|
||||
|
||||
#Use GDB_DIR/etc values from gdb.mk
|
||||
#Build gdbserver in a dir outside of the main gdb tree
|
||||
GDB_WDIR:=$(BUILD_DIR)/gdbserver
|
||||
|
||||
|
||||
$(GDB_WDIR)/.configured: $(GDB_DIR)/.unpacked
|
||||
mkdir -p $(GDB_WDIR)
|
||||
(cd $(GDB_WDIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(GDB_DIR)/gdb/gdbserver/configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--includedir=$(STAGING_DIR)/include \
|
||||
$(DISABLE_NLS) \
|
||||
--without-uiout --disable-gdbmi \
|
||||
--disable-tui --disable-gdbtk --without-x \
|
||||
--without-included-gettext \
|
||||
);
|
||||
touch $(GDB_WDIR)/.configured
|
||||
|
||||
$(GDB_WDIR)/gdbserver: $(GDB_WDIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(GDB_WDIR)
|
||||
$(STRIP) $(GDB_WDIR)/gdbserver
|
||||
|
||||
$(TARGET_DIR)/usr/bin/gdbserver: $(GDB_WDIR)/gdbserver
|
||||
install -c $(GDB_WDIR)/gdbserver $(TARGET_DIR)/usr/bin/gdbserver
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
gdbserver: $(TARGET_DIR)/usr/bin/gdbserver
|
||||
|
||||
gdbserver-clean:
|
||||
$(MAKE) -C $(GDB_WDIR) clean
|
||||
|
||||
gdbserver-dirclean:
|
||||
rm -rf $(GDB_WDIR)
|
||||
|
@ -1,60 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# gettext
|
||||
#
|
||||
#############################################################
|
||||
GETTEXT_SOURCE:=gettext-0.11.5.tar.gz
|
||||
GETTEXT_SITE:=ftp://ftp.gnu.org/gnu/gettext
|
||||
GETTEXT_DIR:=$(BUILD_DIR)/gettext-0.11.5
|
||||
GETTEXT_CAT:=zcat
|
||||
GETTEXT_BINARY:=gettext
|
||||
GETTEXT_TARGET_BINARY:=usr/bin/gettext
|
||||
|
||||
$(DL_DIR)/$(GETTEXT_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(GETTEXT_SITE)/$(GETTEXT_SOURCE)
|
||||
|
||||
gettext-source: $(DL_DIR)/$(GETTEXT_SOURCE)
|
||||
|
||||
$(GETTEXT_DIR)/.unpacked: $(DL_DIR)/$(GETTEXT_SOURCE)
|
||||
$(GETTEXT_CAT) $(DL_DIR)/$(GETTEXT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(GETTEXT_DIR)/.unpacked
|
||||
|
||||
$(GETTEXT_DIR)/.configured: $(GETTEXT_DIR)/.unpacked
|
||||
(cd $(GETTEXT_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
);
|
||||
touch $(GETTEXT_DIR)/.configured
|
||||
|
||||
$(GETTEXT_DIR)/$(GETTEXT_BINARY): $(GETTEXT_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(GETTEXT_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(GETTEXT_TARGET_BINARY): $(GETTEXT_DIR)/$(GETTEXT_BINARY)
|
||||
$(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(GETTEXT_DIR) install
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GETTEXT_DIR) install
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc \
|
||||
$(TARGET_DIR)/usr/doc
|
||||
|
||||
gettext: uclibc $(TARGET_DIR)/$(GETTEXT_TARGET_BINARY)
|
||||
|
||||
gettext-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GETTEXT_DIR) uninstall
|
||||
-$(MAKE) -C $(GETTEXT_DIR) clean
|
||||
|
||||
gettext-dirclean:
|
||||
rm -rf $(GETTEXT_DIR)
|
||||
|
@ -1,73 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# grep
|
||||
#
|
||||
#############################################################
|
||||
GNUGREP_SOURCE:=grep_2.5.1.ds1.orig.tar.gz
|
||||
GNUGREP_SITE:=http://ftp.debian.org/debian/pool/main/g/grep/
|
||||
GNUGREP_DIR:=$(BUILD_DIR)/grep-2.5.1
|
||||
GNUGREP_CAT:=zcat
|
||||
GNUGREP_BINARY:=src/grep
|
||||
GNUGREP_TARGET_BINARY:=bin/grep
|
||||
|
||||
$(DL_DIR)/$(GNUGREP_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(GNUGREP_SITE)/$(GNUGREP_SOURCE)
|
||||
|
||||
grep-source: $(DL_DIR)/$(GNUGREP_SOURCE)
|
||||
|
||||
$(GNUGREP_DIR)/.unpacked: $(DL_DIR)/$(GNUGREP_SOURCE)
|
||||
rm -rf $(GNUGREP_DIR).xxx
|
||||
$(GNUGREP_CAT) $(DL_DIR)/$(GNUGREP_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
mv $(GNUGREP_DIR) $(GNUGREP_DIR).xxx
|
||||
$(GNUGREP_CAT) $(GNUGREP_DIR).xxx/grep_2.5.1.tar.gz | tar -C $(BUILD_DIR) -xvf -
|
||||
rm -rf $(GNUGREP_DIR).xxx
|
||||
touch $(GNUGREP_DIR)/.unpacked
|
||||
|
||||
$(GNUGREP_DIR)/.configured: $(GNUGREP_DIR)/.unpacked
|
||||
(cd $(GNUGREP_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
--disable-perl-regexp \
|
||||
--without-included-regex \
|
||||
);
|
||||
touch $(GNUGREP_DIR)/.configured
|
||||
|
||||
$(GNUGREP_DIR)/$(GNUGREP_BINARY): $(GNUGREP_DIR)/.configured
|
||||
$(MAKE) -C $(GNUGREP_DIR)
|
||||
|
||||
# This stuff is needed to work around GNU make deficiencies
|
||||
grep-target_binary: $(GNUGREP_DIR)/$(GNUGREP_BINARY)
|
||||
@if [ -L $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY) ] ; then \
|
||||
rm -f $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY); fi;
|
||||
@if [ ! -f $(GNUGREP_DIR)/$(GNUGREP_BINARY) -o $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY) -ot \
|
||||
$(GNUGREP_DIR)/$(GNUGREP_BINARY) ] ; then \
|
||||
set -x; \
|
||||
rm -f $(TARGET_DIR)/bin/grep $(TARGET_DIR)/bin/egrep $(TARGET_DIR)/bin/fgrep; \
|
||||
cp -a $(GNUGREP_DIR)/src/grep $(GNUGREP_DIR)/src/egrep \
|
||||
$(GNUGREP_DIR)/src/fgrep $(TARGET_DIR)/bin/; fi
|
||||
|
||||
grep: uclibc grep-target_binary
|
||||
|
||||
grep-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(GNUGREP_DIR) uninstall
|
||||
-$(MAKE) -C $(GNUGREP_DIR) clean
|
||||
|
||||
grep-dirclean:
|
||||
rm -rf $(GNUGREP_DIR)
|
||||
|
@ -1,70 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# gzip
|
||||
#
|
||||
#############################################################
|
||||
GZIP_SOURCE:=gzip-1.3.5.tar.gz
|
||||
GZIP_SITE:=ftp://alpha.gnu.org/gnu/gzip
|
||||
GZIP_DIR:=$(BUILD_DIR)/gzip-1.3.5
|
||||
GZIP_CAT:=zcat
|
||||
GZIP_BINARY:=$(GZIP_DIR)/gzip
|
||||
GZIP_TARGET_BINARY:=$(TARGET_DIR)/bin/zmore
|
||||
|
||||
ifeq ($(strip $(BUILD_WITH_LARGEFILE)),false)
|
||||
GZIP_LARGEFILE="--disable-largefile"
|
||||
endif
|
||||
|
||||
$(DL_DIR)/$(GZIP_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(GZIP_SITE)/$(GZIP_SOURCE)
|
||||
|
||||
gzip-source: $(DL_DIR)/$(GZIP_SOURCE)
|
||||
|
||||
$(GZIP_DIR)/.unpacked: $(DL_DIR)/$(GZIP_SOURCE)
|
||||
$(GZIP_CAT) $(DL_DIR)/$(GZIP_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(GZIP_DIR)/.unpacked
|
||||
|
||||
$(GZIP_DIR)/.configured: $(GZIP_DIR)/.unpacked
|
||||
(cd $(GZIP_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/ \
|
||||
--bindir=/bin \
|
||||
--sbindir=/bin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share/misc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
$(GZIP_LARGEFILE) \
|
||||
);
|
||||
touch $(GZIP_DIR)/.configured
|
||||
|
||||
$(GZIP_BINARY): $(GZIP_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(GZIP_DIR)
|
||||
|
||||
$(GZIP_TARGET_BINARY): $(GZIP_BINARY)
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GZIP_DIR) install
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
(cd $(TARGET_DIR)/bin; \
|
||||
ln -sf gzip gunzip; \
|
||||
ln -sf gzip zcat; \
|
||||
ln -sf zdiff zcmp; \
|
||||
ln -sf zgrep zegrep; \
|
||||
ln -sf zgrep zfgrep;)
|
||||
|
||||
gzip: uclibc $(GZIP_TARGET_BINARY)
|
||||
|
||||
gzip-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GZIP_DIR) uninstall
|
||||
-$(MAKE) -C $(GZIP_DIR) clean
|
||||
|
||||
gzip-dirclean:
|
||||
rm -rf $(GZIP_DIR)
|
||||
|
@ -1,53 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# hostap
|
||||
#
|
||||
#############################################################
|
||||
HOSTAP_SOURCE_URL=http://hostap.epitest.fi/cgi-bin/viewcvs.cgi/hostap/hostap.tar.gz?tarball=1
|
||||
HOSTAP_SOURCE=hostap.tar.gz
|
||||
HOSTAP_DIR=$(BUILD_DIR)/hostap-snapshot
|
||||
|
||||
$(DL_DIR)/$(HOSTAP_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(HOSTAP_SOURCE_URL) -O $(DL_DIR)/$(HOSTAP_SOURCE)
|
||||
|
||||
hostap-source: $(DL_DIR)/$(HOSTAP_SOURCE)
|
||||
|
||||
$(HOSTAP_DIR)/.unpacked: $(DL_DIR)/$(HOSTAP_SOURCE)
|
||||
zcat $(DL_DIR)/$(HOSTAP_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
mv -f $(BUILD_DIR)/hostap $(HOSTAP_DIR)
|
||||
touch $(HOSTAP_DIR)/.unpacked
|
||||
|
||||
$(HOSTAP_DIR)/.configured: $(HOSTAP_DIR)/.unpacked
|
||||
#$(SED) "s,/.*#define PRISM2_DOWNLOAD_SUPPORT.*/,#define PRISM2_DOWNLOAD_SUPPORT,g" \
|
||||
# $(HOSTAP_DIR)/driver/modules/hostap_config.h
|
||||
touch $(HOSTAP_DIR)/.configured
|
||||
|
||||
$(HOSTAP_DIR)/utils/hostap_crypt_conf: $(HOSTAP_DIR)/.configured
|
||||
$(MAKE) -C $(HOSTAP_DIR)/utils CC=$(TARGET_CC) CFLAGS="-Os -Wall $(TARGET_CFLAGS) -I../driver/modules"
|
||||
$(MAKE) -C $(HOSTAP_DIR)/hostapd CC=$(TARGET_CC) CFLAGS="-Os -Wall $(TARGET_CFLAGS) -I../driver/modules -I../utils"
|
||||
touch -c $(HOSTAP_DIR)/driver/modules/hostap.o
|
||||
|
||||
$(TARGET_DIR)//usr/bin/hostap_crypt_conf: $(HOSTAP_DIR)/utils/hostap_crypt_conf
|
||||
# Make the dir
|
||||
-rm -rf $(HOSTAP_TARGET_MODULE_DIR)
|
||||
-mkdir -p $(HOSTAP_TARGET_MODULE_DIR)
|
||||
# Copy the pcmcia-cs conf file
|
||||
-mkdir -p $(TARGET_DIR)/etc/pcmcia
|
||||
cp -af $(HOSTAP_DIR)/driver/etc/hostap_cs.conf $(TARGET_DIR)/etc/pcmcia/
|
||||
# Copy The Utils
|
||||
cp -af $(HOSTAP_DIR)/utils/hostap_crypt_conf $(TARGET_DIR)/usr/bin/
|
||||
cp -af $(HOSTAP_DIR)/utils/hostap_diag $(TARGET_DIR)/usr/bin/
|
||||
cp -af $(HOSTAP_DIR)/utils/prism2_param $(TARGET_DIR)/usr/bin/
|
||||
cp -af $(HOSTAP_DIR)/utils/prism2_srec $(TARGET_DIR)/usr/bin/
|
||||
# Copy hostapd
|
||||
cp -af $(HOSTAP_DIR)/hostapd/hostapd $(TARGET_DIR)/usr/sbin/
|
||||
|
||||
hostap: pcmcia $(TARGET_DIR)//usr/bin/hostap_crypt_conf
|
||||
|
||||
hostap-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(HOSTAP_DIR) uninstall
|
||||
-$(MAKE) -C $(HOSTAP_DIR) clean
|
||||
|
||||
hostap-dirclean:
|
||||
rm -rf $(HOSTAP_DIR)
|
||||
|
@ -1,39 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# hotplug support
|
||||
#
|
||||
#############################################################
|
||||
HOTPLUG_SOURCE=diethotplug-0.4.tar.gz
|
||||
HOTPLUG_SITE=http://aleron.dl.sourceforge.net/sourceforge/linux-hotplug
|
||||
HOTPLUG_DIR=$(BUILD_DIR)/diethotplug-0.4
|
||||
HOTPLUG_PATCH=$(SOURCE_DIR)/hotplug.patch
|
||||
|
||||
$(DL_DIR)/$(HOTPLUG_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(HOTPLUG_SITE)/$(HOTPLUG_SOURCE)
|
||||
|
||||
$(HOTPLUG_DIR): $(DL_DIR)/$(HOTPLUG_SOURCE) $(HOTPLUG_PATCH)
|
||||
zcat $(DL_DIR)/$(HOTPLUG_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
cat $(HOTPLUG_PATCH) | patch -p1 -d $(HOTPLUG_DIR)
|
||||
|
||||
$(HOTPLUG_DIR)/hotplug: $(HOTPLUG_DIR)
|
||||
$(MAKE) CROSS=$(TARGET_CROSS) DEBUG=false KLIBC=false \
|
||||
KERNEL_INCLUDE_DIR=$(STAGING_DIR)/include \
|
||||
TARGET_DIR=$(TARGET_DIR) -C $(HOTPLUG_DIR);
|
||||
$(STRIP) $(HOTPLUG_DIR)/hotplug;
|
||||
touch -c $(HOTPLUG_DIR)/hotplug
|
||||
|
||||
$(TARGET_DIR)/sbin/hotplug: $(HOTPLUG_DIR)/hotplug
|
||||
cp $(HOTPLUG_DIR)/hotplug $(TARGET_DIR)/sbin/hotplug;
|
||||
touch -c $(TARGET_DIR)/sbin/hotplug
|
||||
|
||||
hotplug: uclibc $(TARGET_DIR)/sbin/hotplug
|
||||
|
||||
hotplug-source: $(DL_DIR)/$(HOTPLUG_SOURCE)
|
||||
|
||||
hotplug-clean:
|
||||
rm -f $(TARGET_DIR)/sbin/hotplug
|
||||
-$(MAKE) -C $(HOTPLUG_DIR) clean
|
||||
|
||||
hotplug-dirclean:
|
||||
rm -rf $(HOTPLUG_DIR)
|
||||
|
@ -1,43 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# ipkg-utils for use on the host system
|
||||
#
|
||||
#############################################################
|
||||
|
||||
IPKG_UTILS_VERSION:=1.7
|
||||
IPKG_UTILS_SITE:=http://handhelds.org/packages/ipkg-utils/
|
||||
IPKG_UTILS_SOURCE:=ipkg-utils-$(IPKG_UTILS_VERSION).tar.gz
|
||||
IPKG_UTILS_DIR:=$(TOOL_BUILD_DIR)/ipkg-utils-$(IPKG_UTILS_VERSION)
|
||||
|
||||
IPKG_UTILS_PATCHES += ipkg-utils-1.7-ipkg_buildpackage.patch
|
||||
IPKG_UTILS_PATCHES += ipkg-utils-1.7-ipkg_build_clean.patch
|
||||
|
||||
$(DL_DIR)/$(IPKG_UTILS_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(IPKG_UTILS_SITE)/$(IPKG_UTILS_SOURCE)
|
||||
|
||||
$(IPKG_UTILS_DIR)/.unpacked: $(DL_DIR)/$(IPKG_UTILS_SOURCE)
|
||||
mkdir -p $(TOOL_BUILD_DIR)
|
||||
mkdir -p $(DL_DIR)
|
||||
zcat $(DL_DIR)/$(IPKG_UTILS_SOURCE) | tar -C $(TOOL_BUILD_DIR) -xvf -
|
||||
cd $(SOURCE_DIR); cat $(IPKG_UTILS_PATCHES) | patch -p1 -d $(IPKG_UTILS_DIR)
|
||||
touch $(IPKG_UTILS_DIR)/.unpacked
|
||||
|
||||
$(STAGING_DIR)/bin/ipkg-build: $(IPKG_UTILS_DIR)/.unpacked
|
||||
mkdir -p $(STAGING_DIR)/bin
|
||||
install -m0755 $(IPKG_UTILS_DIR)/ipkg-build* $(STAGING_DIR)/bin
|
||||
install -m0755 $(IPKG_UTILS_DIR)/ipkg-make-index $(STAGING_DIR)/bin
|
||||
install -m0755 $(IPKG_UTILS_DIR)/ipkg.py $(STAGING_DIR)/bin
|
||||
|
||||
ipkg-utils: $(STAGING_DIR)/bin/ipkg-build
|
||||
|
||||
ipkg-utils-clean:
|
||||
rm -f $(STAGING_DIR)/bin/ipkg*
|
||||
|
||||
ipkg-utils-dirclean:
|
||||
rm -rf $(IPKG_UTILS_DIR)
|
||||
|
||||
|
||||
IPKG_BUILDPACKAGE := PATH=$(TARGET_PATH) ipkg-buildpackage -c -o root -g root
|
||||
IPKG_BUILD := PATH=$(TARGET_PATH) ipkg-build -c -o root -g root
|
||||
IPKG_MAKE_INDEX := PATH=$(TARGET_PATH) ipkg-make-index
|
||||
|
@ -1,86 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# iproute2
|
||||
#
|
||||
#############################################################
|
||||
|
||||
IPROUTE2_DIR=$(BUILD_DIR)/iproute2
|
||||
IP_IPK_DIR=$(BUILD_DIR)/ip-2.0-ipk
|
||||
TC_IPK_DIR=$(BUILD_DIR)/tc-2.0-ipk
|
||||
|
||||
#IPROUTE2_SOURCE_URL=ftp://ftp.inr.ac.ru/ip-routing/
|
||||
#IPROUTE2_SOURCE=iproute2-2.4.7-now-ss020116-try.tar.gz
|
||||
|
||||
#Use the debian source for now, as the .ru site has availability problems
|
||||
IPROUTE2_SOURCE_URL=http://ftp.debian.org/debian/pool/main/i/iproute/
|
||||
IPROUTE2_SOURCE=iproute_20010824.orig.tar.gz
|
||||
IPROUTE2_PATCH:=iproute_20010824-8.diff.gz
|
||||
IPROUTE2_PATCH_2:=iproute2-*.patch
|
||||
|
||||
|
||||
$(DL_DIR)/$(IPROUTE2_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(IPROUTE2_SOURCE_URL)$(IPROUTE2_SOURCE)
|
||||
|
||||
$(DL_DIR)/$(IPROUTE2_PATCH):
|
||||
$(WGET) -P $(DL_DIR) $(IPROUTE2_SOURCE_URL)/$(IPROUTE2_PATCH)
|
||||
|
||||
|
||||
iproute2-source: $(DL_DIR)/$(IPROUTE2_SOURCE) #$(DL_DIR)/$(IPROUTE2_PATCH)
|
||||
|
||||
$(IPROUTE2_DIR)/.unpacked: $(DL_DIR)/$(IPROUTE2_SOURCE) #$(DL_DIR)/$(IPROUTE2_PATCH)
|
||||
rm -rf $(IPROUTE2_DIR).orig $(IPROUTE2_DIR)
|
||||
zcat $(DL_DIR)/$(IPROUTE2_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
#zcat $(DL_DIR)/$(IPROUTE2_PATCH) | patch -p1 -d $(IPROUTE2_DIR)
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(IPROUTE2_DIR) $(SOURCE_DIR) $(IPROUTE2_PATCH_2)
|
||||
# fun sed hacks.
|
||||
$(SED) "s:-O2:${TARGET_CFLAGS}:g" $(IPROUTE2_DIR)/Makefile
|
||||
ifeq ($(ARCH),i386)
|
||||
@# needed on atleast i386.. however breaks on mipsel
|
||||
$(SED) 's:-I\.\./include-glibc::g' $(IPROUTE2_DIR)/Makefile
|
||||
endif
|
||||
touch $(IPROUTE2_DIR)/.unpacked
|
||||
|
||||
$(IPROUTE2_DIR)/.configured: $(IPROUTE2_DIR)/.unpacked
|
||||
$(SED) "s,-I/usr/include/db3,," $(IPROUTE2_DIR)/Makefile
|
||||
$(SED) "s,^KERNEL_INCLUDE.*,KERNEL_INCLUDE=$(LINUX_DIR)/include," \
|
||||
$(IPROUTE2_DIR)/Makefile
|
||||
$(SED) "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=$(STAGING_DIR)/include," \
|
||||
$(IPROUTE2_DIR)/Makefile
|
||||
# For now disable compiling of the misc directory because it seems to fail
|
||||
rm -rf $(IPROUTE2_DIR)/misc
|
||||
$(SED) "s, misc,," $(IPROUTE2_DIR)/Makefile
|
||||
touch $(IPROUTE2_DIR)/.configured
|
||||
|
||||
$(IPROUTE2_DIR)/tc/tc: $(IPROUTE2_DIR)/.configured
|
||||
$(MAKE) -C $(IPROUTE2_DIR) $(TARGET_CONFIGURE_OPTS) KERNEL_INCLUDE=$(LINUX_DIR)/include
|
||||
|
||||
$(TARGET_DIR)/usr/sbin/tc: $(IPROUTE2_DIR)/tc/tc
|
||||
@# Make sure our $(TARGET_DIR)/usr/sbin/ exists.
|
||||
-mkdir -p $(TARGET_DIR)/usr/sbin/
|
||||
@# Copy The tc binary
|
||||
cp -af $(IPROUTE2_DIR)/tc/tc $(TARGET_DIR)/usr/sbin/ && \
|
||||
$(STRIP) $(TARGET_DIR)/usr/sbin/tc
|
||||
|
||||
iproute2: $(TARGET_DIR)/usr/sbin/tc
|
||||
|
||||
iproute2-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(IPROUTE2_DIR) uninstall
|
||||
-$(MAKE) -C $(IPROUTE2_DIR) clean
|
||||
|
||||
iproute2-dirclean:
|
||||
rm -rf $(IPROUTE2_DIR) $(IP_IPK_DIR) $(TC_IPK_DIR)
|
||||
|
||||
|
||||
iproute2-ipk: $(IPROUTE2_DIR)/tc/tc
|
||||
mkdir -p $(IP_IPK_DIR)
|
||||
mkdir -p $(TC_IPK_DIR)
|
||||
cp -a $(OPENWRT_IPK_DIR)/iproute/ip/CONTROL $(IP_IPK_DIR)/CONTROL
|
||||
cp -a $(OPENWRT_IPK_DIR)/iproute/tc/CONTROL $(TC_IPK_DIR)/CONTROL
|
||||
mkdir -p $(IP_IPK_DIR)/usr/sbin
|
||||
mkdir -p $(TC_IPK_DIR)/usr/sbin
|
||||
install -m 755 $(IPROUTE2_DIR)/ip/ip $(IP_IPK_DIR)/usr/sbin/
|
||||
install -m 755 $(IPROUTE2_DIR)/tc/tc $(TC_IPK_DIR)/usr/sbin/
|
||||
$(STRIP) $(IP_IPK_DIR)/usr/sbin/ip
|
||||
$(STRIP) $(TC_IPK_DIR)/usr/sbin/tc
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(IP_IPK_DIR)
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(TC_IPK_DIR)
|
@ -1,67 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# iptables
|
||||
#
|
||||
#############################################################
|
||||
IPTABLES_SOURCE_URL=http://www.netfilter.org/files
|
||||
IPTABLES_SOURCE=iptables-1.2.11.tar.bz2
|
||||
IPTABLES_BUILD_DIR=$(BUILD_DIR)/iptables-1.2.11
|
||||
IP6TABLES_IPK=$(BUILD_DIR)/ip6tables_1.2.11-1_mipsel.ipk
|
||||
IP6TABLES_IPK_DIR:=$(BUILD_DIR)/ip6tables-1.2.11-ipk
|
||||
|
||||
$(DL_DIR)/$(IPTABLES_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(IPTABLES_SOURCE_URL)/$(IPTABLES_SOURCE)
|
||||
|
||||
$(IPTABLES_BUILD_DIR)/.unpacked: $(DL_DIR)/$(IPTABLES_SOURCE)
|
||||
bzcat $(DL_DIR)/$(IPTABLES_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(IPTABLES_BUILD_DIR)/.unpacked
|
||||
|
||||
$(IPTABLES_BUILD_DIR)/.configured: $(IPTABLES_BUILD_DIR)/.unpacked
|
||||
# Allow patches. Needed for openwrt for instance.
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(IPTABLES_BUILD_DIR) $(SOURCE_DIR) iptables-*.patch
|
||||
#
|
||||
$(SED) "s;\[ -f /usr/include/netinet/ip6.h \];grep -q '__UCLIBC_HAS_IPV6__ 1' \
|
||||
$(BUILD_DIR)/uClibc-0.9.27/include/bits/uClibc_config.h;" $(IPTABLES_BUILD_DIR)/Makefile
|
||||
touch $(IPTABLES_BUILD_DIR)/.configured
|
||||
|
||||
$(IPTABLES_BUILD_DIR)/iptables: $(IPTABLES_BUILD_DIR)/.configured
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) -C $(IPTABLES_BUILD_DIR) \
|
||||
KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
|
||||
CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)"
|
||||
|
||||
$(TARGET_DIR)/sbin/iptables: $(IPTABLES_BUILD_DIR)/iptables
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) -C $(IPTABLES_BUILD_DIR) \
|
||||
KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
|
||||
CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)" \
|
||||
DESTDIR=$(TARGET_DIR) install
|
||||
$(STRIP) $(TARGET_DIR)/usr/sbin/iptables*
|
||||
$(STRIP) $(TARGET_DIR)/usr/sbin/ip6tables*
|
||||
$(STRIP) $(TARGET_DIR)/usr/lib/iptables/*.so
|
||||
rm -rf $(TARGET_DIR)/usr/man
|
||||
|
||||
iptables: $(TARGET_DIR)/sbin/iptables
|
||||
|
||||
$(IP6TABLES_IPK):
|
||||
mkdir -p $(IP6TABLES_IPK_DIR)/CONTROL
|
||||
mkdir -p $(IP6TABLES_IPK_DIR)/usr/lib/iptables
|
||||
mkdir -p $(IP6TABLES_IPK_DIR)/usr/sbin
|
||||
install -m 644 $(OPENWRT_IPK_DIR)/ip6tables/ip6tables.control $(IP6TABLES_IPK_DIR)/CONTROL/control
|
||||
install -m 755 $(IPTABLES_BUILD_DIR)/ip6tables $(IP6TABLES_IPK_DIR)/usr/sbin
|
||||
install -m 755 $(IPTABLES_BUILD_DIR)/extensions/libip6t_*.so $(IP6TABLES_IPK_DIR)/usr/lib/iptables/
|
||||
$(STRIP) $(IP6TABLES_IPK_DIR)/usr/sbin/ip6tables*
|
||||
$(STRIP) $(IP6TABLES_IPK_DIR)/usr/lib/iptables/*.so
|
||||
cd $(BUILD_DIR); $(STAGING_DIR)/bin/ipkg-build -c -o root -g root $(IP6TABLES_IPK_DIR)
|
||||
|
||||
ip6tables-ipk: iptables $(IP6TABLES_IPK)
|
||||
|
||||
iptables-source: $(DL_DIR)/$(IPTABLES_SOURCE)
|
||||
|
||||
iptables-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(IPTABLES_BUILD_DIR) uninstall
|
||||
-$(MAKE) -C $(IPTABLES_BUILD_DIR) clean
|
||||
|
||||
iptables-dirclean:
|
||||
rm -rf $(IPTABLES_BUILD_DIR)
|
||||
|
@ -1,33 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# jffsbbc
|
||||
#
|
||||
#############################################################
|
||||
|
||||
|
||||
JFFSBBC_SOURCE:=bbc-0.54.3.tgz
|
||||
JFFSBBC_DIR:=$(BUILD_DIR)/bbc-0.54.3
|
||||
JFFSBBC_SITE:=http://www.inf.u-szeged.hu/jffs2
|
||||
JFFSBBC_CAT:=zcat
|
||||
|
||||
LINUX_DIR:=$(BUILD_DIR)/WRT54GS/release/src/linux/linux
|
||||
|
||||
$(DL_DIR)/$(JFFSBBC_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(JFFSBBC_SITE)/$(JFFSBBC_SOURCE)
|
||||
|
||||
jffsbbc-source: $(DL_DIR)/$(JFFSBBC_SOURCE)
|
||||
|
||||
$(JFFSBBC_DIR)/.unpacked: $(DL_DIR)/$(JFFSBBC_SOURCE)
|
||||
$(JFFSBBC_CAT) $(DL_DIR)/$(JFFSBBC_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(JFFSBBC_DIR)/.unpacked
|
||||
|
||||
$(LINUX_DIR)/.bbc-patched: $(LINUX_DIR)/.patched $(JFFSBBC_DIR)/.unpacked
|
||||
-(cd $(JFFSBBC_DIR)/src; ./install.jffs2 linux-2.4.25.hpatch $(LINUX_DIR))
|
||||
touch $(LINUX_DIR)/.bbc-patched
|
||||
|
||||
jffsbbc: $(LINUX_DIR)/.bbc-patched
|
||||
|
||||
jffsbbc-clean:
|
||||
|
||||
jffsbbc-dirclean:
|
||||
rm -rf $(JFFSBBC_DIR)
|
@ -1,49 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# mtd provides us with mkfs.jffs2, to target JFFS2 filesystems
|
||||
#
|
||||
#############################################################
|
||||
|
||||
MTD_DIR:=$(BUILD_DIR)/mtd-20011217
|
||||
MTD_SOURCE=mtd_20011217.orig.tar.gz
|
||||
MTD_SITE=http://ftp.debian.org/debian/pool/main/m/mtd
|
||||
MKFS_JFFS2=${shell which mkfs.jffs2 || echo $(MTD_DIR)/util/mkfs.jffs2}
|
||||
|
||||
$(DL_DIR)/$(MTD_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(MTD_SITE)/$(MTD_SOURCE)
|
||||
|
||||
$(MTD_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE)
|
||||
zcat $(DL_DIR)/$(MTD_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(MTD_DIR)/.unpacked
|
||||
|
||||
$(MTD_DIR)/util/mkfs.jffs2: $(MTD_DIR)/.unpacked
|
||||
CFLAGS=-I$(LINUX_DIR)/include $(MAKE) LINUXDIR=$(LINUX_DIR) -C $(MTD_DIR)/util
|
||||
|
||||
mtd: $(MKFS_JFFS2)
|
||||
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Build the jffs2 root filesystem image
|
||||
#
|
||||
#############################################################
|
||||
|
||||
jffs2root: mtd
|
||||
#-@find $(TARGET_DIR)/lib -type f -name \*.so\* | xargs $(STRIP) 2>/dev/null || true;
|
||||
-@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
|
||||
@rm -rf $(TARGET_DIR)/usr/man
|
||||
@rm -rf $(TARGET_DIR)/usr/info
|
||||
$(MKFS_JFFS2) --pad --little-endian --squash -e 0x20000 \
|
||||
-D $(SOURCE_DIR)/device_table.txt -d $(TARGET_DIR) \
|
||||
-o $(IMAGE)
|
||||
|
||||
jffs2root-source: $(DL_DIR)/$(MTD_SOURCE)
|
||||
|
||||
jffs2root-clean:
|
||||
-$(MAKE) -C $(MTD_DIR) clean
|
||||
|
||||
jffs2root-dirclean:
|
||||
rm -rf $(MTD_DIR)
|
||||
|
||||
|
||||
|
@ -1,73 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# jpeg (libraries needed by some apps)
|
||||
#
|
||||
#############################################################
|
||||
# Copyright (C) 2001-2003 by Erik Andersen <andersen@codepoet.org>
|
||||
# Copyright (C) 2002 by Tim Riker <Tim@Rikers.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Library General Public License as
|
||||
# published by the Free Software Foundation; either version 2 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Library General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Library General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
# USA
|
||||
JPEG_DIR=$(BUILD_DIR)/jpeg-6b
|
||||
JPEG_SITE:=ftp://ftp.uu.net/graphics/jpeg/
|
||||
JPEG_SOURCE=jpegsrc.v6b.tar.gz
|
||||
JPEG_CAT:=zcat
|
||||
|
||||
$(DL_DIR)/$(JPEG_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(JPEG_SITE)/$(JPEG_SOURCE)
|
||||
|
||||
jpeg-source: $(DL_DIR)/$(JPEG_SOURCE)
|
||||
|
||||
$(JPEG_DIR)/.unpacked: $(DL_DIR)/$(JPEG_SOURCE)
|
||||
$(JPEG_CAT) $(DL_DIR)/$(JPEG_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
# The config.guess distributed with the package is not able
|
||||
# to handle cross compilation. Use the one from binutils.
|
||||
cp $(BINUTILS_DIR)/config.guess $(JPEG_DIR)/
|
||||
touch $(JPEG_DIR)/.unpacked
|
||||
|
||||
$(JPEG_DIR)/.configured: $(JPEG_DIR)/.unpacked
|
||||
(cd $(JPEG_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--enable-shared \
|
||||
);
|
||||
touch $(JPEG_DIR)/.configured
|
||||
|
||||
$(STAGING_DIR)/lib/libjpeg.so.62.0.0: $(JPEG_DIR)/.configured
|
||||
$(MAKE) -C $(JPEG_DIR) all
|
||||
# Note: This does not install the utilities.
|
||||
$(MAKE) -C $(JPEG_DIR) prefix=$(STAGING_DIR) exec_prefix=$(STAGING_DIR) install-headers install-lib
|
||||
|
||||
$(TARGET_DIR)/lib/libjpeg.so.62.0.0: $(STAGING_DIR)/lib/libjpeg.so.62.0.0
|
||||
cp -dpf $(STAGING_DIR)/lib/libjpeg.so* $(TARGET_DIR)/usr/lib/
|
||||
-$(STRIP) $(TARGET_DIR)/usr/lib/libjpeg.so.62.0.0
|
||||
|
||||
jpeg: uclibc $(TARGET_DIR)/lib/libjpeg.so.62.0.0
|
||||
|
||||
jpeg-clean:
|
||||
-$(MAKE) -C $(JPEG_DIR) clean
|
@ -1,85 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# Setup the kernel headers. I include a generic package of
|
||||
# kernel headers here, so you shouldn't need to include your
|
||||
# own. Be aware these kernel headers _will_ get blown away
|
||||
# by a 'make clean' so don't put anything sacred in here...
|
||||
#
|
||||
#############################################################
|
||||
ifneq ($(filter $(TARGETS),kernel-headers),)
|
||||
|
||||
VERSION=2
|
||||
PATCHLEVEL=4
|
||||
SUBLEVEL=25
|
||||
LINUX_SITE:=http://www.uclibc.org/downloads/toolchain
|
||||
LINUX_SOURCE:=kernel-headers-2.4.25.tar.bz2
|
||||
LINUX_UNPACK_DIR:=$(TOOL_BUILD_DIR)/linux
|
||||
|
||||
|
||||
# Uncomment this for 2.6.x kernel header files
|
||||
#VERSION=2
|
||||
#PATCHLEVEL=6
|
||||
#SUBLEVEL=5
|
||||
#LINUX_SITE:=http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
|
||||
#LINUX_SOURCE:=linux-libc-headers-2.6.5.0.tar.bz2
|
||||
#LINUX_UNPACK_DIR:=$(TOOL_BUILD_DIR)/linux-libc-headers-2.6.5.0
|
||||
|
||||
|
||||
|
||||
LINUX_DIR:=$(TOOL_BUILD_DIR)/linux
|
||||
|
||||
$(DL_DIR)/$(LINUX_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LINUX_SITE)/$(LINUX_SOURCE)
|
||||
|
||||
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
|
||||
mkdir -p $(TOOL_BUILD_DIR)
|
||||
bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(TOOL_BUILD_DIR) -xvf -
|
||||
ifneq ($(LINUX_UNPACK_DIR),$(LINUX_DIR))
|
||||
mv $(LINUX_UNPACK_DIR) $(LINUX_DIR)
|
||||
endif
|
||||
touch $(LINUX_DIR)/.unpacked
|
||||
|
||||
$(LINUX_DIR)/.configured: $(LINUX_DIR)/.unpacked
|
||||
rm -f $(LINUX_DIR)/include/asm
|
||||
@if [ ! -f $(LINUX_DIR)/Makefile ] ; then \
|
||||
echo -e "VERSION = $(VERSION)\nPATCHLEVEL = $(PATCHLEVEL)\n" > \
|
||||
$(LINUX_DIR)/Makefile; \
|
||||
echo -e "SUBLEVEL = $(SUBLEVEL)\nEXTRAVERSION =\n" > \
|
||||
$(LINUX_DIR)/Makefile; \
|
||||
echo -e "KERNELRELEASE=\$$(VERSION).\$$(PATCHLEVEL).\$$(SUBLEVEL)\$$(EXTRAVERSION)" >> \
|
||||
$(LINUX_DIR)/Makefile; \
|
||||
fi;
|
||||
@if [ "$(ARCH)" = "powerpc" ];then \
|
||||
(cd $(LINUX_DIR)/include; ln -fs asm-ppc$(NOMMU) asm;) \
|
||||
elif [ "$(ARCH)" = "mips" ];then \
|
||||
(cd $(LINUX_DIR)/include; ln -fs asm-mips$(NOMMU) asm;) \
|
||||
elif [ "$(ARCH)" = "mipsel" ];then \
|
||||
(cd $(LINUX_DIR)/include; ln -fs asm-mips$(NOMMU) asm;) \
|
||||
elif [ "$(ARCH)" = "arm" ];then \
|
||||
(cd $(LINUX_DIR)/include; ln -fs asm-arm$(NOMMU) asm; \
|
||||
cd asm; \
|
||||
if [ ! -L proc ] ; then \
|
||||
ln -fs proc-armv proc; \
|
||||
ln -fs arch-ebsa285 arch; fi); \
|
||||
elif [ "$(ARCH)" = "cris" ];then \
|
||||
(cd $(LINUX_DIR)/include; ln -fs asm-cris asm;) \
|
||||
else \
|
||||
(cd $(LINUX_DIR)/include; ln -fs asm-$(ARCH)$(NOMMU) asm;) \
|
||||
fi
|
||||
touch $(LINUX_DIR)/include/linux/autoconf.h;
|
||||
touch $(LINUX_DIR)/.configured
|
||||
|
||||
$(LINUX_KERNEL): $(LINUX_DIR)/.configured
|
||||
|
||||
kernel-headers: $(LINUX_DIR)/.configured
|
||||
|
||||
kernel-headers-source: $(DL_DIR)/$(LINUX_SOURCE)
|
||||
|
||||
kernel-headers-clean: clean
|
||||
rm -f $(LINUX_KERNEL)
|
||||
rm -rf $(LINUX_DIR)
|
||||
|
||||
kernel-headers-dirclean:
|
||||
rm -rf $(LINUX_DIR)
|
||||
|
||||
endif
|
@ -1,4 +0,0 @@
|
||||
kmod-ipt6-ipk: ipkg-utils $(OPENWRT_IPK_DIR)/kmod-ipt6/CONTROL/*
|
||||
chmod a+x $(OPENWRT_IPK_DIR)/kmod-ipt6/CONTROL/rules
|
||||
cd $(OPENWRT_IPK_DIR)/kmod-ipt6 ; $(IPKG_BUILDPACKAGE)
|
||||
mv $(OPENWRT_IPK_DIR)/kmod-ipt6_*.ipk $(BUILD_DIR)
|
@ -1,4 +0,0 @@
|
||||
kmod-ipv6-ipk: ipkg-utils $(OPENWRT_IPK_DIR)/kmod-ipv6/CONTROL/*
|
||||
chmod a+x $(OPENWRT_IPK_DIR)/kmod-ipv6/CONTROL/rules
|
||||
cd $(OPENWRT_IPK_DIR)/kmod-ipv6 ; $(IPKG_BUILDPACKAGE)
|
||||
mv $(OPENWRT_IPK_DIR)/kmod-ipv6_*.ipk $(BUILD_DIR)
|
@ -1,4 +0,0 @@
|
||||
kmod-nfs-ipk: ipkg-utils $(OPENWRT_IPK_DIR)/kmod-nfs/CONTROL/*
|
||||
chmod a+x $(OPENWRT_IPK_DIR)/kmod-nfs/CONTROL/rules
|
||||
cd $(OPENWRT_IPK_DIR)/kmod-nfs ; $(IPKG_BUILDPACKAGE)
|
||||
mv $(OPENWRT_IPK_DIR)/kmod-nfs_*.ipk $(BUILD_DIR)
|
@ -1,4 +0,0 @@
|
||||
kmod-ppp-async-ipk: ipkg-utils $(OPENWRT_IPK_DIR)/kmod-ppp-async/CONTROL/*
|
||||
chmod a+x $(OPENWRT_IPK_DIR)/kmod-ppp-async/CONTROL/rules
|
||||
cd $(OPENWRT_IPK_DIR)/kmod-ppp-async ; $(IPKG_BUILDPACKAGE)
|
||||
mv $(OPENWRT_IPK_DIR)/kmod-ppp-async_*.ipk $(BUILD_DIR)
|
@ -1,4 +0,0 @@
|
||||
kmod-ppp-mppe-mppc-ipk: ipkg-utils $(OPENWRT_IPK_DIR)/kmod-ppp-mppe-mppc/CONTROL/*
|
||||
chmod a+x $(OPENWRT_IPK_DIR)/kmod-ppp-mppe-mppc/CONTROL/rules
|
||||
cd $(OPENWRT_IPK_DIR)/kmod-ppp-mppe-mppc ; $(IPKG_BUILDPACKAGE)
|
||||
mv $(OPENWRT_IPK_DIR)/kmod-ppp-mppe-mppc_*.ipk $(BUILD_DIR)
|
@ -1,4 +0,0 @@
|
||||
kmod-sched-ipk: ipkg-utils $(OPENWRT_IPK_DIR)/kmod-sched/CONTROL/*
|
||||
chmod a+x $(OPENWRT_IPK_DIR)/kmod-sched/CONTROL/rules
|
||||
cd $(OPENWRT_IPK_DIR)/kmod-sched ; $(IPKG_BUILDPACKAGE)
|
||||
mv $(OPENWRT_IPK_DIR)/kmod-sched_*.ipk $(BUILD_DIR)
|
@ -1,4 +0,0 @@
|
||||
kmod-tun-ipk: ipkg-utils $(OPENWRT_IPK_DIR)/kmod-tun/CONTROL/*
|
||||
chmod a+x $(OPENWRT_IPK_DIR)/kmod-tun/CONTROL/rules
|
||||
cd $(OPENWRT_IPK_DIR)/kmod-tun ; $(IPKG_BUILDPACKAGE)
|
||||
mv $(OPENWRT_IPK_DIR)/kmod-tun_*.ipk $(BUILD_DIR)
|
@ -1,48 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# less
|
||||
#
|
||||
#############################################################
|
||||
LESS_SOURCE=less-381.tar.gz
|
||||
LESS_SITE=http://www.greenwoodsoftware.com/less
|
||||
LESS_DIR=$(BUILD_DIR)/less-381
|
||||
LESS_BINARY=less
|
||||
LESS_TARGET_BINARY=usr/bin/less
|
||||
|
||||
$(DL_DIR)/$(LESS_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LESS_SITE)/$(LESS_SOURCE)
|
||||
|
||||
$(LESS_DIR)/.source: $(DL_DIR)/$(LESS_SOURCE)
|
||||
zcat $(DL_DIR)/$(LESS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(LESS_DIR)/.source
|
||||
|
||||
$(LESS_DIR)/.configured: $(LESS_DIR)/.source
|
||||
(cd $(LESS_DIR); \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
);
|
||||
touch $(LESS_DIR)/.configured;
|
||||
|
||||
$(LESS_DIR)/$(LESS_BINARY): $(LESS_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(LESS_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(LESS_TARGET_BINARY): $(LESS_DIR)/$(LESS_BINARY)
|
||||
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(LESS_DIR) install
|
||||
rm -Rf $(TARGET_DIR)/usr/man
|
||||
|
||||
less: uclibc $(TARGET_DIR)/$(LESS_TARGET_BINARY)
|
||||
|
||||
less-source: $(DL_DIR)/$(LESS_SOURCE)
|
||||
|
||||
less-clean:
|
||||
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(LESS_DIR) uninstall
|
||||
-$(MAKE) -C $(LESS_DIR) clean
|
||||
|
||||
less-dirclean:
|
||||
rm -rf $(LESS_DIR)
|
||||
|
@ -1,55 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# libfloat
|
||||
#
|
||||
#############################################################
|
||||
LIBFLOAT_SOURCE:=libfloat_990616.orig.tar.gz
|
||||
LIBFLOAT_PATCH:=libfloat_990616-3.diff.gz
|
||||
LIBFLOAT_SITE:=http://ftp.debian.org/debian/pool/main/libf/libfloat
|
||||
LIBFLOAT_CAT:=zcat
|
||||
LIBFLOAT_DIR:=$(BUILD_DIR)/libfloat
|
||||
|
||||
LIBFLOAT_TARGET=
|
||||
ifeq ($(strip $(SOFT_FLOAT)),true)
|
||||
ifeq ("$(strip $(ARCH))","arm")
|
||||
LIBFLOAT_TARGET+=$(STAGING_DIR)/lib/libfloat.so
|
||||
endif
|
||||
endif
|
||||
|
||||
$(DL_DIR)/$(LIBFLOAT_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LIBFLOAT_SITE)/$(LIBFLOAT_SOURCE)
|
||||
|
||||
$(DL_DIR)/$(LIBFLOAT_PATCH):
|
||||
$(WGET) -P $(DL_DIR) $(LIBFLOAT_SITE)/$(LIBFLOAT_PATCH)
|
||||
|
||||
libfloat-source: $(DL_DIR)/$(LIBFLOAT_SOURCE) $(DL_DIR)/$(LIBFLOAT_PATCH)
|
||||
|
||||
$(LIBFLOAT_DIR)/.unpacked: $(DL_DIR)/$(LIBFLOAT_SOURCE) $(DL_DIR)/$(LIBFLOAT_PATCH)
|
||||
$(LIBFLOAT_CAT) $(DL_DIR)/$(LIBFLOAT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
# Remove the binary files distributed with the the package.
|
||||
make -C $(LIBFLOAT_DIR) clean
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(LIBFLOAT_DIR) $(DL_DIR) $(LIBFLOAT_PATCH)
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(LIBFLOAT_DIR) $(SOURCE_DIR) libfloat.patch
|
||||
touch $(LIBFLOAT_DIR)/.unpacked
|
||||
|
||||
$(LIBFLOAT_DIR)/libfloat.so.1: $(LIBFLOAT_DIR)/.unpacked $(TARGET_CC)
|
||||
$(MAKE) CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld -C $(LIBFLOAT_DIR)
|
||||
|
||||
$(STAGING_DIR)/lib/libfloat.so: $(LIBFLOAT_DIR)/libfloat.so.1
|
||||
cp -a $(LIBFLOAT_DIR)/libfloat.a $(STAGING_DIR)/lib/libfloat.a
|
||||
cp -a $(LIBFLOAT_DIR)/libfloat.so.1 $(STAGING_DIR)/lib/libfloat.so.1
|
||||
(cd $(STAGING_DIR)/lib ; ln -sf libfloat.so.1 libfloat.so)
|
||||
cp -a $(LIBFLOAT_DIR)/libfloat.a $(TARGET_DIR)/usr/lib/libfloat.a
|
||||
cp -a $(LIBFLOAT_DIR)/libfloat.so.1 $(TARGET_DIR)/lib/libfloat.so.1
|
||||
$(STRIP) $(TARGET_DIR)/lib/libfloat.so.1 > /dev/null 2>&1
|
||||
(cd $(TARGET_DIR)/lib ; ln -sf libfloat.so.1 libfloat.so)
|
||||
(cd $(TARGET_DIR)/usr/lib ; ln -sf /lib/libfloat.so libfloat.so)
|
||||
|
||||
libfloat: $(STAGING_DIR)/lib/libfloat.so
|
||||
|
||||
libfloat-clean:
|
||||
-$(MAKE) -C $(LIBFLOAT_DIR) clean
|
||||
|
||||
libfloat-dirclean:
|
||||
rm -rf $(LIBFLOAT_DIR)
|
||||
|
@ -1,79 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# libglib1.2
|
||||
#
|
||||
#############################################################
|
||||
LIBGLIB12_SOURCE:=glib-1.2.10.tar.gz
|
||||
LIBGLIB12_SITE:=ftp://ftp.gtk.org/pub/gtk/v1.2
|
||||
LIBGLIB12_CAT:=zcat
|
||||
LIBGLIB12_DIR:=$(BUILD_DIR)/glib-1.2.10
|
||||
LIBGLIB12_BINARY:=libglib.a
|
||||
LIBGLIB12_PATCH:=$(SOURCE_DIR)/libglib_configure_1.2.10.bz2
|
||||
|
||||
|
||||
$(DL_DIR)/$(LIBGLIB12_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LIBGLIB12_SITE)/$(LIBGLIB12_SOURCE)
|
||||
|
||||
libglib12-source: $(DL_DIR)/$(LIBGLIB12_SOURCE)
|
||||
|
||||
$(LIBGLIB12_DIR)/.unpacked: $(DL_DIR)/$(LIBGLIB12_SOURCE)
|
||||
$(LIBGLIB12_CAT) $(DL_DIR)/$(LIBGLIB12_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
bzcat $(LIBGLIB12_PATCH) | patch -p1 -d $(LIBGLIB12_DIR)
|
||||
touch $(LIBGLIB12_DIR)/.unpacked
|
||||
|
||||
$(LIBGLIB12_DIR)/.configured: $(LIBGLIB12_DIR)/.unpacked
|
||||
(cd $(LIBGLIB12_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
--enable-shared \
|
||||
);
|
||||
touch $(LIBGLIB12_DIR)/.configured
|
||||
|
||||
$(LIBGLIB12_DIR)/.libs/$(LIBGLIB12_BINARY): $(LIBGLIB12_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(LIBGLIB12_DIR)
|
||||
|
||||
$(STAGING_DIR)/lib/$(LIBGLIB12_BINARY): $(LIBGLIB12_DIR)/.libs/$(LIBGLIB12_BINARY)
|
||||
$(MAKE) prefix=$(STAGING_DIR) \
|
||||
exec_prefix=$(STAGING_DIR) \
|
||||
bindir=$(STAGING_DIR)/bin \
|
||||
sbindir=$(STAGING_DIR)/sbin \
|
||||
libexecdir=$(STAGING_DIR)/libexec \
|
||||
datadir=$(STAGING_DIR)/share \
|
||||
sysconfdir=$(STAGING_DIR)/etc \
|
||||
sharedstatedir=$(STAGING_DIR)/com \
|
||||
localstatedir=$(STAGING_DIR)/var \
|
||||
libdir=$(STAGING_DIR)/lib \
|
||||
includedir=$(STAGING_DIR)/include \
|
||||
oldincludedir=$(STAGING_DIR)/include \
|
||||
infodir=$(STAGING_DIR)/info \
|
||||
mandir=$(STAGING_DIR)/man \
|
||||
-C $(LIBGLIB12_DIR) install;
|
||||
|
||||
$(TARGET_DIR)/lib/$(LIBGLIB12_BINARY): $(STAGING_DIR)/lib/$(LIBGLIB12_BINARY)
|
||||
cp -a $(STAGING_DIR)/lib/$(LIBGLIB12_BINARY) $(TARGET_DIR)/lib/
|
||||
cp -a $(STAGING_DIR)/lib/libglib.so $(TARGET_DIR)/lib/
|
||||
cp -a $(STAGING_DIR)/lib/libglib-1.2.so.0 $(TARGET_DIR)/lib/
|
||||
$(STRIP) $(TARGET_DIR)/lib/$(LIBGLIB12_BINARY)
|
||||
|
||||
libglib12: uclibc $(TARGET_DIR)/lib/$(LIBGLIB12_BINARY)
|
||||
|
||||
libglib12-clean:
|
||||
rm -f $(TARGET_DIR)/lib/$(LIBGLIB12_BINARY)
|
||||
-$(MAKE) -C $(LIBGLIB12_DIR) clean
|
||||
|
||||
libglib12-dirclean:
|
||||
rm -rf $(LIBGLIB12_DIR)
|
||||
|
@ -1,56 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# libmad
|
||||
#
|
||||
#############################################################
|
||||
|
||||
LIBMAD_VERSION=0.15.0b
|
||||
|
||||
# Don't alter below this line unless you (think) you know
|
||||
# what you are doing! Danger, Danger!
|
||||
|
||||
LIBMAD_SOURCE=libmad-$(LIBMAD_VERSION).tar.gz
|
||||
LIBMAD_SITE=http://easynews.dl.sourceforge.net/sourceforge/mad/
|
||||
LIBMAD_DIR=$(BUILD_DIR)/${shell basename $(LIBMAD_SOURCE) .tar.gz}
|
||||
LIBMAD_WORKDIR=$(BUILD_DIR)/libmad-$(LIBMAD_VERSION)
|
||||
|
||||
$(DL_DIR)/$(LIBMAD_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LIBMAD_SITE)/$(LIBMAD_SOURCE)
|
||||
|
||||
$(LIBMAD_DIR)/.unpacked: $(DL_DIR)/$(LIBMAD_SOURCE)
|
||||
gzip -d -c $(DL_DIR)/$(LIBMAD_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(LIBMAD_DIR)/.unpacked
|
||||
|
||||
$(LIBMAD_DIR)/.configured: $(LIBMAD_DIR)/.unpacked
|
||||
(cd $(LIBMAD_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
$(DISABLE_NLS) \
|
||||
);
|
||||
touch $(LIBMAD_DIR)/.configured
|
||||
|
||||
$(LIBMAD_WORKDIR)/libmad: $(LIBMAD_DIR)/.configured
|
||||
rm -f $@
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(LIBMAD_WORKDIR)
|
||||
|
||||
$(LIBMAD_WORKDIR)/.installed: $(LIBMAD_WORKDIR)/libmad
|
||||
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(LIBMAD_WORKDIR) install
|
||||
touch $(LIBMAD_WORKDIR)/.installed
|
||||
|
||||
libmad: uclibc $(LIBMAD_WORKDIR)/.installed
|
||||
|
||||
libmad-source: $(DL_DIR)/$(LIBMAD_SOURCE)
|
||||
|
||||
libmad-clean:
|
||||
@if [ -d $(LIBMAD_WORKDIR)/Makefile ] ; then \
|
||||
$(MAKE) -C $(LIBMAD_WORKDIR) clean ; \
|
||||
fi;
|
||||
|
||||
libmad-dirclean:
|
||||
rm -rf $(LIBMAD_DIR) $(LIBMAD_WORKDIR)
|
||||
|
@ -1,115 +0,0 @@
|
||||
## libpcap
|
||||
|
||||
LIBPCAP_VERSION:=0.8.3
|
||||
LIBPCAP_RELEASE:=1
|
||||
|
||||
LIBPCAP_SOURCE:=libpcap-$(LIBPCAP_VERSION).tar.gz
|
||||
LIBPCAP_SITE:=http://www.tcpdump.org/release/
|
||||
LIBPCAP_DIR:=$(BUILD_DIR)/libpcap-$(LIBPCAP_VERSION)
|
||||
LIBPCAP_CAT:=zcat
|
||||
|
||||
LIBPCAP_PATCH_DIR := $(SOURCE_DIR)/openwrt/patches/libpcap
|
||||
|
||||
LIBPCAP_BUILD_DIR := $(BUILD_DIR)/libpcap_$(LIBPCAP_VERSION)-$(LIBPCAP_RELEASE)
|
||||
LIBPCAP_IPK_DIR := $(OPENWRT_IPK_DIR)/libpcap
|
||||
LIBPCAP_IPK := $(LIBPCAP_BUILD_DIR)_$(ARCH).ipk
|
||||
|
||||
|
||||
$(DL_DIR)/$(LIBPCAP_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LIBPCAP_SITE)/$(LIBPCAP_SOURCE)
|
||||
|
||||
|
||||
$(LIBPCAP_DIR)/.stamp-unpacked: $(DL_DIR)/$(LIBPCAP_SOURCE)
|
||||
$(LIBPCAP_CAT) $(DL_DIR)/$(LIBPCAP_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
|
||||
touch $(LIBPCAP_DIR)/.stamp-unpacked
|
||||
|
||||
|
||||
$(LIBPCAP_DIR)/.stamp-patched: $(LIBPCAP_DIR)/.stamp-unpacked
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(LIBPCAP_DIR) $(LIBPCAP_PATCH_DIR)
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(LIBPCAP_DIR) $(LIBPCAP_DIR)/debian/patches *patch
|
||||
|
||||
touch $(LIBPCAP_DIR)/.stamp-patched
|
||||
|
||||
|
||||
$(LIBPCAP_DIR)/.stamp-configured: $(LIBPCAP_DIR)/.stamp-patched
|
||||
cd $(LIBPCAP_DIR) ; \
|
||||
rm -rf config.cache ; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
ac_cv_linux_vers="2" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib/locate \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var/lib \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info \
|
||||
--includedir=/usr/include \
|
||||
--libdir=/usr/lib \
|
||||
$(DISABLE_NLS) \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--with-pcap=linux \
|
||||
|
||||
touch $(LIBPCAP_DIR)/.stamp-configured
|
||||
|
||||
|
||||
$(LIBPCAP_DIR)/.stamp-built: $(LIBPCAP_DIR)/.stamp-configured
|
||||
cd $(LIBPCAP_DIR) ; \
|
||||
$(MAKE) \
|
||||
CC=$(TARGET_CC) \
|
||||
CCOPT="$(TARGET_OPTIMIZATION)" \
|
||||
|
||||
touch $(LIBPCAP_DIR)/.stamp-built
|
||||
|
||||
|
||||
$(LIBPCAP_DIR)/.stamp-installed: $(LIBPCAP_DIR)/.stamp-built
|
||||
mkdir -p $(LIBPCAP_BUILD_DIR)
|
||||
cd $(LIBPCAP_DIR) ; \
|
||||
$(MAKE) \
|
||||
DESTDIR="$(LIBPCAP_BUILD_DIR)" \
|
||||
install \
|
||||
|
||||
install -m0644 $(LIBPCAP_BUILD_DIR)/usr/include/pcap*.h $(STAGING_DIR)/include/
|
||||
install -m0644 $(LIBPCAP_BUILD_DIR)/usr/lib/libpcap.a $(STAGING_DIR)/lib/
|
||||
install -m0755 $(LIBPCAP_BUILD_DIR)/usr/lib/libpcap.so* $(STAGING_DIR)/lib/
|
||||
|
||||
rm -rf $(LIBPCAP_BUILD_DIR)/usr/share
|
||||
rm -rf $(LIBPCAP_BUILD_DIR)/usr/include
|
||||
rm -rf $(LIBPCAP_BUILD_DIR)/usr/lib/*.a
|
||||
rm -rf $(LIBPCAP_BUILD_DIR)/usr/lib/*.so
|
||||
|
||||
$(STRIP) $(LIBPCAP_BUILD_DIR)/usr/lib/libpcap.so.*
|
||||
|
||||
touch $(LIBPCAP_DIR)/.stamp-installed
|
||||
|
||||
|
||||
$(LIBPCAP_IPK): $(LIBPCAP_DIR)/.stamp-installed
|
||||
cp -a $(LIBPCAP_IPK_DIR)/CONTROL $(LIBPCAP_BUILD_DIR)/
|
||||
perl -pi -e "s/^Vers.*:.*$$/Version: $(LIBPCAP_VERSION)-$(LIBPCAP_RELEASE)/" $(LIBPCAP_BUILD_DIR)/CONTROL/control
|
||||
perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(LIBPCAP_BUILD_DIR)/CONTROL/control
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(LIBPCAP_BUILD_DIR)
|
||||
|
||||
|
||||
libpcap-source: $(DL_DIR)/$(LIBPCAP_SOURCE)
|
||||
|
||||
libpcap-ipk: ipkg-utils $(LIBPCAP_IPK)
|
||||
|
||||
libpcap-clean:
|
||||
$(MAKE) -C $(LIBPCAP_DIR) clean
|
||||
|
||||
libpcap-clean-all:
|
||||
rm -rf $(LIBPCAP_DIR)
|
||||
rm -rf $(LIBPCAP_BUILD_DIR)
|
||||
rm -rf $(LIBPCAP_IPK)
|
||||
rm -rf $(STAGING_DIR)/include/pcap*.h
|
||||
rm -rf $(STAGING_DIR)/lib/libpcap.a
|
||||
rm -rf $(STAGING_DIR)/lib/libpcap.so*
|
@ -1,4 +0,0 @@
|
||||
libpthread-ipk: ipkg-utils $(OPENWRT_IPK_DIR)/libpthread/CONTROL/*
|
||||
chmod a+x $(OPENWRT_IPK_DIR)/libpthread/CONTROL/rules
|
||||
cd $(OPENWRT_IPK_DIR)/libpthread ; $(IPKG_BUILDPACKAGE)
|
||||
mv $(OPENWRT_IPK_DIR)/libpthread_*.ipk $(BUILD_DIR)
|
@ -1,77 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# libtool
|
||||
#
|
||||
#############################################################
|
||||
LIBTOOL_SOURCE:=libtool_1.4.3.orig.tar.gz
|
||||
LIBTOOL_SITE:=http://ftp.debian.org/debian/pool/main/libt/libtool
|
||||
LIBTOOL_CAT:=zcat
|
||||
LIBTOOL_DIR:=$(BUILD_DIR)/libtool-1.4.3
|
||||
LIBTOOL_BINARY:=libtool
|
||||
LIBTOOL_TARGET_BINARY:=usr/bin/libtool
|
||||
|
||||
$(DL_DIR)/$(LIBTOOL_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LIBTOOL_SITE)/$(LIBTOOL_SOURCE)
|
||||
|
||||
libtool-source: $(DL_DIR)/$(LIBTOOL_SOURCE)
|
||||
|
||||
$(LIBTOOL_DIR)/.unpacked: $(DL_DIR)/$(LIBTOOL_SOURCE)
|
||||
$(LIBTOOL_CAT) $(DL_DIR)/$(LIBTOOL_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(LIBTOOL_DIR)/.unpacked
|
||||
|
||||
$(LIBTOOL_DIR)/.configured: $(LIBTOOL_DIR)/.unpacked
|
||||
(cd $(LIBTOOL_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
);
|
||||
touch $(LIBTOOL_DIR)/.configured
|
||||
|
||||
$(LIBTOOL_DIR)/$(LIBTOOL_BINARY): $(LIBTOOL_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(LIBTOOL_DIR)
|
||||
touch -c $(LIBTOOL_DIR)/$(LIBTOOL_BINARY)
|
||||
|
||||
$(TARGET_DIR)/$(LIBTOOL_TARGET_BINARY): $(LIBTOOL_DIR)/$(LIBTOOL_BINARY)
|
||||
$(MAKE) \
|
||||
prefix=$(TARGET_DIR)/usr \
|
||||
exec_prefix=$(TARGET_DIR)/usr \
|
||||
bindir=$(TARGET_DIR)/usr/bin \
|
||||
sbindir=$(TARGET_DIR)/usr/sbin \
|
||||
libexecdir=$(TARGET_DIR)/usr/lib \
|
||||
datadir=$(TARGET_DIR)/usr/share \
|
||||
sysconfdir=$(TARGET_DIR)/etc \
|
||||
localstatedir=$(TARGET_DIR)/var \
|
||||
libdir=$(TARGET_DIR)/usr/lib \
|
||||
infodir=$(TARGET_DIR)/usr/info \
|
||||
mandir=$(TARGET_DIR)/usr/man \
|
||||
includedir=$(TARGET_DIR)/usr/include \
|
||||
-C $(LIBTOOL_DIR) install;
|
||||
$(STRIP) $(TARGET_DIR)//usr/lib/libltdl.so.*.*.* > /dev/null 2>&1
|
||||
$(SED) "s,^CC.*,CC=\"/usr/bin/gcc\"," $(TARGET_DIR)/usr/bin/libtool
|
||||
$(SED) "s,^LD.*,LD=\"/usr/bin/ld\"," $(TARGET_DIR)/usr/bin/libtool
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
libtool: uclibc $(TARGET_DIR)/$(LIBTOOL_TARGET_BINARY)
|
||||
|
||||
libtool-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(LIBTOOL_DIR) uninstall
|
||||
-$(MAKE) -C $(LIBTOOL_DIR) clean
|
||||
|
||||
libtool-dirclean:
|
||||
rm -rf $(LIBTOOL_DIR)
|
||||
|
@ -1,54 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# links (text based web browser)
|
||||
#
|
||||
#############################################################
|
||||
LINKS_SITE:=http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/links/download/no-ssl
|
||||
LINKS_SOURCE:=links-0.99pre9-no-ssl.tar.gz
|
||||
LINKS_DIR:=$(BUILD_DIR)/links-0.99pre9-no-ssl
|
||||
|
||||
$(DL_DIR)/$(LINKS_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LINKS_SITE)/$(LINKS_SOURCE)
|
||||
|
||||
links-source: $(DL_DIR)/$(LINKS_SOURCE)
|
||||
|
||||
$(LINKS_DIR)/.unpacked: $(DL_DIR)/$(LINKS_SOURCE)
|
||||
zcat $(DL_DIR)/$(LINKS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(LINKS_DIR)/.unpacked
|
||||
|
||||
$(LINKS_DIR)/.configured: $(LINKS_DIR)/.unpacked
|
||||
(cd $(LINKS_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/tmp \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
);
|
||||
touch $(LINKS_DIR)/.configured
|
||||
|
||||
$(LINKS_DIR)/links: $(LINKS_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(LINKS_DIR)
|
||||
$(STRIP) $(LINKS_DIR)/links
|
||||
|
||||
$(TARGET_DIR)/usr/bin/links: $(LINKS_DIR)/links
|
||||
install -c $(LINKS_DIR)/links $(TARGET_DIR)/usr/bin/links
|
||||
|
||||
links-clean:
|
||||
$(MAKE) -C $(LINKS_DIR) clean
|
||||
|
||||
links-dirclean:
|
||||
rm -rf $(LINKS_DIR)
|
||||
|
||||
links: uclibc $(TARGET_DIR)/usr/bin/links
|
||||
|
@ -1,76 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# lrzsz (provides zmodem)
|
||||
#
|
||||
#############################################################
|
||||
# Copyright (C) 2001-2003 by Erik Andersen <andersen@codepoet.org>
|
||||
# Copyright (C) 2002 by Tim Riker <Tim@Rikers.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Library General Public License as
|
||||
# published by the Free Software Foundation; either version 2 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Library General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Library General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
# USA
|
||||
|
||||
LRZSZ_SITE:=http://www.ohse.de/uwe/releases
|
||||
LRZSZ_SOURCE:=lrzsz-0.12.20.tar.gz
|
||||
LRZSZ_DIR:=$(BUILD_DIR)/lrzsz-0.12.20
|
||||
|
||||
$(DL_DIR)/$(LRZSZ_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LRZSZ_SITE)/$(LRZSZ_SOURCE)
|
||||
|
||||
lrzsz-source: $(DL_DIR)/$(LRZSZ_SOURCE)
|
||||
|
||||
$(LRZSZ_DIR)/.unpacked: $(DL_DIR)/$(LRZSZ_SOURCE)
|
||||
zcat $(DL_DIR)/$(LRZSZ_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(LRZSZ_DIR)/.unpacked
|
||||
|
||||
$(LRZSZ_DIR)/.configured: $(LRZSZ_DIR)/.unpacked
|
||||
(cd $(LRZSZ_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/tmp \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
--disable-timesync \
|
||||
);
|
||||
$(SED) "s/-lnsl//;" $(LRZSZ_DIR)/src/Makefile
|
||||
$(SED) "s~\(#define ENABLE_SYSLOG.*\)~/* \1 */~;" $(LRZSZ_DIR)/config.h
|
||||
touch $(LRZSZ_DIR)/.configured
|
||||
|
||||
$(LRZSZ_DIR)/src/lrz: $(LRZSZ_DIR)/.configured
|
||||
$(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" prefix="$(TARGET_DIR)" -C $(LRZSZ_DIR)
|
||||
$(STRIP) $(LRZSZ_DIR)/src/lrz $(LRZSZ_DIR)/src/lsz
|
||||
|
||||
$(TARGET_DIR)/usr/bin/rz: $(LRZSZ_DIR)/src/lrz
|
||||
cp $(LRZSZ_DIR)/src/lrz $(TARGET_DIR)/usr/bin/rz
|
||||
cp $(LRZSZ_DIR)/src/lsz $(TARGET_DIR)/usr/bin/sz
|
||||
|
||||
lrzsz: uclibc $(TARGET_DIR)/usr/bin/rz
|
||||
|
||||
lrzsz-clean:
|
||||
rm -f $(TARGET_DIR)/usr/bin/rz
|
||||
-$(MAKE) -C $(LRZSZ_DIR) clean
|
||||
|
||||
lrzsz-dirclean:
|
||||
rm -rf $(LRZSZ_DIR)
|
@ -1,39 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# ltp-testsuite
|
||||
#
|
||||
#############################################################
|
||||
LTP_TESTSUITE_SOURCE:=ltp-full-20040206.tgz
|
||||
LTP_TESTSUITE_SITE:=http://aleron.dl.sourceforge.net/sourceforge/ltp
|
||||
LTP_TESTSUITE_CAT:=zcat
|
||||
LTP_TESTSUITE_DIR:=$(BUILD_DIR)/ltp-full-20040206
|
||||
LTP_TESTSUITE_PATCH:=$(SOURCE_DIR)/ltp-testsuite.patch
|
||||
|
||||
|
||||
$(DL_DIR)/$(LTP_TESTSUITE_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LTP_TESTSUITE_SITE)/$(LTP_TESTSUITE_SOURCE)
|
||||
|
||||
ltp-testsuite-source: $(DL_DIR)/$(LTP_TESTSUITE_SOURCE)
|
||||
|
||||
$(LTP_TESTSUITE_DIR)/.unpacked: $(DL_DIR)/$(LTP_TESTSUITE_SOURCE)
|
||||
$(LTP_TESTSUITE_CAT) $(DL_DIR)/$(LTP_TESTSUITE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
cat $(LTP_TESTSUITE_PATCH) | patch -p1 -d $(LTP_TESTSUITE_DIR)
|
||||
touch $(LTP_TESTSUITE_DIR)/.unpacked
|
||||
|
||||
$(LTP_TESTSUITE_DIR)/ltp-testsuite: $(LTP_TESTSUITE_DIR)/.unpacked
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) CROSS_COMPILER=$(TARGET_CROSS) \
|
||||
-C $(LTP_TESTSUITE_DIR)
|
||||
|
||||
$(TARGET_DIR)/usr/bin/ltp-testsuite: $(LTP_TESTSUITE_DIR)/ltp-testsuite
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) CROSS_COMPILER=$(TARGET_CROSS) \
|
||||
-C $(LTP_TESTSUITE_DIR) install
|
||||
|
||||
ltp-testsuite: uclibc $(TARGET_DIR)/usr/bin/ltp-testsuite
|
||||
|
||||
ltp-testsuite-clean:
|
||||
$(MAKE) -C $(LTP_TESTSUITE_DIR) clean
|
||||
|
||||
ltp-testsuite-dirclean:
|
||||
rm -rf $(LTP_TESTSUITE_DIR)
|
||||
|
||||
|
@ -1,48 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# ltrace
|
||||
#
|
||||
#############################################################
|
||||
LTRACE_SOURCE=ltrace_0.3.31.tar.gz
|
||||
LTRACE_SITE=http://ftp.debian.org/debian/pool/main/l/ltrace
|
||||
LTRACE_DIR=$(BUILD_DIR)/ltrace-0.3.31
|
||||
LTRACE_BINARY=ltrace
|
||||
LTRACE_TARGET_BINARY=usr/bin/ltrace
|
||||
|
||||
$(DL_DIR)/$(LTRACE_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LTRACE_SITE)/$(LTRACE_SOURCE)
|
||||
|
||||
$(LTRACE_DIR)/.source: $(DL_DIR)/$(LTRACE_SOURCE)
|
||||
zcat $(DL_DIR)/$(LTRACE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(LTRACE_DIR)/.source
|
||||
|
||||
$(LTRACE_DIR)/.configured: $(LTRACE_DIR)/.source
|
||||
(cd $(LTRACE_DIR); \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
);
|
||||
touch $(LTRACE_DIR)/.configured;
|
||||
|
||||
$(LTRACE_DIR)/$(LTRACE_BINARY): $(LTRACE_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(LTRACE_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(LTRACE_TARGET_BINARY): $(LTRACE_DIR)/$(LTRACE_BINARY)
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(LTRACE_DIR) install
|
||||
rm -Rf $(TARGET_DIR)/usr/man
|
||||
|
||||
ltrace: uclibc $(TARGET_DIR)/$(LTRACE_TARGET_BINARY)
|
||||
|
||||
ltrace-source: $(DL_DIR)/$(LTRACE_SOURCE)
|
||||
|
||||
ltrace-clean:
|
||||
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(LTRACE_DIR) uninstall
|
||||
-$(MAKE) -C $(LTRACE_DIR) clean
|
||||
|
||||
ltrace-dirclean:
|
||||
rm -rf $(LTRACE_DIR)
|
||||
|
@ -1,65 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# lzo
|
||||
#
|
||||
# Note: this builds only a static library, it does not provide
|
||||
# anything to be installed into the target system.
|
||||
#
|
||||
#############################################################
|
||||
LZO_SOURCE:=lzo_1.08.orig.tar.gz
|
||||
LZO_SITE:=http://ftp.debian.org/debian/pool/main/l/lzo
|
||||
#LZO_SOURCE:=lzo-1.08.tar.bz2
|
||||
#LZO_SITE:=http://www.oberhumer.com/opensource/lzo/download
|
||||
LZO_DIR:=$(BUILD_DIR)/lzo-1.08
|
||||
LZO_CAT:=zcat
|
||||
LZO_PATCH:=$(SOURCE_DIR)/lzo-cross-compile.patch
|
||||
|
||||
$(DL_DIR)/$(LZO_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LZO_SITE)/$(LZO_SOURCE)
|
||||
|
||||
lzo-source: $(DL_DIR)/$(LZO_SOURCE)
|
||||
|
||||
$(LZO_DIR)/.unpacked: $(DL_DIR)/$(LZO_SOURCE)
|
||||
$(LZO_CAT) $(DL_DIR)/$(LZO_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
cat $(LZO_PATCH) | patch -p1 -d $(LZO_DIR)
|
||||
touch $(LZO_DIR)/.unpacked
|
||||
|
||||
LZO_CONFIG_SHARED:=--disable-shared
|
||||
#LZO_CONFIG_SHARED:=--enable-shared
|
||||
|
||||
$(LZO_DIR)/.configured: $(LZO_DIR)/.unpacked
|
||||
(cd $(LZO_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(LZO_CONFIG_SHARED) \
|
||||
);
|
||||
touch $(LZO_DIR)/.configured
|
||||
|
||||
$(LZO_DIR)/src/liblzo.la: $(LZO_DIR)/.configured
|
||||
$(MAKE) -C $(LZO_DIR)
|
||||
|
||||
$(STAGING_DIR)/lib/liblzo.a: $(LZO_DIR)/src/liblzo.la
|
||||
$(MAKE) CC=$(TARGET_CC) DESTDIR=$(STAGING_DIR) -C $(LZO_DIR) install
|
||||
|
||||
lzo: uclibc $(STAGING_DIR)/lib/liblzo.a
|
||||
|
||||
lzo-clean:
|
||||
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LZO_DIR) uninstall
|
||||
-$(MAKE) -C $(LZO_DIR) clean
|
||||
|
||||
lzo-dirclean:
|
||||
rm -rf $(LZO_DIR)
|
||||
|
@ -1,65 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# m4
|
||||
#
|
||||
#############################################################
|
||||
M4_SOURCE:=m4-1.4.tar.gz
|
||||
M4_SITE:=ftp://ftp.gnu.org/gnu/m4
|
||||
M4_CAT:=zcat
|
||||
M4_DIR:=$(BUILD_DIR)/m4-1.4
|
||||
M4_BINARY:=m4
|
||||
M4_TARGET_BINARY:=usr/bin/m4
|
||||
|
||||
$(DL_DIR)/$(M4_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(M4_SITE)/$(M4_SOURCE)
|
||||
|
||||
m4-source: $(DL_DIR)/$(M4_SOURCE)
|
||||
|
||||
$(M4_DIR)/.unpacked: $(DL_DIR)/$(M4_SOURCE)
|
||||
$(M4_CAT) $(DL_DIR)/$(M4_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(M4_DIR)/.unpacked
|
||||
|
||||
$(M4_DIR)/.configured: $(M4_DIR)/.unpacked
|
||||
(cd $(M4_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
);
|
||||
touch $(M4_DIR)/.configured
|
||||
|
||||
$(M4_DIR)/src/$(M4_BINARY): $(M4_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(M4_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(M4_TARGET_BINARY): $(M4_DIR)/src/$(M4_BINARY)
|
||||
$(MAKE) \
|
||||
prefix=$(TARGET_DIR)/usr \
|
||||
exec_prefix=$(TARGET_DIR)/usr \
|
||||
bindir=$(TARGET_DIR)/usr/bin \
|
||||
sbindir=$(TARGET_DIR)/usr/sbin \
|
||||
libexecdir=$(TARGET_DIR)/usr/lib \
|
||||
datadir=$(TARGET_DIR)/usr/share \
|
||||
sysconfdir=$(TARGET_DIR)/etc \
|
||||
localstatedir=$(TARGET_DIR)/var \
|
||||
libdir=$(TARGET_DIR)/usr/lib \
|
||||
infodir=$(TARGET_DIR)/usr/info \
|
||||
mandir=$(TARGET_DIR)/usr/man \
|
||||
includedir=$(TARGET_DIR)/usr/include \
|
||||
-C $(M4_DIR) install;
|
||||
$(STRIP) $(TARGET_DIR)/$(M4_TARGET_BINARY) > /dev/null 2>&1
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
m4: uclibc $(TARGET_DIR)/$(M4_TARGET_BINARY)
|
||||
|
||||
m4-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(M4_DIR) uninstall
|
||||
-$(MAKE) -C $(M4_DIR) clean
|
||||
|
||||
m4-dirclean:
|
||||
rm -rf $(M4_DIR)
|
||||
|
@ -1,61 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# make
|
||||
#
|
||||
#############################################################
|
||||
GNUMAKE_SOURCE:=make-3.80.tar.bz2
|
||||
GNUMAKE_SITE:=ftp://ftp.gnu.org/gnu/make
|
||||
GNUMAKE_DIR:=$(BUILD_DIR)/make-3.80
|
||||
GNUMAKE_CAT:=bzcat
|
||||
GNUMAKE_BINARY:=make
|
||||
GNUMAKE_TARGET_BINARY:=usr/bin/make
|
||||
|
||||
$(DL_DIR)/$(GNUMAKE_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(GNUMAKE_SITE)/$(GNUMAKE_SOURCE)
|
||||
|
||||
make-source: $(DL_DIR)/$(GNUMAKE_SOURCE)
|
||||
|
||||
$(GNUMAKE_DIR)/.unpacked: $(DL_DIR)/$(GNUMAKE_SOURCE)
|
||||
$(GNUMAKE_CAT) $(DL_DIR)/$(GNUMAKE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(GNUMAKE_DIR)/.unpacked
|
||||
|
||||
$(GNUMAKE_DIR)/.configured: $(GNUMAKE_DIR)/.unpacked
|
||||
(cd $(GNUMAKE_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
);
|
||||
touch $(GNUMAKE_DIR)/.configured
|
||||
|
||||
$(GNUMAKE_DIR)/$(GNUMAKE_BINARY): $(GNUMAKE_DIR)/.configured
|
||||
$(MAKE) -C $(GNUMAKE_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(GNUMAKE_TARGET_BINARY): $(GNUMAKE_DIR)/$(GNUMAKE_BINARY)
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(GNUMAKE_DIR) install
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
make: uclibc $(TARGET_DIR)/$(GNUMAKE_TARGET_BINARY)
|
||||
|
||||
make-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(GNUMAKE_DIR) uninstall
|
||||
-$(MAKE) -C $(GNUMAKE_DIR) clean
|
||||
|
||||
make-dirclean:
|
||||
rm -rf $(GNUMAKE_DIR)
|
||||
|
@ -1,80 +0,0 @@
|
||||
## matrixssl
|
||||
|
||||
MATRIXSSL_VERSION := 1.2.1
|
||||
MATRIXSSL_RELEASE := 1
|
||||
|
||||
MATRIXSSL_SOURCE := matrixssl-1-2-1.tar.gz
|
||||
#MATRIXSSL_SITE := http://www.matrixssl.org/
|
||||
MATRIXSSL_SITE := http://nthill.free.fr/openwrt/sources/
|
||||
MATRIXSSL_DIR := $(BUILD_DIR)/matrixssl
|
||||
MATRIXSSL_CAT := zcat
|
||||
|
||||
MATRIXSSL_PATCH_DIR := $(SOURCE_DIR)/openwrt/patches/matrixssl
|
||||
|
||||
MATRIXSSL_BUILD_DIR := $(BUILD_DIR)/libmatrixssl_$(MATRIXSSL_VERSION)-$(MATRIXSSL_RELEASE)
|
||||
MATRIXSSL_IPK_DIR := $(OPENWRT_IPK_DIR)/libmatrixssl
|
||||
MATRIXSSL_IPK := $(MATRIXSSL_BUILD_DIR)_$(ARCH).ipk
|
||||
|
||||
|
||||
$(DL_DIR)/$(MATRIXSSL_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(MATRIXSSL_SITE)/$(MATRIXSSL_SOURCE)
|
||||
|
||||
|
||||
$(MATRIXSSL_DIR)/.stamp-unpacked: $(DL_DIR)/$(MATRIXSSL_SOURCE)
|
||||
$(MATRIXSSL_CAT) $(DL_DIR)/$(MATRIXSSL_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
|
||||
touch $(MATRIXSSL_DIR)/.stamp-unpacked
|
||||
|
||||
|
||||
$(MATRIXSSL_DIR)/.stamp-patched: $(MATRIXSSL_DIR)/.stamp-unpacked
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(MATRIXSSL_DIR) $(MATRIXSSL_PATCH_DIR)
|
||||
|
||||
touch $(MATRIXSSL_DIR)/.stamp-patched
|
||||
|
||||
|
||||
$(MATRIXSSL_DIR)/.stamp-built: $(MATRIXSSL_DIR)/.stamp-patched
|
||||
cd $(MATRIXSSL_DIR) ; \
|
||||
$(MAKE) -C src \
|
||||
CC=$(TARGET_CC) \
|
||||
DFLAGS="$(TARGET_CFLAGS)" \
|
||||
STRIP=/bin/true \
|
||||
all
|
||||
|
||||
touch $(MATRIXSSL_DIR)/.stamp-built
|
||||
|
||||
|
||||
$(MATRIXSSL_BUILD_DIR): $(MATRIXSSL_DIR)/.stamp-built
|
||||
mkdir -p $(MATRIXSSL_BUILD_DIR)
|
||||
|
||||
install -m0755 -d $(STAGING_DIR)/include/matrixSsl
|
||||
install -m0644 $(MATRIXSSL_DIR)/matrixSsl.h $(STAGING_DIR)/include/matrixSsl/
|
||||
ln -fs matrixSsl/matrixSsl.h $(STAGING_DIR)/include/
|
||||
install -m0755 $(MATRIXSSL_DIR)/src/libmatrixssl.so $(STAGING_DIR)/lib/libmatrixssl.so.$(MATRIXSSL_VERSION)
|
||||
ln -fs libmatrixssl.so.$(MATRIXSSL_VERSION) $(STAGING_DIR)/lib/libmatrixssl.so.1.2
|
||||
ln -fs libmatrixssl.so.1.2 $(STAGING_DIR)/lib/libmatrixssl.so
|
||||
|
||||
mkdir -p $(MATRIXSSL_BUILD_DIR)/usr/lib
|
||||
cp -a $(STAGING_DIR)/lib/libmatrixssl.so.* $(MATRIXSSL_BUILD_DIR)/usr/lib/
|
||||
|
||||
$(STRIP) $(MATRIXSSL_BUILD_DIR)/usr/lib/libmatrixssl.so.*
|
||||
|
||||
|
||||
$(MATRIXSSL_IPK): $(MATRIXSSL_BUILD_DIR)
|
||||
cp -a $(MATRIXSSL_IPK_DIR)/CONTROL $(MATRIXSSL_BUILD_DIR)/
|
||||
perl -pi -e "s/^Vers.*:.*$$/Version: $(MATRIXSSL_VERSION)-$(MATRIXSSL_RELEASE)/" $(MATRIXSSL_BUILD_DIR)/CONTROL/control
|
||||
perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(MATRIXSSL_BUILD_DIR)/CONTROL/control
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(MATRIXSSL_BUILD_DIR)
|
||||
|
||||
|
||||
matrixssl-ipk: ipkg-utils libpthread-ipk $(MATRIXSSL_IPK)
|
||||
|
||||
matrixssl-clean:
|
||||
$(MAKE) -C $(MATRIXSSL_DIR) clean
|
||||
|
||||
matrixssl-clean-all:
|
||||
rm -rf $(MATRIXSSL_DIR)
|
||||
rm -rf $(MATRIXSSL_BUILD_DIR)
|
||||
rm -rf $(MATRIXSSL_IPK)
|
||||
rm -rf $(STAGING_DIR)/include/pcap*.h
|
||||
rm -rf $(STAGING_DIR)/lib/libpcap.a
|
||||
rm -rf $(STAGING_DIR)/lib/libpcap.so*
|
@ -1,59 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# microcom terminal emulator
|
||||
#
|
||||
# Maintainer: Tim Riker <Tim@Rikers.org>
|
||||
#
|
||||
#############################################################
|
||||
# Copyright (C) 2001-2003 by Erik Andersen <andersen@codepoet.org>
|
||||
# Copyright (C) 2002 by Tim Riker <Tim@Rikers.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Library General Public License as
|
||||
# published by the Free Software Foundation; either version 2 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Library General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Library General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
# USA
|
||||
|
||||
# TARGETS
|
||||
# http://microcom.port5.com/m102.tar.gz
|
||||
MICROCOM_SITE:=http://microcom.port5.com/
|
||||
MICROCOM_SOURCE:=m102.tar.gz
|
||||
MICROCOM_DIR:=$(BUILD_DIR)/microcom-1.02
|
||||
|
||||
$(DL_DIR)/$(MICROCOM_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(MICROCOM_SITE)/$(MICROCOM_SOURCE)
|
||||
|
||||
microcom-source: $(DL_DIR)/$(MICROCOM_SOURCE)
|
||||
|
||||
$(MICROCOM_DIR)/.unpacked: $(DL_DIR)/$(MICROCOM_SOURCE)
|
||||
mkdir -p $(MICROCOM_DIR)
|
||||
zcat $(DL_DIR)/$(MICROCOM_SOURCE) | tar -C $(MICROCOM_DIR) -xvf -
|
||||
touch $(MICROCOM_DIR)/.unpacked
|
||||
|
||||
$(MICROCOM_DIR)/.configured: $(MICROCOM_DIR)/.unpacked
|
||||
$(SED) 's~gcc~${TARGET_CC}~' $(MICROCOM_DIR)/Makefile
|
||||
touch $(MICROCOM_DIR)/.configured
|
||||
|
||||
$(MICROCOM_DIR)/microcom: $(MICROCOM_DIR)/.configured
|
||||
$(MAKE) -C $(MICROCOM_DIR)
|
||||
|
||||
$(TARGET_DIR)/usr/bin/microcom: $(MICROCOM_DIR)/microcom
|
||||
install -c $(MICROCOM_DIR)/microcom $(TARGET_DIR)/usr/bin/microcom
|
||||
|
||||
microcom-clean:
|
||||
rm $(MICROCOM_DIR)/*.o
|
||||
|
||||
microcom-dirclean:
|
||||
rm -rf $(MICROCOM_DIR)
|
||||
|
||||
microcom: uclibc $(TARGET_DIR)/usr/bin/microcom
|
||||
|
@ -1,46 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# Microwindows - 2003/11/17 Greg Haerr
|
||||
# (requires CVS 2003/11/17 or later)
|
||||
#
|
||||
#############################################################
|
||||
MICROWIN_SITE:=ftp://ftp.microwindows.org/pub/microwindows
|
||||
MICROWIN_SOURCE:=microwindows-src-snapshot.tar.gz
|
||||
MICROWIN_DIR:=$(BUILD_DIR)/microwin
|
||||
#MICROWIN_SOURCE:=microwindows-0.91.tar.gz
|
||||
#MICROWIN_DIR:=$(BUILD_DIR)/microwindows-0.91
|
||||
|
||||
MICROWIN_CAT:=zcat
|
||||
MICROWIN_BINARY:=$(MICROWIN_DIR)/src/bin/nano-X
|
||||
MICROWIN_TARGET_BINARY:=$(TARGET_DIR)/usr/bin/nano-X
|
||||
|
||||
MICROWIN_CONFIG:=$(MICROWIN_DIR)/src/Configs/config.uclibc
|
||||
|
||||
$(DL_DIR)/$(MICROWIN_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(MICROWIN_SITE)/$(MICROWIN_SOURCE)
|
||||
|
||||
microwin-source: $(DL_DIR)/$(MICROWIN_SOURCE)
|
||||
|
||||
$(MICROWIN_DIR)/.unpacked: $(DL_DIR)/$(MICROWIN_SOURCE)
|
||||
$(MICROWIN_CAT) $(DL_DIR)/$(MICROWIN_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(MICROWIN_DIR)/.unpacked
|
||||
|
||||
$(MICROWIN_DIR)/.configured: $(MICROWIN_DIR)/.unpacked
|
||||
(cd $(MICROWIN_DIR); \
|
||||
);
|
||||
touch $(MICROWIN_DIR)/.configured
|
||||
|
||||
$(MICROWIN_BINARY): $(MICROWIN_DIR)/.configured
|
||||
$(MAKE) ARCH=LINUX-$(shell echo $(ARCH) | tr a-z A-Z) $(shell echo $(ARCH) | tr a-z A-Z)TOOLSPREFIX=$(TARGET_CROSS) CC=$(TARGET_CC) -C $(MICROWIN_DIR)/src CONFIG=$(MICROWIN_CONFIG)
|
||||
|
||||
$(MICROWIN_TARGET_BINARY): $(MICROWIN_BINARY)
|
||||
$(MAKE) INSTALL_PREFIX=$(TARGET_DIR)/usr INSTALL_OWNER1= INSTALL_OWNER2= CC=$(TARGET_CC) -C $(MICROWIN_DIR)/src CONFIG=$(MICROWIN_CONFIG) install
|
||||
|
||||
microwin: uclibc $(MICROWIN_TARGET_BINARY)
|
||||
|
||||
microwin-clean:
|
||||
-$(MAKE) -C $(MICROWIN_DIR)/src clean
|
||||
|
||||
microwin-dirclean:
|
||||
rm -rf $(MICROWIN_DIR)
|
||||
|
@ -1,44 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# mkdosfs
|
||||
#
|
||||
#############################################################
|
||||
MKDOSFS_SOURCE=dosfstools-2.8.src.tar.gz
|
||||
MKDOSFS_SITE=http://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools
|
||||
MKDOSFS_DIR=$(BUILD_DIR)/dosfstools-2.8
|
||||
MKDOSFS_CAT:=zcat
|
||||
MKDOSFS_BINARY:=mkdosfs/mkdosfs
|
||||
MKDOSFS_TARGET_BINARY:=sbin/mkdosfs
|
||||
ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
|
||||
MKDOSFS_CFLAGS="-Os -g -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
else
|
||||
MKDOSFS_CFLAGS="-Os -g"
|
||||
endif
|
||||
|
||||
$(DL_DIR)/$(MKDOSFS_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(MKDOSFS_SITE)/$(MKDOSFS_SOURCE)
|
||||
|
||||
mkdosfs-source: $(DL_DIR)/$(MKDOSFS_SOURCE)
|
||||
|
||||
$(MKDOSFS_DIR)/.unpacked: $(DL_DIR)/$(MKDOSFS_SOURCE)
|
||||
$(MKDOSFS_CAT) $(DL_DIR)/$(MKDOSFS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(MKDOSFS_DIR)/.unpacked
|
||||
|
||||
$(MKDOSFS_DIR)/$(MKDOSFS_BINARY): $(MKDOSFS_DIR)/.unpacked
|
||||
$(MAKE) CFLAGS=$(MKDOSFS_CFLAGS) CC=$(TARGET_CC) -C $(MKDOSFS_DIR);
|
||||
$(STRIP) $(MKDOSFS_DIR)/mkdosfs/mkdosfs;
|
||||
touch -c $(MKDOSFS_DIR)/mkdosfs/mkdosfs
|
||||
|
||||
$(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY): $(MKDOSFS_DIR)/$(MKDOSFS_BINARY)
|
||||
cp -a $(MKDOSFS_DIR)/$(MKDOSFS_BINARY) $(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY)
|
||||
touch -c $(TARGET_DIR)/sbin/mkdosfs
|
||||
|
||||
mkdosfs: uclibc $(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY)
|
||||
|
||||
mkdosfs-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(MKDOSFS_DIR) uninstall
|
||||
-$(MAKE) -C $(MKDOSFS_DIR) clean
|
||||
|
||||
mkdosfs-dirclean:
|
||||
rm -rf $(MKDOSFS_DIR)
|
||||
|
@ -1,71 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# mke2fs
|
||||
#
|
||||
#############################################################
|
||||
MKE2FS_SOURCE=e2fsprogs-1.27.tar.gz
|
||||
MKE2FS_SITE=http://aleron.dl.sourceforge.net/sourceforge/e2fsprogs
|
||||
MKE2FS_DIR=$(BUILD_DIR)/e2fsprogs-1.27
|
||||
MKE2FS_CAT:=zcat
|
||||
MKE2FS_BINARY:=misc/mke2fs
|
||||
MKE2FS_TARGET_BINARY:=sbin/mke2fs
|
||||
|
||||
$(DL_DIR)/$(MKE2FS_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(MKE2FS_SITE)/$(MKE2FS_SOURCE)
|
||||
|
||||
mke2fs-source: $(DL_DIR)/$(MKE2FS_SOURCE)
|
||||
|
||||
$(MKE2FS_DIR)/.unpacked: $(DL_DIR)/$(MKE2FS_SOURCE)
|
||||
$(MKE2FS_CAT) $(DL_DIR)/$(MKE2FS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(MKE2FS_DIR)/.unpacked
|
||||
|
||||
$(MKE2FS_DIR)/.configured: $(MKE2FS_DIR)/.unpacked
|
||||
(cd $(MKE2FS_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--with-cc=$(TARGET_CC) \
|
||||
--with-linker=$(TARGET_CROSS)ld \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--disable-elf-shlibs --disable-swapfs \
|
||||
--disable-debugfs --disable-imager \
|
||||
--disable-resizer --disable-fsck \
|
||||
--without-catgets $(DISABLE_NLS) \
|
||||
);
|
||||
touch $(MKE2FS_DIR)/.configured
|
||||
|
||||
$(MKE2FS_DIR)/$(MKE2FS_BINARY): $(MKE2FS_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(MKE2FS_DIR)
|
||||
$(STRIP) $(MKE2FS_DIR)/misc/mke2fs $(MKE2FS_DIR)/misc/badblocks;
|
||||
touch -c $(MKE2FS_DIR)/misc/mke2fs
|
||||
|
||||
$(TARGET_DIR)/$(MKE2FS_TARGET_BINARY): $(MKE2FS_DIR)/$(MKE2FS_BINARY)
|
||||
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(MKE2FS_DIR) install
|
||||
#rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
# $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
# Only install a few selected items...
|
||||
cp -dpf $(MKE2FS_DIR)/misc/mke2fs $(TARGET_DIR)/sbin/mke2fs;
|
||||
cp -dpf $(MKE2FS_DIR)/misc/badblocks $(TARGET_DIR)/sbin/badblocks;
|
||||
touch -c $(TARGET_DIR)/sbin/mke2fs
|
||||
|
||||
mke2fs: uclibc $(TARGET_DIR)/$(MKE2FS_TARGET_BINARY)
|
||||
|
||||
mke2fs-clean:
|
||||
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(MKE2FS_DIR) uninstall
|
||||
rm -f $(TARGET_DIR)/sbin/mke2fs $(TARGET_DIR)/sbin/badblocks;
|
||||
-$(MAKE) -C $(MKE2FS_DIR) clean
|
||||
|
||||
mke2fs-dirclean:
|
||||
rm -rf $(MKE2FS_DIR)
|
||||
|
@ -1,45 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# mrouted
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
MROUTED_SOURCE:=mrouted_3.9-beta3.orig.tar.gz
|
||||
MROUTED_SITE:=http://ftp.debian.org/debian/pool/non-free/m/mrouted
|
||||
MROUTED_DIR:=$(BUILD_DIR)/mrouted-3.9-beta3.orig
|
||||
MROUTED_CAT:=zcat
|
||||
#MROUTED_PATCH:=$(SOURCE_DIR)/mrouted_3.9-beta3-1.1.diff
|
||||
MROUTED_PATCH:=mrouted_3.9-beta3-1.1.diff.gz
|
||||
MROUTED_BINARY:=mrouted
|
||||
MROUTED_TARGET_BINARY:=usr/sbin/mrouted
|
||||
|
||||
$(DL_DIR)/$(MROUTED_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(MROUTED_SITE)/$(MROUTED_SOURCE)
|
||||
|
||||
$(DL_DIR)/$(MROUTED_PATCH):
|
||||
$(WGET) -P $(DL_DIR) $(MROUTED_SITE)/$(MROUTED_PATCH)
|
||||
|
||||
mrouted-source: $(DL_DIR)/$(MROUTED_SOURCE) $(DL_DIR)/$(MROUTED_PATCH)
|
||||
|
||||
$(MROUTED_DIR)/.unpacked: mrouted-source
|
||||
$(MROUTED_CAT) $(DL_DIR)/$(MROUTED_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
$(MROUTED_CAT) $(DL_DIR)/$(MROUTED_PATCH) | patch -p1 -d $(MROUTED_DIR)
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(MROUTED_DIR) $(SOURCE_DIR) mrouted-*.patch
|
||||
touch $(MROUTED_DIR)/.unpacked
|
||||
|
||||
$(MROUTED_DIR)/$(MROUTED_BINARY): $(MROUTED_DIR)/.unpacked
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(MROUTED_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(MROUTED_TARGET_BINARY): $(MROUTED_DIR)/$(MROUTED_BINARY)
|
||||
cp -a $(MROUTED_DIR)/$(MROUTED_BINARY) $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
|
||||
|
||||
mrouted: uclibc $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
|
||||
|
||||
mrouted-clean:
|
||||
rm -f $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
|
||||
-$(MAKE) -C $(MROUTED_DIR) clean
|
||||
|
||||
mrouted-dirclean:
|
||||
rm -rf $(MROUTED_DIR)
|
||||
|
@ -1,133 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# ncurses
|
||||
# this installs only a few vital termcap entries
|
||||
#
|
||||
#############################################################
|
||||
# Copyright (C) 2002 by Ken Restivo <ken@246gt.com>
|
||||
# $Id$
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Library General Public License as
|
||||
# published by the Free Software Foundation; either version 2 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Library General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Library General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
# USA
|
||||
|
||||
# TARGETS
|
||||
NCURSES_SITE:=ftp://ftp.gnu.org/pub/gnu/ncurses
|
||||
NCURSES_DIR:=$(BUILD_DIR)/ncurses-5.2
|
||||
NCURSES_SOURCE:=ncurses-5.2.tar.gz
|
||||
|
||||
$(DL_DIR)/$(NCURSES_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(NCURSES_SITE)/$(NCURSES_SOURCE)
|
||||
|
||||
$(NCURSES_DIR)/.dist: $(DL_DIR)/$(NCURSES_SOURCE)
|
||||
gunzip -c $(DL_DIR)/$(NCURSES_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
#use the local tic and not whatever the build system was going to find.
|
||||
$(SED) 's~\$$srcdir/shlib tic\$$suffix~/usr/bin/tic~' \
|
||||
$(NCURSES_DIR)/misc/run_tic.in
|
||||
touch $(NCURSES_DIR)/.dist
|
||||
|
||||
$(NCURSES_DIR)/.configured: $(NCURSES_DIR)/.dist
|
||||
(cd $(NCURSES_DIR); rm -rf config.cache; \
|
||||
BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--with-terminfo-dirs=/usr/share/terminfo \
|
||||
--with-default-terminfo-dir=/usr/share/terminfo \
|
||||
--libdir=$(STAGING_DIR)/lib \
|
||||
--with-shared --without-cxx --without-cxx-binding \
|
||||
--without-ada --without-progs $(DISABLE_NLS) \
|
||||
--without-profile --without-debug --disable-rpath \
|
||||
--enable-echo --enable-const --enable-overwrite \
|
||||
);
|
||||
touch $(NCURSES_DIR)/.configured
|
||||
|
||||
$(NCURSES_DIR)/lib/libncurses.so.5.2: $(NCURSES_DIR)/.configured
|
||||
$(MAKE) BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) \
|
||||
BUILD_CCFLAGS="-I$(NCURSES_DIR) -I$(NCURSES_DIR)/include" \
|
||||
BUILD_LDFLAGS="" DESTDIR=$(STAGING_DIR) -C $(NCURSES_DIR) \
|
||||
libs panel menu form headers
|
||||
|
||||
$(STAGING_DIR)/lib/libncurses.a: $(NCURSES_DIR)/lib/libncurses.so.5.2
|
||||
BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) CC=$(TARGET_CC) \
|
||||
$(MAKE) \
|
||||
prefix=$(STAGING_DIR) \
|
||||
exec_prefix=$(STAGING_DIR) \
|
||||
bindir=$(STAGING_DIR)/bin \
|
||||
sbindir=$(STAGING_DIR)/sbin \
|
||||
libexecdir=$(STAGING_DIR)/lib \
|
||||
datadir=$(STAGING_DIR)/usr/share \
|
||||
sysconfdir=$(STAGING_DIR)/etc \
|
||||
localstatedir=$(STAGING_DIR)/var \
|
||||
libdir=$(STAGING_DIR)/lib \
|
||||
infodir=$(STAGING_DIR)/info \
|
||||
mandir=$(STAGING_DIR)/man \
|
||||
includedir=$(STAGING_DIR)/include \
|
||||
gxx_include_dir=$(STAGING_DIR)/include/c++ \
|
||||
ticdir=$(STAGING_DIR)/usr/share/terminfo \
|
||||
-C $(NCURSES_DIR) install;
|
||||
chmod a-x $(NCURSES_DIR)/lib/libncurses.so*
|
||||
touch -c $(STAGING_DIR)/lib/libncurses.a
|
||||
|
||||
$(TARGET_DIR)/lib/libncurses.so.5.2: $(STAGING_DIR)/lib/libncurses.a
|
||||
cp -dpf $(NCURSES_DIR)/lib/libncurses.so* $(TARGET_DIR)/lib/
|
||||
-cp -dpf $(STAGING_DIR)/usr/lib/terminfo $(TARGET_DIR)/usr/lib/
|
||||
mkdir -p $(TARGET_DIR)/usr/share/terminfo
|
||||
for i in x/xterm x/xterm-color x/xterm-xfree86 v/vt100 v/vt200 a/ansi l/linux; do \
|
||||
cp -dpf $(STAGING_DIR)/usr/share/terminfo/$${i} $(TARGET_DIR)/usr/share/terminfo/; \
|
||||
done
|
||||
|
||||
$(TARGET_DIR)/usr/lib/libncurses.a: $(STAGING_DIR)/lib/libncurses.a
|
||||
cp -dpf $(NCURSES_DIR)/include/curses.h $(TARGET_DIR)/usr/include/ncurses.h
|
||||
cp -dpf $(NCURSES_DIR)/include/term.h $(TARGET_DIR)/usr/include/
|
||||
cp -dpf $(NCURSES_DIR)/include/unctrl.h $(TARGET_DIR)/usr/include/
|
||||
cp -dpf $(NCURSES_DIR)/include/termcap.h $(TARGET_DIR)/usr/include/
|
||||
cp -dpf $(NCURSES_DIR)/lib/libncurses.a $(TARGET_DIR)/usr/lib/
|
||||
rm -f $(TARGET_DIR)/usr/lib/terminfo
|
||||
(cd $(TARGET_DIR)/usr/lib; ln -fs /usr/share/terminfo)
|
||||
(cd $(TARGET_DIR)/usr/lib; ln -fs libncurses.a libcurses.a)
|
||||
(cd $(TARGET_DIR)/usr/lib; ln -fs libncurses.a libtermcap.a)
|
||||
(cd $(TARGET_DIR)/usr/include; ln -fs ncurses.h curses.h)
|
||||
rm -f $(TARGET_DIR)/lib/libncurses.so
|
||||
(cd $(TARGET_DIR)/usr/lib; ln -fs /lib/libncurses.so.5.2 libncurses.so)
|
||||
-$(STRIP) $(TARGET_DIR)/lib/libncurses.so.5.2
|
||||
touch -c $(TARGET_DIR)/usr/lib/libncurses.a
|
||||
|
||||
ncurses-headers: $(TARGET_DIR)/usr/lib/libncurses.a
|
||||
|
||||
ncurses-source: $(DL_DIR)/$(NCURSES_SOURCE)
|
||||
|
||||
ncurses-clean:
|
||||
rm -f $(STAGING_DIR)/lib/libncurses.so* $(TARGET_DIR)/lib/libncurses.so*
|
||||
rm -f $(STAGING_DIR)/usr/share/tabset $(TARGET_DIR)/usr/share/tabset
|
||||
rm -rf $(STAGING_DIR)/usr/share/terminfo $(TARGET_DIR)/usr/share/terminfo
|
||||
-$(MAKE) -C $(NCURSES_DIR) clean
|
||||
|
||||
ncurses-dirclean:
|
||||
rm -rf $(NCURSES_DIR)
|
||||
|
||||
ncurses: $(TARGET_DIR)/lib/libncurses.so.5.2
|
||||
|
@ -1,52 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# netfilter
|
||||
#
|
||||
#############################################################
|
||||
|
||||
ifeq ($(strip $(USE_NETFILTER_SNAPSHOT)),)
|
||||
USE_NETFILTER_SNAPSHOT=20040508
|
||||
endif
|
||||
NETFILTER_SOURCE:=patch-o-matic-$(USE_NETFILTER_SNAPSHOT).tar.bz2
|
||||
NETFILTER_DIR:=$(BUILD_DIR)/patch-o-matic-$(USE_NETFILTER_SNAPSHOT)
|
||||
NETFILTER_SITE:=ftp://ftp.netfilter.org/pub/patch-o-matic/snapshot
|
||||
NETFILTER_CAT:=bzcat
|
||||
|
||||
# ipv6_mld breaks net/ipv6/mcast.c
|
||||
NETFILTER_EXCLUDE:=--exclude submitted/89_ipv6_mld_netfilter.patch
|
||||
|
||||
NETFILTER_PATCHES:= \
|
||||
base \
|
||||
extra/CLASSIFY.patch \
|
||||
extra/CONNMARK.patch \
|
||||
extra/IPMARK.patch \
|
||||
extra/condition.patch \
|
||||
extra/h323-conntrack-nat.patch \
|
||||
extra/mms-conntrack-nat.patch \
|
||||
extra/pptp-conntrack-nat.patch \
|
||||
extra/string.patch
|
||||
|
||||
LINUX_DIR:=$(BUILD_DIR)/WRT54GS/release/src/linux/linux
|
||||
|
||||
$(DL_DIR)/$(NETFILTER_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(NETFILTER_SITE)/$(NETFILTER_SOURCE)
|
||||
|
||||
netfilter-source: $(DL_DIR)/$(NETFILTER_SOURCE)
|
||||
|
||||
$(NETFILTER_DIR)/.unpacked: $(DL_DIR)/$(NETFILTER_SOURCE)
|
||||
$(NETFILTER_CAT) $(DL_DIR)/$(NETFILTER_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
#ignore whitespace in patches
|
||||
$(SED) "s,\-p1,\-l \-p1," $(NETFILTER_DIR)/runme
|
||||
touch $(NETFILTER_DIR)/.unpacked
|
||||
|
||||
$(LINUX_DIR)/.nf-patched: $(LINUX_DIR)/.unpacked $(NETFILTER_DIR)/.unpacked
|
||||
$(SOURCE_DIR)/patch-kernel.sh $(LINUX_DIR) $(SOURCE_DIR)/openwrt/kernel/netfilter/patches
|
||||
-(cd $(NETFILTER_DIR); KERNEL_DIR=$(LINUX_DIR) ./runme --batch $(NETFILTER_EXCLUDE) $(NETFILTER_PATCHES))
|
||||
touch $(LINUX_DIR)/.nf-patched
|
||||
|
||||
netfilter: $(LINUX_DIR)/.nf-patched
|
||||
|
||||
netfilter-clean:
|
||||
|
||||
netfilter-dirclean:
|
||||
rm -rf $(NETFILTER_DIR)
|
@ -1,57 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# netkitbase
|
||||
#
|
||||
#############################################################
|
||||
NETKITBASE_SOURCE:=netkit-base-0.17.tar.gz
|
||||
NETKITBASE_SITE:=ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
|
||||
NETKITBASE_DIR:=$(BUILD_DIR)/netkit-base-0.17
|
||||
NETKITBASE_CAT:=zcat
|
||||
NETKITBASE_BINARY:=inetd/inetd
|
||||
NETKITBASE_TARGET_BINARY:=usr/sbin/inetd
|
||||
|
||||
$(DL_DIR)/$(NETKITBASE_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(NETKITBASE_SITE)/$(NETKITBASE_SOURCE)
|
||||
|
||||
netkitbase-source: $(DL_DIR)/$(NETKITBASE_SOURCE)
|
||||
|
||||
$(NETKITBASE_DIR)/.unpacked: $(DL_DIR)/$(NETKITBASE_SOURCE)
|
||||
$(NETKITBASE_CAT) $(DL_DIR)/$(NETKITBASE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
# use ANSI syntax
|
||||
$(SED) "s/main()/main(void)/;" $(NETKITBASE_DIR)/configure
|
||||
# don't try to run cross compiled binaries while configuring things
|
||||
$(SED) "s~./__conftest~#./__conftest~;" $(NETKITBASE_DIR)/configure
|
||||
touch $(NETKITBASE_DIR)/.unpacked
|
||||
|
||||
$(NETKITBASE_DIR)/.configured: $(NETKITBASE_DIR)/.unpacked
|
||||
(cd $(NETKITBASE_DIR); PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
|
||||
./configure --installroot=$(TARGET_DIR) --with-c-compiler=$(TARGET_CC) \
|
||||
)
|
||||
touch $(NETKITBASE_DIR)/.configured
|
||||
|
||||
$(NETKITBASE_DIR)/$(NETKITBASE_BINARY): $(NETKITBASE_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(NETKITBASE_DIR)
|
||||
$(STRIP) $(NETKITBASE_DIR)/$(NETKITBASE_BINARY)
|
||||
|
||||
$(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY): $(NETKITBASE_DIR)/$(NETKITBASE_BINARY)
|
||||
# Only install a few selected items...
|
||||
mkdir -p $(TARGET_DIR)/usr/sbin
|
||||
cp $(NETKITBASE_DIR)/$(NETKITBASE_BINARY) $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
|
||||
mkdir -p $(TARGET_DIR)/etc
|
||||
cp $(NETKITBASE_DIR)/etc.sample/inetd.conf $(TARGET_DIR)/etc/
|
||||
$(SED) "s/^\([a-z]\)/#\1/;" $(TARGET_DIR)/etc/inetd.conf
|
||||
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(NETKITBASE_DIR) install
|
||||
#rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
# $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
netkitbase: uclibc $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
|
||||
|
||||
netkitbase-clean:
|
||||
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(NETKITBASE_DIR) uninstall
|
||||
-rm -f $(TARGET_DIR)/usr/sbin/inetd $(TARGET_DIR)/etc/inetd.conf
|
||||
-rm -f $(TARGET_DIR)/etc/inetd.conf
|
||||
-$(MAKE) -C $(NETKITBASE_DIR) clean
|
||||
|
||||
netkitbase-dirclean:
|
||||
rm -rf $(NETKITBASE_DIR)
|
||||
|
@ -1,59 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# netkittelnet
|
||||
#
|
||||
#############################################################
|
||||
NETKITTELNET_SOURCE:=netkit-telnet-0.17.tar.gz
|
||||
NETKITTELNET_SITE:=ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
|
||||
NETKITTELNET_DIR:=$(BUILD_DIR)/netkit-telnet-0.17
|
||||
NETKITTELNET_CAT:=zcat
|
||||
NETKITTELNET_BINARY:=telnetd/telnetd
|
||||
NETKITTELNET_TARGET_BINARY:=usr/sbin/telnetd
|
||||
NETKITTELNET_PATCH:=$(SOURCE_DIR)/netkittelnet.patch
|
||||
|
||||
$(DL_DIR)/$(NETKITTELNET_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(NETKITTELNET_SITE)/$(NETKITTELNET_SOURCE)
|
||||
|
||||
netkittelnet-source: $(DL_DIR)/$(NETKITTELNET_SOURCE)
|
||||
|
||||
$(NETKITTELNET_DIR)/.unpacked: $(DL_DIR)/$(NETKITTELNET_SOURCE)
|
||||
$(NETKITTELNET_CAT) $(DL_DIR)/$(NETKITTELNET_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
# use ANSI syntax
|
||||
$(SED) "s/main()/main(void)/;" $(NETKITTELNET_DIR)/configure
|
||||
# Disable termcap support
|
||||
$(SED) "s~\(.*termcap\.h.*\)~/* \1 */~;" $(NETKITTELNET_DIR)/telnetd/telnetd.c
|
||||
# don't try to run cross compiled binaries while configuring things
|
||||
cat $(NETKITTELNET_PATCH) | patch -p1 -d $(NETKITTELNET_DIR)
|
||||
touch $(NETKITTELNET_DIR)/.unpacked
|
||||
|
||||
$(NETKITTELNET_DIR)/.configured: $(NETKITTELNET_DIR)/.unpacked
|
||||
(cd $(NETKITTELNET_DIR); PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
|
||||
./configure --installroot=$(TARGET_DIR) --with-c-compiler=$(TARGET_CC) \
|
||||
)
|
||||
touch $(NETKITTELNET_DIR)/.configured
|
||||
|
||||
$(NETKITTELNET_DIR)/$(NETKITTELNET_BINARY): $(NETKITTELNET_DIR)/.configured
|
||||
$(MAKE) SUB=telnetd CC=$(TARGET_CC) -C $(NETKITTELNET_DIR)
|
||||
$(STRIP) $(NETKITTELNET_DIR)/$(NETKITTELNET_BINARY)
|
||||
|
||||
$(TARGET_DIR)/$(NETKITTELNET_TARGET_BINARY): $(NETKITTELNET_DIR)/$(NETKITTELNET_BINARY)
|
||||
# Only install a few selected items...
|
||||
mkdir -p $(TARGET_DIR)/usr/sbin
|
||||
rm -f $(TARGET_DIR)/$(NETKITTELNET_TARGET_BINARY)
|
||||
cp $(NETKITTELNET_DIR)/$(NETKITTELNET_BINARY) $(TARGET_DIR)/$(NETKITTELNET_TARGET_BINARY)
|
||||
# Enable telnet in inetd
|
||||
$(SED) "s~^#telnet.*~telnet\tstream\ttcp\tnowait\troot\t/usr/sbin/telnetd\t/usr/sbin/telnetd~;" $(TARGET_DIR)/etc/inetd.conf
|
||||
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(NETKITTELNET_DIR) install
|
||||
#rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
# $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
|
||||
netkittelnet: uclibc netkitbase $(TARGET_DIR)/$(NETKITTELNET_TARGET_BINARY)
|
||||
|
||||
netkittelnet-clean:
|
||||
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(NETKITTELNET_DIR) uninstall
|
||||
-rm -f $(TARGET_DIR)/usr/sbin/telnetd
|
||||
-$(MAKE) -C $(NETKITTELNET_DIR) clean
|
||||
|
||||
netkittelnet-dirclean:
|
||||
rm -rf $(NETKITTELNET_DIR)
|
||||
|
@ -1,105 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# netsnmp
|
||||
#
|
||||
#############################################################
|
||||
|
||||
NETSNMP_URL:=http://aleron.dl.sourceforge.net/sourceforge/net-snmp/
|
||||
NETSNMP_DIR:=$(BUILD_DIR)/net-snmp-5.1
|
||||
NETSNMP_SOURCE:=net-snmp-5.1.tar.gz
|
||||
NETSNMP_PATCH1:=net-snmp_5.1-5.diff.gz
|
||||
NETSNMP_PATCH1_URL:=http://ftp.debian.org/debian/pool/main/n/net-snmp/
|
||||
NETSNMP_PATCH2:=$(SOURCE_DIR)/netsnmp.patch
|
||||
|
||||
$(DL_DIR)/$(NETSNMP_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(NETSNMP_URL)/$(NETSNMP_SOURCE)
|
||||
|
||||
$(DL_DIR)/$(NETSNMP_PATCH1):
|
||||
$(WGET) -P $(DL_DIR) $(NETSNMP_PATCH1_URL)/$(NETSNMP_PATCH1)
|
||||
|
||||
$(NETSNMP_DIR)/.unpacked: $(DL_DIR)/$(NETSNMP_SOURCE) $(DL_DIR)/$(NETSNMP_PATCH1)
|
||||
zcat $(DL_DIR)/$(NETSNMP_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
zcat $(DL_DIR)/$(NETSNMP_PATCH1) | patch -p1 -d $(NETSNMP_DIR)
|
||||
cat $(NETSNMP_PATCH2) | patch -p1 -d $(NETSNMP_DIR)
|
||||
touch $(NETSNMP_DIR)/.unpacked
|
||||
|
||||
# We set CAN_USE_SYSCTL to no and use /proc since the
|
||||
# sysctl code in this thing is apparently intended for
|
||||
# freebsd or some such thing...
|
||||
$(NETSNMP_DIR)/.configured: $(NETSNMP_DIR)/.unpacked
|
||||
(cd $(NETSNMP_DIR); autoconf; \
|
||||
ac_cv_CAN_USE_SYSCTL=no \
|
||||
PATH=$(TARGET_PATH) \
|
||||
./configure \
|
||||
--with-cc=$(TARGET_CROSS)gcc \
|
||||
--with-ar=$(TARGET_CROSS)ar \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--with-endianness=little \
|
||||
--with-persistent-directory=/var/lib/snmp \
|
||||
--enable-ucd-snmp-compatibility \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--with-logfile=none \
|
||||
--without-rpm \
|
||||
--with-openssl \
|
||||
--without-dmalloc \
|
||||
--without-efence \
|
||||
--without-rsaref \
|
||||
--with-sys-contact="root" \
|
||||
--with-sys-location="Unknown" \
|
||||
--with-mib-modules="host smux ucd-snmp/dlmod" \
|
||||
--with-defaults \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
);
|
||||
touch $(NETSNMP_DIR)/.configured
|
||||
|
||||
$(NETSNMP_DIR)/agent/snmpd: $(NETSNMP_DIR)/.configured
|
||||
$(MAKE) -C $(NETSNMP_DIR)
|
||||
|
||||
$(TARGET_DIR)/usr/sbin/snmpd: $(NETSNMP_DIR)/agent/snmpd
|
||||
#$(MAKE) DESTDIR=$(TARGET_DIR) -C $(NETSNMP_DIR) install
|
||||
$(MAKE) PREFIX=$(TARGET_DIR)/usr \
|
||||
prefix=$(TARGET_DIR)/usr \
|
||||
exec_prefix=$(TARGET_DIR)/usr \
|
||||
persistentdir=$(TARGET_DIR)/var/lib/snmp \
|
||||
infodir=$(TARGET_DIR)/usr/info \
|
||||
mandir=$(TARGET_DIR)/usr/man \
|
||||
includedir=$(STAGING_DIR)/include/net-snmp \
|
||||
ucdincludedir=$(STAGING_DIR)/include/ucd-snmp \
|
||||
-C $(NETSNMP_DIR) install;
|
||||
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
# Copy the .conf files.
|
||||
mkdir -p $(TARGET_DIR)/etc/snmp
|
||||
cp $(NETSNMP_DIR)/EXAMPLE.conf $(TARGET_DIR)/etc/snmp/snmpd.conf
|
||||
cp $(NETSNMP_DIR)/EXAMPLE-trap.conf $(TARGET_DIR)/etc/snmp/snmptrapd.conf
|
||||
-mv $(TARGET_DIR)/usr/share/snmp/mib2c*.conf $(TARGET_DIR)/etc/snmp
|
||||
mkdir -p $(TARGET_DIR)/etc/default
|
||||
cp $(NETSNMP_DIR)/debian/snmpd.default $(TARGET_DIR)/etc/default/snmpd
|
||||
# Remove the unsupported snmpcheck program
|
||||
rm $(TARGET_DIR)/usr/bin/snmpcheck
|
||||
# Install the "broken" headers
|
||||
cp $(NETSNMP_DIR)/agent/mibgroup/struct.h $(STAGING_DIR)/include/net-snmp/agent
|
||||
cp $(NETSNMP_DIR)/agent/mibgroup/util_funcs.h $(STAGING_DIR)/include/net-snmp
|
||||
cp $(NETSNMP_DIR)/agent/mibgroup/mibincl.h $(STAGING_DIR)/include/net-snmp/library
|
||||
cp $(NETSNMP_DIR)/agent/mibgroup/header_complex.h $(STAGING_DIR)/include/net-snmp/agent
|
||||
|
||||
netsnmp: $(TARGET_DIR)/usr/sbin/snmpd
|
||||
|
||||
netsnmp-headers: $(TARGET_DIR)/usr/include/net-snmp/net-snmp-config.h
|
||||
cp -a $(STAGING_DIR)/include/net-snmp $(TARGET_DIR)/usr/include/net-snmp
|
||||
cp -a $(STAGING_DIR)/include/ucd-snmp $(TARGET_DIR)/usr/include/net-snmp
|
||||
|
||||
netsnmp-source: $(DL_DIR)/$(NETSNMP_SOURCE)
|
||||
|
||||
netsnmp-clean:
|
||||
$(MAKE) -C $(NETSNMP_DIR) clean
|
||||
|
||||
netsnmp-dirclean:
|
||||
rm -rf $(NETSNMP_DIR)
|
||||
|
@ -1,72 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# newt
|
||||
#
|
||||
#############################################################
|
||||
NEWT_SOURCE=newt-0.51.0.tar.bz2
|
||||
NEWT_SITE=http://www.uclibc.org/
|
||||
NEWT_DIR=$(BUILD_DIR)/newt-0.51.0
|
||||
NEWT_VERSION=0.51.0
|
||||
ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
|
||||
NEWT_CFLAGS=-Os -g -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
||||
else
|
||||
NEWT_CFLAGS=-Os -g
|
||||
endif
|
||||
NEWT_CFLAGS+=-fPIC
|
||||
|
||||
$(DL_DIR)/$(NEWT_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(NEWT_SITE)/$(NEWT_SOURCE)
|
||||
|
||||
$(NEWT_DIR)/.source: $(DL_DIR)/$(NEWT_SOURCE)
|
||||
bzcat $(DL_DIR)/$(NEWT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
touch $(NEWT_DIR)/.source;
|
||||
|
||||
$(NEWT_DIR)/.configured: $(NEWT_DIR)/.source
|
||||
(cd $(NEWT_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
);
|
||||
touch $(NEWT_DIR)/.configured;
|
||||
|
||||
$(NEWT_DIR)/libnewt.so.$(NEWT_VERSION): $(NEWT_DIR)/.configured
|
||||
$(MAKE) CFLAGS="$(NEWT_CFLAGS)" CC=$(TARGET_CC) -C $(NEWT_DIR)
|
||||
touch -c $(NEWT_DIR)/libnewt.so.$(NEWT_VERSION)
|
||||
|
||||
$(STAGING_DIR)/lib/libnewt.a: $(NEWT_DIR)/libnewt.so.$(NEWT_VERSION)
|
||||
cp -a $(NEWT_DIR)/libnewt.a $(STAGING_DIR)/lib;
|
||||
cp -a $(NEWT_DIR)/newt.h $(STAGING_DIR)/include;
|
||||
cp -a $(NEWT_DIR)/libnewt.so* $(STAGING_DIR)/lib;
|
||||
(cd $(STAGING_DIR)/lib; ln -fs libnewt.so.$(NEWT_VERSION) libnewt.so);
|
||||
(cd $(STAGING_DIR)/lib; ln -fs libnewt.so.$(NEWT_VERSION) libnewt.so.0.51);
|
||||
touch -c $(STAGING_DIR)/lib/libnewt.a
|
||||
|
||||
$(TARGET_DIR)/lib/libnewt.so.$(NEWT_VERSION): $(STAGING_DIR)/lib/libnewt.a
|
||||
cp -a $(STAGING_DIR)/lib/libnewt.so* $(TARGET_DIR)/lib;
|
||||
-$(STRIP) $(TARGET_DIR)/lib/libnewt.so*
|
||||
touch -c $(TARGET_DIR)/lib/libnewt.so.$(NEWT_VERSION)
|
||||
|
||||
newt: uclibc slang $(TARGET_DIR)/lib/libnewt.so.$(NEWT_VERSION)
|
||||
|
||||
newt-source: $(DL_DIR)/$(NEWT_SOURCE)
|
||||
|
||||
newt-clean:
|
||||
rm -f $(TARGET_DIR)/lib/libnewt.so*
|
||||
-$(MAKE) -C $(NEWT_DIR) clean
|
||||
|
||||
newt-dirclean: slang-dirclean
|
||||
rm -rf $(NEWT_DIR)
|
||||
|
@ -1,62 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# ntp
|
||||
#
|
||||
#############################################################
|
||||
NTP_SOURCE:=ntp-4.1.2.tar.gz
|
||||
NTP_SITE:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4
|
||||
NTP_DIR:=$(BUILD_DIR)/ntp-4.1.2
|
||||
NTP_CAT:=zcat
|
||||
NTP_BINARY:=ntpdate/ntpdate
|
||||
NTP_TARGET_BINARY:=usr/bin/ntpdate
|
||||
|
||||
|
||||
$(DL_DIR)/$(NTP_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(NTP_SITE)/$(NTP_SOURCE)
|
||||
|
||||
ntp-source: $(DL_DIR)/$(NTP_SOURCE)
|
||||
|
||||
$(NTP_DIR)/.unpacked: $(DL_DIR)/$(NTP_SOURCE)
|
||||
$(NTP_CAT) $(DL_DIR)/$(NTP_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
$(SED) "s,^#if.*__GLIBC__.*_BSD_SOURCE.*$$,#if 0," \
|
||||
$(NTP_DIR)/ntpd/refclock_pcf.c;
|
||||
touch $(NTP_DIR)/.unpacked
|
||||
|
||||
$(NTP_DIR)/.configured: $(NTP_DIR)/.unpacked
|
||||
(cd $(NTP_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
--with-shared \
|
||||
--program-transform-name=s,,, \
|
||||
);
|
||||
touch $(NTP_DIR)/.configured
|
||||
|
||||
$(NTP_DIR)/$(NTP_BINARY): $(NTP_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(NTP_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(NTP_TARGET_BINARY): $(NTP_DIR)/$(NTP_BINARY)
|
||||
install -m 755 $(NTP_DIR)/$(NTP_BINARY) $(TARGET_DIR)/$(NTP_TARGET_BINARY)
|
||||
|
||||
ntp: uclibc $(TARGET_DIR)/$(NTP_TARGET_BINARY)
|
||||
|
||||
ntp-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(NTP_DIR) uninstall
|
||||
-$(MAKE) -C $(NTP_DIR) clean
|
||||
|
||||
ntp-dirclean:
|
||||
rm -rf $(NTP_DIR)
|
||||
|
@ -1,38 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# ntpclient
|
||||
#
|
||||
#############################################################
|
||||
NTPCLIENT_VERSION:=2003_194
|
||||
NTPCLIENT_SOURCE:=ntpclient_$(NTPCLIENT_VERSION).tar.gz
|
||||
NTPCLIENT_SITE:=http://doolittle.faludi.com/ntpclient
|
||||
NTPCLIENT_DIR:=$(BUILD_DIR)/ntpclient
|
||||
NTPCLIENT_IPK=$(BUILD_DIR)/ntpclient_$(NTPCLIENT_VERSION)-1_mipsel.ipk
|
||||
NTPCLIENT_IPK_DIR:=$(BUILD_DIR)/ntpclient-$(NTPCLIENT_VERSION)-ipk
|
||||
|
||||
$(DL_DIR)/$(NTPCLIENT_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(NTPCLIENT_SITE)/$(NTPCLIENT_SOURCE)
|
||||
|
||||
ntpclient-source: $(DL_DIR)/$(NTPCLIENT_SOURCE)
|
||||
|
||||
$(NTPCLIENT_DIR)/.unpacked: $(DL_DIR)/$(NTPCLIENT_SOURCE)
|
||||
tar -C $(BUILD_DIR) -zxf $(DL_DIR)/$(NTPCLIENT_SOURCE)
|
||||
touch $(NTPCLIENT_DIR)/.unpacked
|
||||
|
||||
$(NTPCLIENT_DIR)/ntpclient: $(NTPCLIENT_DIR)/.unpacked
|
||||
CFLAGS="$(TARGET_CFLAGS)" $(MAKE) $(TARGET_CONFIGURE_OPTS) LD=$(TARGET_CC) -C $(NTPCLIENT_DIR)
|
||||
|
||||
$(NTPCLIENT_IPK): $(NTPCLIENT_DIR)/ntpclient
|
||||
mkdir -p $(NTPCLIENT_IPK_DIR)/CONTROL $(NTPCLIENT_IPK_DIR)/usr/sbin
|
||||
install -m 644 $(OPENWRT_IPK_DIR)/ntpclient/CONTROL/control $(NTPCLIENT_IPK_DIR)/CONTROL
|
||||
install -m 755 $(NTPCLIENT_DIR)/ntpclient $(NTPCLIENT_IPK_DIR)/usr/sbin/
|
||||
$(STRIP) $(NTPCLIENT_IPK_DIR)/usr/sbin/ntpclient
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(NTPCLIENT_IPK_DIR)
|
||||
|
||||
ntpclient-ipk : uclibc $(NTPCLIENT_IPK)
|
||||
|
||||
ntpclient-clean:
|
||||
-$(MAKE) -C $(NTPCLIENT_DIR) clean
|
||||
|
||||
ntpclient-dirclean:
|
||||
rm -rf $(NTPCLIENT_DIR) $(NTPCLIENT_IPK_DIR)
|
@ -1,74 +0,0 @@
|
||||
######################################################
|
||||
#
|
||||
# An example makefile to fetch a package from sources
|
||||
# then fetch the ipkg updates required to the base package
|
||||
# extract the archives into the build tree
|
||||
# and then build the source
|
||||
#
|
||||
######################################################
|
||||
|
||||
|
||||
# For this example we'll use a fairly simple package that compiles easily
|
||||
# and has sources available for download at sourceforge
|
||||
OIDENTD=oidentd-2.0.7
|
||||
OIDENTD_TARGET=oidentd
|
||||
OIDENTD_DIR=$(BUILD_DIR)/oidentd-2.0.7
|
||||
OIDENTD_IPKTARGET=oidentd-2.0.7_mipsel.ipk
|
||||
OIDENTD_SITE=http://easynews.dl.sourceforge.net/sourceforge/ojnk
|
||||
OIDENTD_SOURCE=oidentd-2.0.7.tar.gz
|
||||
OIDENTDIPK_SITE=http://openwrt.rozeware.bc.ca/ipkg-dev
|
||||
OIDENTDIPK_SRC=oidentd-2.0.7-pkg.tgz
|
||||
|
||||
|
||||
|
||||
|
||||
# define a target for the master makefile
|
||||
oidentd: $(OIDENTD_DIR)/$(OIDENTD_TARGET)
|
||||
|
||||
oidentd-ipk: $(BUILD_DIR)/$(OIDENTD_IPKTARGET)
|
||||
|
||||
# We need to download sources if we dont have them
|
||||
$(DL_DIR)/$(OIDENTD_SOURCE) :
|
||||
$(WGET) -P $(DL_DIR) $(OIDENTD_SITE)/$(OIDENTD_SOURCE)
|
||||
|
||||
# As well as the upstream package sources, we need the updates
|
||||
# for ipkg packaging
|
||||
$(DL_DIR)/$(OIDENTDIPK_SRC) :
|
||||
$(WGET) -P $(DL_DIR) $(OIDENTDIPK_SITE)/$(OIDENTDIPK_SRC)
|
||||
|
||||
# if we have the sources, they do no good unless they are unpacked
|
||||
$(OIDENTD_DIR)/.unpacked: $(DL_DIR)/$(OIDENTD_SOURCE)
|
||||
tar -C $(BUILD_DIR) -zxf $(DL_DIR)/$(OIDENTD_SOURCE)
|
||||
touch $(OIDENTD_DIR)/.unpacked
|
||||
|
||||
# if we have the sources unpacked, we need to configure them
|
||||
$(OIDENTD_DIR)/.configured: $(OIDENTD_DIR)/.unpacked
|
||||
(cd $(OIDENTD_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
);
|
||||
touch $(OIDENTD_DIR)/.configured
|
||||
|
||||
|
||||
# with the upstream sources unpacked, they still dont do much good without
|
||||
# the ipkg control and rule files
|
||||
$(OIDENTD_DIR)/ipkg/rules : $(DL_DIR)/$(OIDENTDIPK_SRC) $(OIDENTD_DIR)/.unpacked
|
||||
tar -C $(OIDENTD_DIR) -zxf $(DL_DIR)/$(OIDENTDIPK_SRC)
|
||||
|
||||
# now that we have it all in place, just build it
|
||||
$(OIDENTD_DIR)/$(OIDENTD_TARGET): $(OIDENTD_DIR)/.configured
|
||||
cd $(OIDENTD_DIR); make
|
||||
|
||||
|
||||
$(BUILD_DIR)/$(OIDENTD_IPKTARGET): $(OIDENTD_DIR)/$(OIDENTD_TARGET) $(OIDENTD_DIR)/ipkg/rules
|
||||
(cd $(OIDENTD_DIR); $(IPKG_BUILDPACKAGE))
|
||||
|
||||
|
||||
|
@ -1,171 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# openssh
|
||||
#
|
||||
#############################################################
|
||||
|
||||
OPENSSH_SITE:=ftp://ftp.tux.org/bsd/openbsd/OpenSSH/portable/
|
||||
OPENSSH_DIR:=$(BUILD_DIR)/openssh-3.8p1
|
||||
OPENSSH_SOURCE:=openssh-3.8p1.tar.gz
|
||||
|
||||
OPENSSH_IPK_DIR=$(OPENWRT_IPK_DIR)/openssh
|
||||
OPENSSH_IPK_BUILD_DIR:=$(BUILD_DIR)/openssh-3.8p1-ipk
|
||||
|
||||
OPENSSH_SERVER_IPK:=$(BUILD_DIR)/openssh-server_3.8p1-1_mipsel.ipk
|
||||
OPENSSH_CLIENT_IPK:=$(BUILD_DIR)/openssh-client_3.8p1-1_mipsel.ipk
|
||||
OPENSSH_SFTP_SERVER_IPK:=$(BUILD_DIR)/openssh-sftp-server_3.8p1-1_mipsel.ipk
|
||||
OPENSSH_SFTP_CLIENT_IPK:=$(BUILD_DIR)/openssh-sftp-client_3.8p1-1_mipsel.ipk
|
||||
OPENSSH_CLIENT_EX_IPK:=$(BUILD_DIR)/openssh-client-extras_3.8p1-1_mipsel.ipk
|
||||
|
||||
$(DL_DIR)/$(OPENSSH_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(OPENSSH_SITE)/$(OPENSSH_SOURCE)
|
||||
|
||||
$(OPENSSH_DIR)/.unpacked: $(DL_DIR)/$(OPENSSH_SOURCE) $(OPENSSH_PATCH)
|
||||
zcat $(DL_DIR)/$(OPENSSH_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
cat $(OPENSSH_IPK_DIR)/openssh.patch | patch -p1 -d $(OPENSSH_DIR)
|
||||
touch $(OPENSSH_DIR)/.unpacked
|
||||
|
||||
$(OPENSSH_DIR)/.configured: $(OPENSSH_DIR)/.unpacked
|
||||
(cd $(OPENSSH_DIR); rm -rf config.cache; autoconf; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
LD=$(TARGET_CROSS)gcc \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libexecdir=/usr/sbin \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--includedir=$(STAGING_DIR)/include \
|
||||
--disable-lastlog --disable-utmp \
|
||||
--disable-utmpx --disable-wtmp --disable-wtmpx \
|
||||
--without-x \
|
||||
$(DISABLE_NLS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
);
|
||||
touch $(OPENSSH_DIR)/.configured
|
||||
|
||||
$(OPENSSH_DIR)/ssh: $(OPENSSH_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(OPENSSH_DIR)
|
||||
-$(STRIP) $(OPENSSH_DIR)/scp
|
||||
-$(STRIP) $(OPENSSH_DIR)/sftp
|
||||
-$(STRIP) $(OPENSSH_DIR)/sftp-server
|
||||
-$(STRIP) $(OPENSSH_DIR)/ssh
|
||||
-$(STRIP) $(OPENSSH_DIR)/ssh-add
|
||||
-$(STRIP) $(OPENSSH_DIR)/ssh-agent
|
||||
-$(STRIP) $(OPENSSH_DIR)/ssh-keygen
|
||||
-$(STRIP) $(OPENSSH_DIR)/ssh-keyscan
|
||||
-$(STRIP) $(OPENSSH_DIR)/ssh-keysign
|
||||
-$(STRIP) $(OPENSSH_DIR)/ssh-rand-helper
|
||||
-$(STRIP) $(OPENSSH_DIR)/sshd
|
||||
|
||||
$(TARGET_DIR)/usr/bin/ssh: $(OPENSSH_DIR)/ssh
|
||||
$(MAKE) CC=$(TARGET_CC) DESTDIR=$(TARGET_DIR) -C $(OPENSSH_DIR) install
|
||||
mkdir -p $(TARGET_DIR)/etc/init.d/
|
||||
cp $(OPENSSH_DIR)/S50sshd $(TARGET_DIR)/etc/init.d/
|
||||
chmod a+x $(TARGET_DIR)/etc/init.d/S50sshd
|
||||
rm -rf $(TARGET_DIR)/usr/info $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
# since this is the embedded build, keep things to minimum
|
||||
rm $(TARGET_DIR)/etc/moduli
|
||||
rm $(TARGET_DIR)/usr/bin/sftp
|
||||
rm $(TARGET_DIR)/usr/bin/ssh-add
|
||||
rm $(TARGET_DIR)/usr/bin/ssh-agent
|
||||
rm $(TARGET_DIR)/usr/bin/ssh-keyscan
|
||||
rm $(TARGET_DIR)/usr/sbin/sftp-server
|
||||
rm $(TARGET_DIR)/usr/sbin/ssh-keysign
|
||||
|
||||
openssh: $(TARGET_DIR)/usr/bin/ssh
|
||||
|
||||
$(OPENSSH_IPK_BUILD_DIR)/usr/bin/ssh: $(OPENSSH_DIR)/ssh
|
||||
$(MAKE) CC=$(TARGET_CC) DESTDIR=$(OPENSSH_IPK_BUILD_DIR) -C $(OPENSSH_DIR) install
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/etc/init.d/
|
||||
cp $(OPENSSH_DIR)/S50sshd $(OPENSSH_IPK_BUILD_DIR)/etc/init.d/
|
||||
chmod a+x $(OPENSSH_IPK_BUILD_DIR)/etc/init.d/S50sshd
|
||||
rm -rf $(OPENSSH_IPK_BUILD_DIR)/usr/info $(OPENSSH_IPK_BUILD_DIR)/usr/man $(OPENSSH_IPK_BUILD_DIR)/usr/share/doc
|
||||
|
||||
$(OPENSSH_SERVER_IPK): $(OPENSSH_IPK_BUILD_DIR)/usr/bin/ssh
|
||||
rm -rf $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.server.control $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/control
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.server.conffiles $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/conffiles
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.server.preinst $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/preinst
|
||||
chmod a+x $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/preinst
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.server.postinst $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/postinst
|
||||
chmod a+x $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/postinst
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/etc/init.d
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.server.sshd_config $(OPENSSH_IPK_BUILD_DIR)/build/etc/sshd_config
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.server.S50sshd-ipk $(OPENSSH_IPK_BUILD_DIR)/build/etc/init.d/S50sshd
|
||||
chmod a+x $(OPENSSH_IPK_BUILD_DIR)/build/etc/init.d/S50sshd
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/usr/sbin
|
||||
cp $(OPENSSH_IPK_BUILD_DIR)/usr/sbin/sshd $(OPENSSH_IPK_BUILD_DIR)/build/usr/sbin
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/usr/bin
|
||||
cp $(OPENSSH_IPK_BUILD_DIR)/usr/bin/ssh-keygen $(OPENSSH_IPK_BUILD_DIR)/build/usr/bin
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
rm -rf $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
|
||||
$(OPENSSH_CLIENT_IPK): $(OPENSSH_IPK_BUILD_DIR)/usr/bin/ssh
|
||||
rm -rf $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.client.control $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/control
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.client.conffiles $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/conffiles
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.client.preinst $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/preinst
|
||||
chmod a+x $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/preinst
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/etc
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.client.ssh_config $(OPENSSH_IPK_BUILD_DIR)/build/etc/ssh_config
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/usr/bin
|
||||
cp $(OPENSSH_IPK_BUILD_DIR)/usr/bin/ssh $(OPENSSH_IPK_BUILD_DIR)/build/usr/bin
|
||||
cp $(OPENSSH_IPK_BUILD_DIR)/usr/bin/scp $(OPENSSH_IPK_BUILD_DIR)/build/usr/bin
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
rm -rf $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
|
||||
$(OPENSSH_SFTP_SERVER_IPK): $(OPENSSH_IPK_BUILD_DIR)/usr/bin/ssh
|
||||
rm -rf $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.sftp-server.control $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/control
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/usr/sbin
|
||||
cp $(OPENSSH_IPK_BUILD_DIR)/usr/sbin/sftp-server $(OPENSSH_IPK_BUILD_DIR)/build/usr/sbin
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
rm -rf $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
|
||||
$(OPENSSH_SFTP_CLIENT_IPK): $(OPENSSH_IPK_BUILD_DIR)/usr/bin/ssh
|
||||
rm -rf $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.sftp-client.control $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/control
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/usr/bin
|
||||
cp $(OPENSSH_IPK_BUILD_DIR)/usr/bin/sftp $(OPENSSH_IPK_BUILD_DIR)/build/usr/bin
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
rm -rf $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
|
||||
$(OPENSSH_CLIENT_EX_IPK): $(OPENSSH_IPK_BUILD_DIR)/usr/bin/ssh
|
||||
rm -rf $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL
|
||||
cp $(OPENSSH_IPK_DIR)/openssh.client.ex.control $(OPENSSH_IPK_BUILD_DIR)/build/CONTROL/control
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/usr/bin
|
||||
cp $(OPENSSH_IPK_BUILD_DIR)/usr/bin/ssh-add $(OPENSSH_IPK_BUILD_DIR)/build/usr/bin
|
||||
cp $(OPENSSH_IPK_BUILD_DIR)/usr/bin/ssh-agent $(OPENSSH_IPK_BUILD_DIR)/build/usr/bin
|
||||
cp $(OPENSSH_IPK_BUILD_DIR)/usr/bin/ssh-keyscan $(OPENSSH_IPK_BUILD_DIR)/build/usr/bin
|
||||
mkdir -p $(OPENSSH_IPK_BUILD_DIR)/build/usr/sbin
|
||||
cp $(OPENSSH_IPK_BUILD_DIR)/usr/sbin/ssh-keysign $(OPENSSH_IPK_BUILD_DIR)/build/usr/sbin
|
||||
cd $(BUILD_DIR); $(IPKG_BUILD) $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
rm -rf $(OPENSSH_IPK_BUILD_DIR)/build
|
||||
|
||||
openssh-ipk: $(OPENSSH_SERVER_IPK) $(OPENSSH_CLIENT_IPK) \
|
||||
$(OPENSSH_SFTP_SERVER_IPK) $(OPENSSH_SFTP_CLIENT_IPK) \
|
||||
$(OPENSSH_CLIENT_EX_IPK)
|
||||
|
||||
openssh-source: $(DL_DIR)/$(OPENSSH_SOURCE)
|
||||
|
||||
openssh-clean:
|
||||
$(MAKE) -C $(OPENSSH_DIR) clean
|
||||
|
||||
openssh-dirclean:
|
||||
rm -rf $(OPENSSH_DIR)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user