Rob Landley
6ced427a6d
Try to make a "type-punned pointer" warning go away for somebody on the
...
buildroot list.
2006-08-03 20:39:59 +00:00
Rob Landley
081e38483e
Remove xcalloc() and convert its callers to xzalloc(). About half of them
...
were using "1" as one of the arguments anyway, and as for the rest a multiply
and a push isn't noticeably bigger than pushing two arguments on the stack.
2006-08-03 20:07:35 +00:00
Rob Landley
86b4d64aa3
These should have been part of 15767 too.
2006-08-03 17:58:17 +00:00
Rob Landley
d921b2ecc0
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
...
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only
had one user), clean up lots of #includes... General cleanup pass. What I've
been doing for the last couple days.
And it conflicts! I've removed httpd.c from this checkin due to somebody else
touching that file. It builds for me. I have to catch a bus. (Now you know
why I'm looking forward to Mercurial.)
2006-08-03 15:41:12 +00:00
Rob Landley
5ebeb3ec56
Somebody on the buildroot list hit:
...
insmod.c:515:10: extra tokens at end of #ident directive
2006-07-25 20:37:45 +00:00
Rob Landley
bf30c69a38
Patch from Yann Morin to fix bug 941, underscores in module aliases.
2006-07-20 17:36:18 +00:00
Rob Landley
3b0cfb40a5
Patch from Yann Morin to look for modules.conf in the right place on 2.6.
...
Fixes http://bugs.busybox.net/view.php?id=942
2006-07-19 21:33:42 +00:00
Mike Frysinger
135cee3741
Jean Wolter writes: modprobe checks, whether a module is already loaded. The function used for this currently always returns 0.
2006-06-21 23:03:37 +00:00
Rob Landley
d760560c52
Attempt at fixing bug 836, vaguely based on patch from somebody named
...
clausmuus, forwarded to me by Yann E. Morin.
2006-06-14 01:51:16 +00:00
Rob Landley
c7ddefc062
Attempt at fixing bug 815 by upgrading bb_spawn() so that builtins are at
...
the start of the path. (This should be under the same config option as
the standalone shell, but right now that's buried in the shell menu.)
Also add the ability to specify CONFIG_BUSYBOX_EXEC_PATH with /proc/self/exe
as an overrideable default.
2006-06-14 01:24:33 +00:00
Mike Frysinger
280dae74b0
import support for microblaze relocations from uClinux-dist
2006-06-06 06:30:32 +00:00
Mike Frysinger
75c6b7962d
fix from uClinux-dist for proper exit status if reading /proc/modules failed
2006-06-06 06:19:19 +00:00
Mike Frysinger
b306cb767f
merge blackfin/microblaze from uClinux-dist
2006-06-06 06:15:52 +00:00
Bernhard Reutner-Fischer
deda6a5c0d
- move #include busybox.h to the very top so we pull in the config
...
and eventual platform specific includes in early.
- remove two supposedly superfluous newlines from ...error_msg() in modprobe
and use shorter boilerplate while at it.
2006-06-03 19:35:15 +00:00
Bernhard Reutner-Fischer
2c351a8f98
- patch from Yann E. Morin: makes modprobe understand shell patterns
...
(especially '*') in module aliases, such as:
"alias usb:v0582p0075d*dc*dsc*dp*ic*isc*ip* snd_usb_audio"
Fixes bug #889
842162 10244 645924 1498330 16dcda busybox.old-4.1.20060603-1948
842178 10244 645924 1498346 16dcea busybox.new-4.1.20060603-1948
2006-06-03 19:08:49 +00:00
Mike Frysinger
fa6c4844b2
fix spelling mistakes
2006-05-26 01:48:17 +00:00
Bernhard Reutner-Fischer
e2e56c7c41
- single KERNEL_VERSION(a,b,c) macro in platform.h
...
- rename get_kernel_revision() to get_linux_version_code
from Robert P. J. Day
2006-05-19 11:54:02 +00:00
Bernhard Reutner-Fischer
e3c150bc67
- cleanup memory if opening aliases failed and cleanup was requested.
2006-05-19 11:24:28 +00:00
Rob Landley
3afb070e6d
Avoid a memory leak pointed out by Lucas C. Villa Real.
2006-05-18 20:41:43 +00:00
Mike Frysinger
39440e520c
pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the mailing list
2006-05-13 02:33:09 +00:00
Rob Landley
a389651115
Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many bytes
...
as the old optimization did (actually does slightly better under gcc 4.0), and
simplifies the code.
2006-05-07 20:20:34 +00:00
Rob Landley
2ec922eed5
Patch from Robert P Day: let menuconfig indent stuff for us, we don't have
...
to do it in Config.in.
2006-04-13 23:22:16 +00:00
Bernhard Reutner-Fischer
c2cb0f32b4
- patch from Denis Vlasenko to add and use bb_xopen3()
2006-04-13 12:45:04 +00:00
Rob Landley
72615752db
Modprobe update from Ignacio García Pérez, updating support for modprobe.conf.
2006-04-10 16:09:52 +00:00
Bernhard Reutner-Fischer
101a470068
- make append_option and multiconvert static.
2006-04-03 15:46:14 +00:00
Bernhard Reutner-Fischer
e375e8c732
- we only need obj_gpl_license if ENABLE_FEATURE_CHECK_TAINTED_MODULE is set
2006-03-29 18:57:09 +00:00
Rob Landley
0bafd47e84
Stephane Billiart found an endianness bug in insmod.
2006-03-25 02:49:28 +00:00
Bernhard Reutner-Fischer
df10094870
- revert back to r14406
2006-03-13 19:04:00 +00:00
Rob Landley
bc68cd14cc
Patch from Denis Vlasenko turning static const int (which gets emitted into
...
the busybox binary) into enums (which don't).
2006-03-10 19:22:06 +00:00
Bernhard Reutner-Fischer
07a79e75f5
- backout using features which are not available with the previous stable
...
version of make (3.71.1).
2006-03-09 09:03:37 +00:00
Rob Landley
dfba741457
Robert P. Day removed 8 gazillion occurrences of "extern" on function
...
definitions. (That should only be on prototypes.)
2006-03-06 20:47:33 +00:00
Rob Landley
688ed0d760
Patch from Robert P. Day, moving byte order checks to use platform.h macros.
2006-03-04 22:40:25 +00:00
Bernhard Reutner-Fischer
022eb311d5
- use absolute path for top_builddir and top_srcdir.
...
Fixes make trying to include the very same file in an endless loop.
2006-03-02 17:33:25 +00:00
Bernhard Reutner-Fischer
5d26126b9e
- fixes parallel builds (make -j)
...
- use less resources for the buildsystem itself
2006-03-01 22:54:48 +00:00
Rob Landley
e7c43b66d7
Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)
...
from before "if(x) free(x)".
2006-03-01 16:39:45 +00:00
Rob Landley
d6e14d8bee
Don't build directory libraries unless we're building an applet that needs it.
...
Cherry-picked from Devin Bayer's big MacOS X patch.
2006-02-21 19:11:35 +00:00
Rob Landley
b4ec339ac2
Update comment.
2006-02-20 14:39:55 +00:00
Mike Frysinger
ebee0e7705
fix building on ppc64
2006-02-18 06:14:31 +00:00
"Vladimir N. Oleynik"
4fc92206ed
destroy bug 679, use getopt_ulflags with new feature: usage option. Removed two strdup
2006-02-02 14:48:54 +00:00
Mike Frysinger
b38673fb9f
make the build system puuuuuuuuuuurty
2006-02-02 01:41:53 +00:00
Eric Andersen
3496fdc9a5
hopefully the last of the annoying signed/unsigned and mixed type errors
2006-01-30 23:09:20 +00:00
Tim Riker
c1ef7bdd8d
just whitespace
2006-01-25 00:08:53 +00:00
Bernhard Reutner-Fischer
7ca61b6f33
- shared libbusybox.
...
- IMA compilation option (aka IPO, IPA,..)
Please holler if i broke something..
2006-01-15 14:04:57 +00:00
Mike Frysinger
f982d86ba7
import nios2 support from microtronix
2006-01-04 00:11:26 +00:00
Mike Frysinger
705fad2964
just use bb_xfopen()
2006-01-03 23:59:17 +00:00
Rob Landley
199501f2a0
I screwed up the last commit: if dt is null when ENABLE_MULTIPLE_OPTIONS is
...
off, we'd dereference the null. Oops.
2005-12-16 06:18:06 +00:00
Rob Landley
ae50c6d8ee
Better use of the ENABLE guards.
2005-12-15 07:42:13 +00:00
Bernhard Reutner-Fischer
17d355cb3c
- remove warning (thanks Yann E. MORIN) and switch to ENABLE_
...
- typo: s/begining/beginning/g
2005-12-14 08:32:44 +00:00
Rob Landley
3858bf18d5
Minor fix: if(CONFIG) breaks the build when that CONFIG is disabled, it has
...
to be if(ENABLE). (Make allbareconfig is a good testing thing.)
2005-12-13 04:06:22 +00:00
Rob Landley
e919096271
Patch from Yann E. Morin, something to do with bugs 276 and 272.
2005-12-12 19:38:44 +00:00
Rob Landley
37310ea057
Change CONFIG_MODPROBE_MULTIPOLE_OPTIONS to
...
CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS.
2005-12-12 04:28:17 +00:00
Rob Landley
762bb626c7
Patch from Yann E. Morin to reorganize module config options.
2005-12-11 20:20:05 +00:00
Rob Landley
999af20d3e
Make insmod quiet by default (patch from Yann E. Morin).
2005-12-11 20:14:12 +00:00
Rob Landley
82327f4be4
Patch from Yann E. Morin to make rmmod report failure properly.
2005-12-11 19:46:50 +00:00
Rob Landley
07fffc5add
uClibc can't handle anonymous MAP_SHARED. Since we're treating it as
...
read only data anyway, MAP_PRIVATE shouldn't make a major difference.
2005-12-07 22:45:28 +00:00
"Vladimir N. Oleynik"
8c44f0179d
use libbb/get_kernel_revision(), reduce stack usage, add loses -w -f option for getopt, convert to bb_getopt_ulflags(), reduce memory usage - xmalloc to bb_common_bufsiz1, size reduce over 200 bytes
2005-11-28 15:54:22 +00:00
Rob Landley
52219874fe
Patch from Cristian Ionescu-Idbohrn to deal with _ vs - better.
2005-11-27 19:01:53 +00:00
Rob Landley
79e1cab0d1
Yann Morin's modprobe multiple options patch. There's more work to be done,
...
but let's ship 1.1 first...
2005-11-15 00:08:29 +00:00
"Vladimir N. Oleynik"
1f0262bcdb
another more const
2005-10-20 11:17:48 +00:00
Mike Frysinger
c31fcbbaf3
remove debug warning
2005-10-02 07:54:07 +00:00
Mike Frysinger
cb1ce7b974
reorder arches into alphabetical order
2005-10-02 07:50:49 +00:00
Mike Frysinger
fa17c4b949
fixup whitespace
2005-10-02 07:14:06 +00:00
Mike Frysinger
86a4bfb30a
remove all Elf32 hardcodes to make sure the elf handling is 64bit clean
2005-10-02 07:02:16 +00:00
Mike Frysinger
91fbdac6ab
svdavidson writes in Bug 459: add support for x86_64 relocations from modutils 2.4.27
2005-10-02 06:44:39 +00:00
"Vladimir N. Oleynik"
39a841cecf
change interface to bb_xasprintf() - more perfect for me.
...
ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers
reduce 100 bytes don't care in sum
2005-09-29 16:18:57 +00:00
Mike Frysinger
62f18e1f20
use the shorter license header
2005-09-24 07:16:29 +00:00
Mike Frysinger
0d4ee68be5
use brief license line
2005-09-24 06:01:57 +00:00
Mike Frysinger
bc48ebd86a
initial ppc64 support
2005-09-14 00:07:26 +00:00
Paul Fox
8eeb655661
applying jim bauer's patch to eliminate modprobe's dependency
...
on /bin/sh. bug #8 .
0000008: modprobe applet is dependent on having a shell
2005-08-04 18:33:36 +00:00
Mike Frysinger
4d00896d05
use toplevel ARFLAGS and update default ARFLAGS to be quiet
2005-07-27 01:09:24 +00:00
Rob Landley
4f65360a5f
Tweak the "pretty lsmod for 2.6" patch to be seperately selectable.
...
Patch from Takeharu Kato.
2005-05-04 23:55:06 +00:00
Rob Landley
15d3f7f143
Takeharu Kato's patch added 2.6 support to lsmod; this changes menuconfig
...
dependencies so 2.6 support depends on insmod or lsmod...
2005-05-04 00:25:49 +00:00
Rob Landley
627814bdc3
Takeharu Kato said:
...
I found that lsmod in busybox does not support linux-2.6.
I fix this issue(it is caused by changes of /proc/modules format).
If you use lsmod in busybox with kernel-2.6, please use this patch.
2005-05-03 22:34:03 +00:00
Eric Andersen
14f5c8d764
Patch from Bernhard Fischer to make a bunch of symbols static
...
which were otherwise cluttering the global namespace.
2005-04-16 19:39:00 +00:00
Peter Kjellerstedt
540769d566
Corrected the list of section names in add_ksymoops_symbols() so
...
that the bss and sbss sections can be correctly identified.
2005-03-30 16:36:40 +00:00
Mike Frysinger
354b527e03
amd64 is rela, not rel
2005-03-30 06:29:41 +00:00
Mike Frysinger
63654c1b08
alpha/parisc support
2004-12-26 09:13:32 +00:00
Eric Andersen
7daa076d3e
egor duda writes:
...
Hi!
I've created a patch to busybox' build system to allow building it in
separate tree in a manner similar to kbuild from kernel version 2.6.
That is, one runs command like
'make O=/build/some/where/for/specific/target/and/options'
and everything is built in this exact directory, provided that it exists.
I understand that applyingc such invasive changes during 'release
candidates' stage of development is at best unwise. So, i'm currently
asking for comments about this patch, starting from whether such thing
is needed at all to whether it coded properly.
'make check' should work now, and one make creates Makefile in build
directory, so one can run 'make' in build directory after that.
One possible caveat is that if we build in some directory other than
source one, the source directory should be 'distclean'ed first.
egor
2004-10-08 07:46:08 +00:00
Glenn L McGrath
bdf6319d3a
Patch from Egor Duda
...
Attached patch prevents modprobe from trying to call 'insmod (null)'
whenever nonexistent module is either passed to modprobe via command
line or mentioned in modules.dep
this replaces cryptic error
sh: Syntax error: word unexpected (expecting ")")
with
modprobe: module some-module not found.
egor.
2004-09-24 09:18:55 +00:00
Eric Andersen
45a0513a64
Based on patches from Mike Frysinger, add insmod support for
...
sparc and ia64 (itanium).
Also, reorganize the insmod architecture support code to be
alphasorted and less messy.
Update the readme to list current insmod arch support.
2004-09-02 23:03:25 +00:00
Eric Andersen
b225e2a76b
Fixup some warnings
2004-08-28 00:43:07 +00:00
Eric Andersen
a4d27d2d38
Patch from Rodney Radford adding x86_64 support.
2004-08-19 19:17:30 +00:00
Eric Andersen
807bd846b6
Patch from Mike Castle to cleanup some modutils issues, in
...
particular making alias support work better.
2004-08-19 18:30:31 +00:00
Eric Andersen
e3a792c80c
Only pass modprobe module params with 2.6.x kernel support.
...
-Erik
2004-08-16 10:22:34 +00:00
Eric Andersen
beaef16315
Christian Ostheimer writes:
...
Hello,
function build_dep in modprobe.c assumes that dependencies of one module
have not more than 255 chars;
that is not sufficient in kernel 2.6.7 (alsa sound modules). - Below is
a diff that solves the problem for me.
With regards, Christian Ostheimer
2004-08-14 20:57:33 +00:00
Glenn L McGrath
fcf47321d4
Patch from Mike Castle, dont print an empty line (patch modified by me to
...
change formatting).
2004-08-11 05:56:30 +00:00
Glenn L McGrath
d2c6f9a1f9
Patch from Phil Blundellto improve substring match
2004-08-11 02:32:18 +00:00
Glenn L McGrath
65c8c7ba27
Willian Barsse wrote
...
"There seems to be a slight problem with the "mod_strcmp" function in
modprobe.c, it scans for the first occurence of the module name in the
"mod_path" variable and expects it to be the last path element. ie
/lib/modules/2.4.22-debug/kernel/fs/vfat in my example. The comparison
will always fail if mod_path contains another substring matching the
module name."
Robert McQueen wrote
"Although William Barsse's patch fixed mod_strcmp for 2.4 kernels, there
was a remaining problem which prevented it from working for me. I've
just tracked it down - when you enable kernel 2.6 module support it
hard-wired the extension to .ko instead of checking at runtime like the
other places where 2.4 differs from 2.6. The attached patch fixes this
for me."
2004-08-11 02:30:30 +00:00
Eric Andersen
44b5758247
William Barsse writes:
...
fixes two other issues (plus the previous as well) with a 2.4 kernel :
- should be able to modprobe an already loaded module and get 0 return
code :
# modprobe <something> && modprobe <something> && echo "ok" || echo "failed"
....
failed
Well, hope this helps and that I didn't screw up again,
- William
2004-08-03 08:23:33 +00:00
Robert Griebl
36a836d564
Patch from Mike Snitzer <snitzer@gmail.com>:
...
Support for /etc/modprobe.conf (for 2.6 kernels) should likely be added
to bb's modprobe, see attached patch.
modprobe.conf is just a (even simpler) variant of modules.conf
2004-07-22 00:03:39 +00:00
Robert Griebl
bd8dd1e763
Patch from Mike Snitzer <snitzer@gmail.com>:
...
Please see the attached patch for the following crash with busybox'
2.6 rmmod support
2004-07-20 18:36:51 +00:00
Robert Griebl
809387fe9e
new_process_module_arguments returns 0 on error and 1 if everything went ok
...
somehow the ! got lost..
symptoms: modules could only be loaded _without_ parameters
2004-07-20 15:43:57 +00:00
Eric Andersen
c0693ed61b
Deal with the fact that 2.6.x kernels replace any '-'s in the
...
module name with a '_'.
-Erik
2004-07-20 10:05:13 +00:00
Eric Andersen
65659be213
Add missing type for CONFIG_FEATURE_QUERY_MODULE_INTERFACE
2004-07-20 06:09:14 +00:00
Eric Andersen
e8521f14a2
Fixup some cases of "QM_MODULES: not implemented" for both
...
lsmod and rmmod when using 2.6.x module support
-Erik
2004-07-13 00:09:34 +00:00
Eric Andersen
5275b1e49f
fix a stupid compile error when CONFIG_FEATURE_INSMOD_VERSION_CHECKING
...
is disabled
2004-06-22 20:10:53 +00:00
Eric Andersen
cb3b9b1fed
kill off insmod support for older pre 2.1 Linux kernels,
...
which are not supported with the current busybox 1.0 release
-Erik
2004-06-22 11:50:52 +00:00
Eric Andersen
d943837dab
Patrick Huesmann writes:
...
Hi,
There was some problem with busybox modprobe. For details see
http://www.busybox.net/lists/busybox/2004-May/011507.html
I made a patch against busybox-1.00-pre10 to fix that one.
This is a slight variant of Patrick's patch with a slightly
cleaner implementation of mod_strcmp()
-Erik
2004-06-22 10:43:09 +00:00
Eric Andersen
a6f6a95ba4
oops
2004-05-26 12:06:38 +00:00
Eric Andersen
ee70fa5523
Patch from Yoshinori Sato:
...
This patch is uClinux-2.4.x for H8/300 module support.
please apply.
--
Yoshinori Sato
2004-05-26 11:38:46 +00:00