summaryrefslogtreecommitdiff
path: root/packages/slugtool
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/slugtool
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/slugtool')
-rw-r--r--packages/slugtool/.mtn2git_empty0
-rw-r--r--packages/slugtool/slugtool-native.bb10
-rw-r--r--packages/slugtool/slugtool/.mtn2git_empty0
-rw-r--r--packages/slugtool/slugtool/redboot_typo.patch57
4 files changed, 67 insertions, 0 deletions
diff --git a/packages/slugtool/.mtn2git_empty b/packages/slugtool/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/slugtool/.mtn2git_empty
diff --git a/packages/slugtool/slugtool-native.bb b/packages/slugtool/slugtool-native.bb
index e69de29bb2..6152de8024 100644
--- a/packages/slugtool/slugtool-native.bb
+++ b/packages/slugtool/slugtool-native.bb
@@ -0,0 +1,10 @@
+SECTION = "unknown"
+include slugtool.bb
+inherit native
+
+FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/slugtool-${PV}', '${FILE_DIRNAME}/slugtool', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
+PACKAGES = ""
+
+do_stage () {
+ install -m 0755 slugtool ${STAGING_BINDIR}/
+}
diff --git a/packages/slugtool/slugtool/.mtn2git_empty b/packages/slugtool/slugtool/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/slugtool/slugtool/.mtn2git_empty
diff --git a/packages/slugtool/slugtool/redboot_typo.patch b/packages/slugtool/slugtool/redboot_typo.patch
index e69de29bb2..e74e8fbe42 100644
--- a/packages/slugtool/slugtool/redboot_typo.patch
+++ b/packages/slugtool/slugtool/redboot_typo.patch
@@ -0,0 +1,57 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- slugtool-1.0-r0/slugtool.c~redboot_typo.patch
++++ slugtool-1.0-r0/slugtool.c
+@@ -2,11 +2,11 @@
+
+ #define NULLFILE ((FILE *)NULL)
+
+-#define REDBOOK_START 0
+-#define REDBOOK_LENGTH 0x40000
++#define REDBOOT_START 0
++#define REDBOOT_LENGTH 0x40000
+
+ #define CONF_SECTION_LENGTH 0x20000
+-#define CONF_HEADER (REDBOOK_START + REDBOOK_LENGTH)
++#define CONF_HEADER (REDBOOT_START + REDBOOT_LENGTH)
+ #define CONF_HEADER_LENGTH 0x10
+ #define CONF_START (CONF_HEADER + CONF_HEADER_LENGTH)
+ #define CONF_LENGTH (CONF_SECTION_LENGTH - CONF_HEADER_LENGTH)
+@@ -96,10 +96,10 @@
+ printf ("Unpacking '%s'....\n", filename);
+ fpin = fopen (filename, "r");
+
+- fseek (fpin, REDBOOK_START, SEEK_SET);
+- printf ("\tRedbook....\n");
+- fpout = fopen ("Redbook", "w");
+- writefile (REDBOOK_LENGTH, fpin, fpout);
++ fseek (fpin, REDBOOT_START, SEEK_SET);
++ printf ("\tRedboot....\n");
++ fpout = fopen ("Redboot", "w");
++ writefile (REDBOOT_LENGTH, fpin, fpout);
+ fclose (fpout);
+
+ printf ("\tReading SysConf Header....\n");
+@@ -169,14 +169,14 @@
+
+ fpout = fopen (filename, "r+");
+
+- printf ("\tRedbook....\n");
+- fpin = fopen ("Redbook", "r");
++ printf ("\tRedboot....\n");
++ fpin = fopen ("Redboot", "r");
+ if (fpin == NULLFILE) {
+- printf ("File 'Redbook' not found!\n");
++ printf ("File 'Redboot' not found!\n");
+ usage ();
+ }
+- fseek (fpout, REDBOOK_START, SEEK_SET);
+- writefile (REDBOOK_LENGTH, fpin, fpout);
++ fseek (fpout, REDBOOT_START, SEEK_SET);
++ writefile (REDBOOT_LENGTH, fpin, fpout);
+ fclose (fpin);
+
+ printf ("\tSysConf....\n");