[Armadeus-commitlog] armadeus branch, master, updated. armadeus-4.0-2477-g5ba623f
Brought to you by:
sszy
|
From: Julien B a. A. <ar...@us...> - 2011-08-10 15:15:12
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 5ba623f5aa2bf7ee8b53e4580df9682b277ab3a7 (commit)
from 86ad07b0d431e1451f5a31679c1f50b4bb1a963a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5ba623f5aa2bf7ee8b53e4580df9682b277ab3a7
Author: Julien Boibessot <jul...@ar...>
Date: Wed Aug 10 17:06:35 2011 +0200
[BUILDROOT] Cleanup: remove useless files in buildroot/target/device/armadeus/linux/
-----------------------------------------------------------------------
Summary of changes:
buildroot/target/device/armadeus/linux/depmod.pl | 237 --------------------
.../armadeus/linux/kernel-patches/copy_patches.sh | 40 ----
.../armadeus/linux/kernel-patches/move_patches.sh | 56 -----
3 files changed, 0 insertions(+), 333 deletions(-)
delete mode 100755 buildroot/target/device/armadeus/linux/depmod.pl
delete mode 100755 buildroot/target/device/armadeus/linux/kernel-patches/copy_patches.sh
delete mode 100755 buildroot/target/device/armadeus/linux/kernel-patches/move_patches.sh
delete mode 100644 buildroot/target/device/armadeus/linux/linux.mk
diff --git a/buildroot/target/device/armadeus/linux/depmod.pl b/buildroot/target/device/armadeus/linux/depmod.pl
deleted file mode 100755
index 5e8d5f3..0000000
--- a/buildroot/target/device/armadeus/linux/depmod.pl
+++ /dev/null
@@ -1,237 +0,0 @@
-#!/usr/bin/perl -w
-# vi: set ts=4:
-# Copyright (c) 2001 David Schleef <ds...@sc...>
-# Copyright (c) 2001 Erik Andersen <and...@co...>
-# Copyright (c) 2001 Stuart Hughes <st...@li...>
-# Copyright (c) 2002 Steven J. Hill <sh...@br...>
-# This program is free software; you can redistribute it and/or modify it
-# under the same terms as Perl itself.
-
-# TODO -- use strict mode...
-#use strict;
-
-use Getopt::Long;
-use File::Find;
-
-
-# Set up some default values
-
-my $basedir="";
-my $kernel;
-my $kernelsyms;
-my $stdout=0;
-my $verbose=0;
-
-
-# get command-line options
-
-my %opt;
-
-GetOptions(
- \%opt,
- "help|h",
- "basedir|b=s" => \$basedir,
- "kernel|k=s" => \$kernel,
- "kernelsyms|F=s" => \$kernelsyms,
- "stdout|n" => \$stdout,
- "verbose|v" => \$verbose,
-);
-
-if (defined $opt{help}) {
- print
- " $0 [OPTION]... [basedir]\n",
- " -h --help\t\tShow this help screen\n",
- " -b --basedir\tModules base directory (defaults to /lib/modules)\n",
- " -k --kernel\tKernel binary for the target\n",
- " -F --kernelsyms\tKernel symbol file\n",
- " -n --stdout\tWrite to stdout instead of <basedir>/modules.dep\n",
- " -v --verbose\tPrint out lots of debugging stuff\n",
- ;
- exit 1;
-}
-
-if($basedir !~ m-/lib/modules-) {
- warn "WARNING: base directory does not match ..../lib/modules\n";
-}
-
-# Find the list of .o files living under $basedir
-#if ($verbose) { printf "Locating all modules\n"; }
-my($ofile) = "";
-my($file) = "";
-my(@liblist) = ();
-find sub {
- if ( -f $_ && ! -d $_ ) {
- $file = $File::Find::name;
- if ( $file =~ /.o$/ ) {
- push(@liblist, $file);
- if ($verbose) { printf "$file\n"; }
- }
- }
-}, $basedir;
-if ($verbose) { printf "Finished locating modules\n"; }
-
-foreach $obj ( @liblist, $kernel ){
- # turn the input file name into a target tag name
- # vmlinux is a special that is only used to resolve symbols
- if($obj =~ /vmlinux/) {
- $tgtname = "vmlinux";
- } else {
- ($tgtname) = $obj =~ m-(/lib/modules/.*)$-;
- }
-
- warn "MODULE = $tgtname\n" if $verbose;
-
- # get a list of symbols
- @output=`nm $obj`;
- $ksymtab=grep m/ __ksymtab/, @output;
-
- # gather the exported symbols
- if($ksymtab){
- # explicitly exported
- foreach ( @output ) {
- / __ksymtab_(.*)$/ and do {
- warn "sym = $1\n" if $verbose;
- $exp->{$1} = $tgtname;
- };
- }
- } else {
- # exporting all symbols
- foreach ( @output) {
- / [ABCDGRST] (.*)$/ and do {
- warn "syma = $1\n" if $verbose;
- $exp->{$1} = $tgtname;
- };
- }
- }
- # gather the unresolved symbols
- foreach ( @output ) {
- !/ __this_module/ && / U (.*)$/ and do {
- warn "und = $1\n" if $verbose;
- push @{$dep->{$tgtname}}, $1;
- };
- }
-}
-
-
-# reduce dependancies: remove unresolvable and resolved from vmlinux
-# remove duplicates
-foreach $module (keys %$dep) {
- $mod->{$module} = {};
- foreach (@{$dep->{$module}}) {
- if( $exp->{$_} ) {
- warn "resolved symbol $_ in file $exp->{$_}\n" if $verbose;
- next if $exp->{$_} =~ /vmlinux/;
- $mod->{$module}{$exp->{$_}} = 1;
- } else {
- warn "unresolved symbol $_ in file $module\n";
- }
- }
-}
-
-# resolve the dependancies for each module
-if ($stdout == 1) {
- foreach $module ( keys %$mod ) {
- print "$module:\t";
- @sorted = sort bydep keys %{$mod->{$module}};
- print join(" \\\n\t",@sorted);
- print "\n\n";
- }
-} else {
- open(OFILE, ">$basedir/modules.dep");
- foreach $module ( keys %$mod ) {
- print OFILE "$module:\t";
- @sorted = sort bydep keys %{$mod->{$module}};
- print OFILE join(" \\\n\t",@sorted);
- print OFILE "\n\n";
- }
-}
-
-
-sub bydep
-{
- foreach my $f ( keys %{$mod->{$b}} ) {
- if($f eq $a) {
- return 1;
- }
- }
- return -1;
-}
-
-
-
-__END__
-
-=head1 NAME
-
-depmod.pl - a cross platform script to generate kernel module dependency
- lists which can then be used by modprobe.
-
-=head1 SYNOPSIS
-
-depmod.pl [OPTION]... [basedir]...
-
-Example:
-
- depmod.pl -F linux/System.map target/lib/modules
-
-=head1 DESCRIPTION
-
-The purpose of this script is to automagically generate a list of of kernel
-module dependancies. This script produces dependancy lists that should be
-identical to the depmod program from the modutils package. Unlike the depmod
-binary, however, depmod.pl is designed to be run on your host system, not
-on your target system.
-
-This script was written by David Schleef <ds...@sc...> to be used in
-conjunction with the BusyBox modprobe applet.
-
-=head1 OPTIONS
-
-=over 4
-
-=item B<-h --help>
-
-This displays the help message.
-
-=item B<-b --basedir>
-
-The base directory uner which the target's modules will be found. This
-defaults to the /lib/modules directory.
-
-=item B<-k --kernel>
-
-Kernel binary for the target. You must either supply a kernel binary
-or a kernel symbol file (using the -F option).
-
-=item B<-F --kernelsyms>
-
-Kernel symbol file for the target. You must supply either a kernel symbol file
-kernel binary for the target (using the -k option).
-
-=item B<-n --stdout>
-
-Write to stdout instead of modules.dep. This is currently hard coded...
-kernel binary for the target (using the -k option).
-
-=item B<--verbose>
-
-Be verbose (not implemented)
-
-=back
-
-=head1 COPYRIGHT
-
-Copyright (c) 2001 David Schleef <ds...@sc...>
-Copyright (c) 2001 Erik Andersen <and...@co...>
-Copyright (c) 2001 Stuart Hughes <st...@li...>
-This program is free software; you can redistribute it and/or modify it
-under the same terms as Perl itself.
-
-=head1 AUTHOR
-
-David Schleef <ds...@sc...>
-
-=cut
-
-# $Id: depmod.pl,v 1.1 2004/12/08 01:34:41 andersen Exp $
-
diff --git a/buildroot/target/device/armadeus/linux/kernel-patches/copy_patches.sh b/buildroot/target/device/armadeus/linux/kernel-patches/copy_patches.sh
deleted file mode 100755
index 2bb8e63..0000000
--- a/buildroot/target/device/armadeus/linux/kernel-patches/copy_patches.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-show_usage()
-{
- echo
- echo "Copy existing patches and rename them for new version:"
- echo " $0 old_version_dir new_version_dir"
- echo
- exit 1
-}
-
-if [ $# != 2 ]; then
- show_usage
-fi
-
-if [ ! -d "$1" ]; then
- echo "$1 source directory doesn't exist"
- show_usage
-fi
-
-if [ -d "$2" ]; then
- echo "$2 directory is already existing !!"
- show_usage
-fi
-
-# Copy dir
-cp -r $1 $2
-
-# Rename patches
-FILES=`ls $1 | grep $1`
-for patches in $FILES; do
- new_name=`echo $patches | sed -e s/$1/$2/`
- #echo "renaming $1/$patches in $2/$new_name"
- mv $2/$patches $2/$new_name
-done
-rm -rf $2/.svn
-rm -rf $2/.git
-
-# Bye bye
-exit 0
diff --git a/buildroot/target/device/armadeus/linux/kernel-patches/move_patches.sh b/buildroot/target/device/armadeus/linux/kernel-patches/move_patches.sh
deleted file mode 100755
index 4dd6dc2..0000000
--- a/buildroot/target/device/armadeus/linux/kernel-patches/move_patches.sh
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/bash
-
-show_usage()
-{
- echo
- echo "Move (svn mv) patches from given version dir to new version:"
- echo " $0 old_version_dir new_version"
- echo
- exit 1
-}
-
-if [ $# != 2 ]; then
- show_usage
-fi
-
-if [ ! -d "$1" ]; then
- echo "$1 source directory doesn't exist"
- show_usage
-fi
-
-if [ -d "$2" ]; then
- echo "$2 directory is already existing !!"
- show_usage
-fi
-
-svn mv $1 $2
-
-echo "********"
-echo "I'm now going to commit the renaming of $1 to $2 (first step of the patches moving)"
-echo "ARE YOU SURE YOU WANT TO PROCEED ??"
-echo " y/n"
-read answer
-
-if [ "$answer" != "y" ]; then
- svn revert $2
- svn revert -R $1
- rm -rf $2
- echo " Nothing changed !!"
- exit 1
-fi
-
-svn commit -m "[LINUX] Moves $1 patches to $2 (first step)"
-
-# Rename patches
-PATCHES=`ls $2 | grep $1`
-for patch in $PATCHES; do
- new_name=`echo $patch | sed -e s/$1/$2/`
- echo "renaming $1/$patch in $2/$new_name"
- svn mv $2/$patch $2/$new_name
-done
-
-echo "Don't forget to move Linux configuration in Buildroot too !!"
-
-# Bye bye
-exit 0
-
diff --git a/buildroot/target/device/armadeus/linux/linux.mk b/buildroot/target/device/armadeus/linux/linux.mk
deleted file mode 100644
index e69de29..0000000
hooks/post-receive
--
armadeus
|