summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/linux/board/board.c22
-rw-r--r--arch/linux/board/clock.c22
-rw-r--r--arch/linux/board/console.c22
-rw-r--r--arch/linux/board/hostfile.c22
-rw-r--r--arch/linux/lib/common.c34
-rw-r--r--arch/linux/lib/tap.c22
-rw-r--r--commands/cat.c22
-rw-r--r--commands/cd.c22
-rw-r--r--commands/clear.c22
-rw-r--r--commands/cp.c22
-rw-r--r--commands/echo.c22
-rw-r--r--commands/edit.c22
-rw-r--r--commands/environment.c22
-rw-r--r--commands/exec.c22
-rw-r--r--commands/ls.c21
-rw-r--r--commands/meminfo.c21
-rw-r--r--commands/mkdir.c22
-rw-r--r--commands/mount.c22
-rw-r--r--commands/partition.c23
-rw-r--r--commands/pwd.c21
-rw-r--r--commands/reginfo.c22
-rw-r--r--commands/reset.c22
-rw-r--r--commands/rm.c21
-rw-r--r--commands/sleep.c22
-rw-r--r--commands/test.c24
-rw-r--r--commands/umount.c21
-rw-r--r--common/clock.c26
-rw-r--r--common/env.c22
-rw-r--r--common/misc.c21
-rw-r--r--drivers/net/miiphy.c22
-rw-r--r--drivers/net/tap.c22
-rw-r--r--drivers/serial/linux_console.c22
-rw-r--r--fs/devfs.c22
-rw-r--r--fs/fs.c22
-rw-r--r--fs/ramfs.c22
-rw-r--r--lib/driver.c22
-rw-r--r--lib/misc.c21
-rw-r--r--lib/parameter.c22
-rw-r--r--lib/readkey.c23
-rw-r--r--lib/xfuncs.c23
-rw-r--r--scripts/ubootenv.c22
41 files changed, 913 insertions, 3 deletions
diff --git a/arch/linux/board/board.c b/arch/linux/board/board.c
index f214d246eb..f7cde99537 100644
--- a/arch/linux/board/board.c
+++ b/arch/linux/board/board.c
@@ -1,3 +1,25 @@
+/*
+ * board.c
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <driver.h>
#include <malloc.h>
diff --git a/arch/linux/board/clock.c b/arch/linux/board/clock.c
index 556e69e318..17409eca2a 100644
--- a/arch/linux/board/clock.c
+++ b/arch/linux/board/clock.c
@@ -1,3 +1,25 @@
+/*
+ * clock.c - wrapper between a U-Boot clocksource and linux
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <init.h>
#include <clock.h>
diff --git a/arch/linux/board/console.c b/arch/linux/board/console.c
index d8b45f9b3a..b6fa9eb97a 100644
--- a/arch/linux/board/console.c
+++ b/arch/linux/board/console.c
@@ -1,3 +1,25 @@
+/*
+ * console.c - register a console device
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <driver.h>
#include <asm/arch/linux.h>
diff --git a/arch/linux/board/hostfile.c b/arch/linux/board/hostfile.c
index 5618d78d96..af8b82ca19 100644
--- a/arch/linux/board/hostfile.c
+++ b/arch/linux/board/hostfile.c
@@ -1,3 +1,25 @@
+/*
+ * hostfile.c - use files from the host to simalute U-Boot devices
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <driver.h>
#include <malloc.h>
diff --git a/arch/linux/lib/common.c b/arch/linux/lib/common.c
index 99cbc98fc1..6416a54381 100644
--- a/arch/linux/lib/common.c
+++ b/arch/linux/lib/common.c
@@ -1,4 +1,29 @@
-
+/*
+ * common.c - common wrapper functions between U-Boot and the host
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
+/*
+ * These are host includes. Never include any U-Boot header
+ * files here...
+ */
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
@@ -12,11 +37,14 @@
#include <string.h>
#include <libgen.h>
#include <sys/mman.h>
-#include <asm/arch/linux.h>
-#include <asm/arch/hostfile.h>
#include <errno.h>
#include <signal.h>
#include <sys/select.h>
+/*
+ * ...except the ones needed to connect with U-Boot
+ */
+#include <asm/arch/linux.h>
+#include <asm/arch/hostfile.h>
static struct termios term_orig, term_vi;
static char erase_char; /* the users erase character */
diff --git a/arch/linux/lib/tap.c b/arch/linux/lib/tap.c
index eba28b3f7b..b620612626 100644
--- a/arch/linux/lib/tap.c
+++ b/arch/linux/lib/tap.c
@@ -1,3 +1,25 @@
+/*
+ * tap.c - host side functions for tap driver
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
diff --git a/commands/cat.c b/commands/cat.c
index 72baae2e5e..b1b06e8355 100644
--- a/commands/cat.c
+++ b/commands/cat.c
@@ -1,3 +1,25 @@
+/*
+ * cat.c - conacatenate files
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <fs.h>
diff --git a/commands/cd.c b/commands/cd.c
index 0a45cbb63d..6b4073d2ea 100644
--- a/commands/cd.c
+++ b/commands/cd.c
@@ -1,3 +1,25 @@
+/*
+ * cd.c - change working directory
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <fs.h>
diff --git a/commands/clear.c b/commands/clear.c
index 6fa9dbd763..f041d39375 100644
--- a/commands/clear.c
+++ b/commands/clear.c
@@ -1,3 +1,25 @@
+/*
+ * clear.c - Clear the screen
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <readkey.h>
diff --git a/commands/cp.c b/commands/cp.c
index d014cd4a0b..a8a6790499 100644
--- a/commands/cp.c
+++ b/commands/cp.c
@@ -1,3 +1,25 @@
+/*
+ * cp.c - copy files
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <fs.h>
diff --git a/commands/echo.c b/commands/echo.c
index 1314f2d971..b8e59e760f 100644
--- a/commands/echo.c
+++ b/commands/echo.c
@@ -1,3 +1,25 @@
+/*
+ * echo.c - echo arguments to stdout or into a file
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <fs.h>
diff --git a/commands/edit.c b/commands/edit.c
index 902bce28fe..fae2bd36da 100644
--- a/commands/edit.c
+++ b/commands/edit.c
@@ -1,3 +1,25 @@
+/*
+ * edit.c - A tiny editor implementation
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <malloc.h>
diff --git a/commands/environment.c b/commands/environment.c
index 477c099521..5e22f1760d 100644
--- a/commands/environment.c
+++ b/commands/environment.c
@@ -1,3 +1,25 @@
+/*
+ * environment.c - simple archive implementation
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#ifdef __U_BOOT__
#include <common.h>
#include <command.h>
diff --git a/commands/exec.c b/commands/exec.c
index 2cba507519..032a8f82bf 100644
--- a/commands/exec.c
+++ b/commands/exec.c
@@ -1,3 +1,25 @@
+/*
+ * exec.c - execute scripts
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <fs.h>
diff --git a/commands/ls.c b/commands/ls.c
index 7cdbbb790e..3cf7246d09 100644
--- a/commands/ls.c
+++ b/commands/ls.c
@@ -1,3 +1,24 @@
+/*
+ * ls.c - list files and directories
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
#include <common.h>
#include <command.h>
#include <fs.h>
diff --git a/commands/meminfo.c b/commands/meminfo.c
index 16b7a8f4cb..ed277ecc80 100644
--- a/commands/meminfo.c
+++ b/commands/meminfo.c
@@ -1,3 +1,24 @@
+/*
+ * meminfo.c - show information about memory usage
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
#include <common.h>
#include <command.h>
diff --git a/commands/mkdir.c b/commands/mkdir.c
index 3be742a942..d1f515e47f 100644
--- a/commands/mkdir.c
+++ b/commands/mkdir.c
@@ -1,3 +1,25 @@
+/*
+ * mkdir.c - create directories
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <fs.h>
diff --git a/commands/mount.c b/commands/mount.c
index e4c567357b..eecee33419 100644
--- a/commands/mount.c
+++ b/commands/mount.c
@@ -1,3 +1,25 @@
+/*
+ * mount.c - mount devices
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <fs.h>
diff --git a/commands/partition.c b/commands/partition.c
index de85048f41..1674488bf6 100644
--- a/commands/partition.c
+++ b/commands/partition.c
@@ -1,3 +1,26 @@
+/*
+ * partition.c - parse a linux-like mtd partition definition and register
+ * the new partitions
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <driver.h>
diff --git a/commands/pwd.c b/commands/pwd.c
index a0aa4b70f6..84632244f9 100644
--- a/commands/pwd.c
+++ b/commands/pwd.c
@@ -1,3 +1,24 @@
+/*
+ * pwd.c - print working directory
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
#include <common.h>
#include <command.h>
#include <fs.h>
diff --git a/commands/reginfo.c b/commands/reginfo.c
index 856beaed9f..9bcd8be642 100644
--- a/commands/reginfo.c
+++ b/commands/reginfo.c
@@ -1,3 +1,25 @@
+/*
+ * reginfo.c - print information about SoC specifc registers
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
diff --git a/commands/reset.c b/commands/reset.c
index 25e34d681c..a682f8c9d2 100644
--- a/commands/reset.c
+++ b/commands/reset.c
@@ -1,3 +1,25 @@
+/*
+ * reset.c - reset the cpu
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
diff --git a/commands/rm.c b/commands/rm.c
index b586520083..20ff813c3b 100644
--- a/commands/rm.c
+++ b/commands/rm.c
@@ -1,3 +1,24 @@
+/*
+ * rm.c - remove files
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
#include <common.h>
#include <command.h>
#include <fs.h>
diff --git a/commands/sleep.c b/commands/sleep.c
index 99afc5f9ba..675dc0af58 100644
--- a/commands/sleep.c
+++ b/commands/sleep.c
@@ -1,3 +1,25 @@
+/*
+ * sleep.c - delay execution
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <clock.h>
diff --git a/commands/test.c b/commands/test.c
index 8fc2e4a86c..c918c43ac0 100644
--- a/commands/test.c
+++ b/commands/test.c
@@ -1,3 +1,27 @@
+/*
+ * test.c - sh like test
+ *
+ * Originally based on U-Boots do_test, but mostly reimplemented
+ * for smaller binary size
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
#include <common.h>
#include <command.h>
diff --git a/commands/umount.c b/commands/umount.c
index 8f4a4b445e..e56e12eae6 100644
--- a/commands/umount.c
+++ b/commands/umount.c
@@ -1,3 +1,24 @@
+/*
+ * umount.c - umount filesystems
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
#include <common.h>
#include <command.h>
#include <fs.h>
diff --git a/common/clock.c b/common/clock.c
index 636d30ba21..fb2e0e43ab 100644
--- a/common/clock.c
+++ b/common/clock.c
@@ -1,3 +1,29 @@
+/*
+ * clock.c - generic clocksource implementation
+ *
+ * This file contains the clocksource implementation from the Linux
+ * kernel originally by John Stultz
+ *
+ * Copyright (C) 2004, 2005 IBM, John Stultz (johnstul@us.ibm.com)
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <asm-generic/div64.h>
#include <clock.h>
diff --git a/common/env.c b/common/env.c
index 70770c037d..4bd0deee46 100644
--- a/common/env.c
+++ b/common/env.c
@@ -1,3 +1,25 @@
+/*
+ * env.c - environment variables storage
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <driver.h>
diff --git a/common/misc.c b/common/misc.c
index 9485b17ec5..6171598c14 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -1,3 +1,24 @@
+/*
+ * (C) Copyright 2000-2003
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <mem_malloc.h>
#include <errno.h>
diff --git a/drivers/net/miiphy.c b/drivers/net/miiphy.c
index e9652da4c4..fb5f5d3881 100644
--- a/drivers/net/miiphy.c
+++ b/drivers/net/miiphy.c
@@ -1,3 +1,25 @@
+/*
+ * miiphy.c - generic phy abstraction
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <driver.h>
#include <init.h>
diff --git a/drivers/net/tap.c b/drivers/net/tap.c
index f7f23a5268..742122a70c 100644
--- a/drivers/net/tap.c
+++ b/drivers/net/tap.c
@@ -1,3 +1,25 @@
+/*
+ * tap.c - A tap ethernet driver for U-Boot
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <driver.h>
#include <malloc.h>
diff --git a/drivers/serial/linux_console.c b/drivers/serial/linux_console.c
index df826284cc..3815b0778b 100644
--- a/drivers/serial/linux_console.c
+++ b/drivers/serial/linux_console.c
@@ -1,3 +1,25 @@
+/*
+ * linux_console.c - Use stdin/stdout as a console device
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <driver.h>
#include <init.h>
diff --git a/fs/devfs.c b/fs/devfs.c
index 00be6a4c19..ad84adcee5 100644
--- a/fs/devfs.c
+++ b/fs/devfs.c
@@ -1,3 +1,25 @@
+/*
+ * devfs.c - a device file system for U-Boot
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <driver.h>
#include <init.h>
diff --git a/fs/fs.c b/fs/fs.c
index 2472649617..51e59309d8 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -1,3 +1,25 @@
+/*
+ * fs.c - posix like file functions
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <fs.h>
#include <driver.h>
diff --git a/fs/ramfs.c b/fs/ramfs.c
index d0b60bd20e..80bb951e81 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -1,3 +1,25 @@
+/*
+ * ramfs.c - a malloc based filesystem
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <driver.h>
#include <init.h>
diff --git a/lib/driver.c b/lib/driver.c
index 227d06ff6b..386b4328f2 100644
--- a/lib/driver.c
+++ b/lib/driver.c
@@ -1,3 +1,25 @@
+/*
+ * driver.c - U-Boot driver model
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <command.h>
#include <driver.h>
diff --git a/lib/misc.c b/lib/misc.c
index 5ba9a0bbfa..b1266e4ba9 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -1,3 +1,24 @@
+/*
+ * misc.c - various assorted functions
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
#include <common.h>
#include <malloc.h>
diff --git a/lib/parameter.c b/lib/parameter.c
index bf5d87ecf5..d0945f6ffe 100644
--- a/lib/parameter.c
+++ b/lib/parameter.c
@@ -1,3 +1,25 @@
+/*
+ * parameter.c - device parameters
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <common.h>
#include <param.h>
#include <errno.h>
diff --git a/lib/readkey.c b/lib/readkey.c
index d4e86ed3eb..acfb0097df 100644
--- a/lib/readkey.c
+++ b/lib/readkey.c
@@ -1,3 +1,26 @@
+/*
+ * readkey.c - read keystrokes and decode standard escape sequences
+ *
+ * Partly based on busybox vi
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
#include <common.h>
#include <linux/ctype.h>
diff --git a/lib/xfuncs.c b/lib/xfuncs.c
index 12b12e28f4..2a2ec75979 100644
--- a/lib/xfuncs.c
+++ b/lib/xfuncs.c
@@ -1,3 +1,26 @@
+/*
+ * xfuncs.c - safe malloc funcions
+ *
+ * based on busybox
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
#include <common.h>
#include <malloc.h>
diff --git a/scripts/ubootenv.c b/scripts/ubootenv.c
index 80f2cdbc56..af5efd0b54 100644
--- a/scripts/ubootenv.c
+++ b/scripts/ubootenv.c
@@ -1,3 +1,25 @@
+/*
+ * ubootenv.c - generate or read a U-Boot environment archive
+ *
+ * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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
+ */
+
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>