mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-10 10:10:28 +03:00
Compare commits
423 Commits
2010.08_rc
...
2010.11_rc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea252b0e04 | ||
|
|
61881e8d30 | ||
|
|
9217101241 | ||
|
|
69a8991bdc | ||
|
|
70fb5d46ee | ||
|
|
937367785a | ||
|
|
24c9f8ca70 | ||
|
|
64d8e9a0c1 | ||
|
|
4c9f118e5d | ||
|
|
603030af45 | ||
|
|
f6c7d57cab | ||
|
|
267022d7f7 | ||
|
|
dcfeac42c2 | ||
|
|
6c01ef20ee | ||
|
|
94f2063773 | ||
|
|
a3a88a3155 | ||
|
|
6097b191d3 | ||
|
|
3ad0fac1b0 | ||
|
|
189c60ef8a | ||
|
|
aba71b77f1 | ||
|
|
dbf7100f2d | ||
|
|
2d925fc790 | ||
|
|
2b9e2fb4eb | ||
|
|
c107a15e92 | ||
|
|
ed720e8825 | ||
|
|
d906f6de9f | ||
|
|
1bc5b0bdf1 | ||
|
|
c2d6095f9f | ||
|
|
09c1b8bd6e | ||
|
|
5f71fc1f19 | ||
|
|
504a4ad0bb | ||
|
|
9f049e1c1f | ||
|
|
b588179405 | ||
|
|
4411017f86 | ||
|
|
89d1ad91fe | ||
|
|
3256bcafb5 | ||
|
|
c58027b518 | ||
|
|
e1317731c8 | ||
|
|
3daa912819 | ||
|
|
df3f8bb35a | ||
|
|
6d3342e415 | ||
|
|
ca3c06f55f | ||
|
|
666bef2d20 | ||
|
|
de642c9904 | ||
|
|
5e82337533 | ||
|
|
e9ae739ce7 | ||
|
|
7c949cb2a2 | ||
|
|
84c944d6c3 | ||
|
|
2f152f6d6d | ||
|
|
268ab3c941 | ||
|
|
fe67fb0456 | ||
|
|
739467b505 | ||
|
|
96ddeacb60 | ||
|
|
38a611c269 | ||
|
|
25a8ff3b23 | ||
|
|
419586ba6f | ||
|
|
1b3b991943 | ||
|
|
aa3e75ecd1 | ||
|
|
1310bad0ae | ||
|
|
4af6496eac | ||
|
|
5e12a71eee | ||
|
|
2e869a7c05 | ||
|
|
6871b16531 | ||
|
|
44b170e104 | ||
|
|
382ade52a5 | ||
|
|
209b342531 | ||
|
|
0dca706568 | ||
|
|
75efd6b4fa | ||
|
|
d41029b1dc | ||
|
|
56c68bcd3f | ||
|
|
cb15bf8da5 | ||
|
|
8258df279a | ||
|
|
20106a052e | ||
|
|
e5e8fae892 | ||
|
|
2d239bbe27 | ||
|
|
763d4ef9ea | ||
|
|
2c37dbf7d1 | ||
|
|
3be4968343 | ||
|
|
df3e367c5b | ||
|
|
6b3406a975 | ||
|
|
19e306338e | ||
|
|
00381f6599 | ||
|
|
376dcb23ad | ||
|
|
afb68b753e | ||
|
|
f3da749856 | ||
|
|
8902087ac7 | ||
|
|
6644da4087 | ||
|
|
019952d4bc | ||
|
|
cc98404a31 | ||
|
|
2b504fe1f6 | ||
|
|
8113c8162b | ||
|
|
a454cb61c0 | ||
|
|
daf11d5797 | ||
|
|
01d7afdc92 | ||
|
|
e46016ad3b | ||
|
|
b64696e8a8 | ||
|
|
493c54b9c2 | ||
|
|
b1bbd03d8a | ||
|
|
35b4322ee8 | ||
|
|
bb915b1d35 | ||
|
|
61e61aebce | ||
|
|
d73efad3fe | ||
|
|
daff8f47ab | ||
|
|
567eee4f54 | ||
|
|
fe5945a043 | ||
|
|
60f52cbd74 | ||
|
|
891973f538 | ||
|
|
bafe263a41 | ||
|
|
e09f7b8623 | ||
|
|
9225c7ab96 | ||
|
|
d2f7323f78 | ||
|
|
90660c2822 | ||
|
|
823aaef1ce | ||
|
|
61f432ff01 | ||
|
|
9f8f3c92c6 | ||
|
|
aecb5b4dc7 | ||
|
|
0eacc81fa2 | ||
|
|
dfc76fde1d | ||
|
|
05d5ce590b | ||
|
|
ab6925eabf | ||
|
|
d785694f5a | ||
|
|
c4e6bc74de | ||
|
|
dc6d5d9b3c | ||
|
|
f0e7dcab1a | ||
|
|
ccdf2580d8 | ||
|
|
740aa79ec9 | ||
|
|
c9da538f76 | ||
|
|
fe26a7f0f2 | ||
|
|
83af822f7b | ||
|
|
fda95b5b10 | ||
|
|
2b721e9c11 | ||
|
|
6156924c2b | ||
|
|
5d73b07ee7 | ||
|
|
0201ffcd16 | ||
|
|
55cc1fd551 | ||
|
|
4ff3455223 | ||
|
|
a268b0528c | ||
|
|
e99a9b2c22 | ||
|
|
f8b8a48827 | ||
|
|
285b8fe904 | ||
|
|
475de409fd | ||
|
|
3506706dad | ||
|
|
d089c987a6 | ||
|
|
259a129e81 | ||
|
|
73a1f4ba5f | ||
|
|
a82675239c | ||
|
|
36a5ccd023 | ||
|
|
a2fcdacad6 | ||
|
|
968ebae9de | ||
|
|
06d764401d | ||
|
|
f40cb9cb54 | ||
|
|
c1d0fae7d0 | ||
|
|
246c1f4dea | ||
|
|
31699a57d6 | ||
|
|
85c45df2fa | ||
|
|
b808b60b89 | ||
|
|
ffa57e4e74 | ||
|
|
d6e59652a5 | ||
|
|
e7b6b32c5d | ||
|
|
05e4b940c9 | ||
|
|
3d1de0ed96 | ||
|
|
1f4000e562 | ||
|
|
489e2b803e | ||
|
|
e50b4dcbf9 | ||
|
|
1f0302f967 | ||
|
|
edb15260e9 | ||
|
|
11334624c1 | ||
|
|
10c1eec2c3 | ||
|
|
d0c3d1cf43 | ||
|
|
57bc22c6b7 | ||
|
|
855fdcaed1 | ||
|
|
5c6320f1b5 | ||
|
|
d12bc6294a | ||
|
|
b8ce1fb184 | ||
|
|
9f36bd4976 | ||
|
|
c4eb25ff3d | ||
|
|
d487168c71 | ||
|
|
82ab8b3b31 | ||
|
|
299f7820de | ||
|
|
ccb974d7ea | ||
|
|
9793ea5661 | ||
|
|
ed947b383f | ||
|
|
aca1958b8b | ||
|
|
e3da887298 | ||
|
|
799c132823 | ||
|
|
7477b474da | ||
|
|
0a7f1bf51a | ||
|
|
96652637cc | ||
|
|
b626dc0791 | ||
|
|
3f1d79d379 | ||
|
|
3e5e39a8a2 | ||
|
|
a70d443483 | ||
|
|
332ec387e2 | ||
|
|
d5576fd2f0 | ||
|
|
3a19ee499b | ||
|
|
e4fe19c9b4 | ||
|
|
fe35fdcdec | ||
|
|
1110062e46 | ||
|
|
677ae6f6a5 | ||
|
|
edfb1264ef | ||
|
|
e611747255 | ||
|
|
ed6bdad8a6 | ||
|
|
478ea1a12d | ||
|
|
55ade5c796 | ||
|
|
a0b6710b88 | ||
|
|
fa0d2d142c | ||
|
|
7e7fce1b02 | ||
|
|
aefad5317f | ||
|
|
0f9da87c1d | ||
|
|
f09275968c | ||
|
|
231449e1d5 | ||
|
|
3d840536cc | ||
|
|
91e32e23f0 | ||
|
|
d4f1332110 | ||
|
|
85fac9e0c8 | ||
|
|
789f61379a | ||
|
|
b850ce811f | ||
|
|
1114b47774 | ||
|
|
5d132c1a81 | ||
|
|
bc833e7c9c | ||
|
|
750889288c | ||
|
|
ba85f9b11f | ||
|
|
5e6e63e537 | ||
|
|
8e07b26e06 | ||
|
|
0b5fe8cbe7 | ||
|
|
76c4fa0067 | ||
|
|
abbd7223b2 | ||
|
|
a9b7833792 | ||
|
|
e094140344 | ||
|
|
a05bb5815d | ||
|
|
6b899a43ba | ||
|
|
4a7e9e8f2e | ||
|
|
386c55dbba | ||
|
|
a85024991b | ||
|
|
06d0378954 | ||
|
|
ed4ca35a1a | ||
|
|
d380d51427 | ||
|
|
763822e874 | ||
|
|
785fef108e | ||
|
|
3df6b56f53 | ||
|
|
e5a9c22c90 | ||
|
|
c1df74fbca | ||
|
|
c29e01e61e | ||
|
|
a172611725 | ||
|
|
0a5ec78866 | ||
|
|
78e7c0b642 | ||
|
|
e7895986de | ||
|
|
1860bdae8c | ||
|
|
c106fdbd10 | ||
|
|
ee3f319249 | ||
|
|
aa87ac99c5 | ||
|
|
771d76313a | ||
|
|
ba4fd23559 | ||
|
|
1475384413 | ||
|
|
d147b81fda | ||
|
|
9b2ac9f9ac | ||
|
|
91f2599d9b | ||
|
|
993e51bc22 | ||
|
|
9eddd31df3 | ||
|
|
cf71111b99 | ||
|
|
07b2af1a45 | ||
|
|
5ba97d900a | ||
|
|
6b567a8570 | ||
|
|
d09721c451 | ||
|
|
0716faa9be | ||
|
|
017f3e8447 | ||
|
|
19cd7a3adc | ||
|
|
92870a7a7c | ||
|
|
ae2be8dbc3 | ||
|
|
240fa521cf | ||
|
|
704d222df1 | ||
|
|
19f9348bec | ||
|
|
d2b7b19a57 | ||
|
|
b7e517e895 | ||
|
|
8112567cb3 | ||
|
|
ccc6ef6c17 | ||
|
|
3d8ed998de | ||
|
|
bfa1a7fc13 | ||
|
|
b4271fbba3 | ||
|
|
6cf3ec38b8 | ||
|
|
0355eb522b | ||
|
|
0437f157ba | ||
|
|
23ad529cb5 | ||
|
|
7811b05c9b | ||
|
|
bf65aad5d9 | ||
|
|
523394b782 | ||
|
|
3dbdbda0b8 | ||
|
|
0bc275192e | ||
|
|
138212a104 | ||
|
|
56993a5380 | ||
|
|
0d5cf75df6 | ||
|
|
edf47fc62c | ||
|
|
dfe97a1ed4 | ||
|
|
3ec45c80b1 | ||
|
|
3396401dad | ||
|
|
bcffe7a77e | ||
|
|
f129a680fa | ||
|
|
b88c394685 | ||
|
|
7d6e7bcc26 | ||
|
|
2d30d8f4eb | ||
|
|
5c421dde68 | ||
|
|
879465e040 | ||
|
|
020e028108 | ||
|
|
4dfe998b32 | ||
|
|
166631bdfb | ||
|
|
0de10bf491 | ||
|
|
d073318876 | ||
|
|
0fe621d1de | ||
|
|
9785f71c7a | ||
|
|
0958e6109c | ||
|
|
62df009e47 | ||
|
|
1c99b35528 | ||
|
|
1976fc5f24 | ||
|
|
cfe2c192d1 | ||
|
|
2a784080ad | ||
|
|
c648785b93 | ||
|
|
84d37d15e3 | ||
|
|
20528a8449 | ||
|
|
375b14fbeb | ||
|
|
c42d2a3afe | ||
|
|
dbcec2b28e | ||
|
|
39c781f33a | ||
|
|
fa6c7989ac | ||
|
|
f80d064572 | ||
|
|
fcab98c31b | ||
|
|
d31100d7e8 | ||
|
|
b4cb198b97 | ||
|
|
da07989b17 | ||
|
|
3d595a6016 | ||
|
|
0f5fae2a69 | ||
|
|
26d0bb8b11 | ||
|
|
c692a3e443 | ||
|
|
e8ba6a5119 | ||
|
|
918978d4ad | ||
|
|
e3077bc822 | ||
|
|
3c6985d309 | ||
|
|
1c8e89f4ce | ||
|
|
90710e0c22 | ||
|
|
2802509191 | ||
|
|
d1b11c16f0 | ||
|
|
428b533655 | ||
|
|
50f8b80f2a | ||
|
|
3307052879 | ||
|
|
f47b29353f | ||
|
|
bb4ca92c40 | ||
|
|
fb848d400f | ||
|
|
ee314c97f9 | ||
|
|
1e5b49c9c4 | ||
|
|
dd0d0f96d8 | ||
|
|
113d5d1adb | ||
|
|
5acb621e8b | ||
|
|
45b776f201 | ||
|
|
f661b023ab | ||
|
|
bfa9e9e2bd | ||
|
|
e62ed84b19 | ||
|
|
9bc12b85e8 | ||
|
|
40177240fa | ||
|
|
0b36880085 | ||
|
|
e1b1a18ab6 | ||
|
|
1039eb74fa | ||
|
|
abba28ac7d | ||
|
|
723f01dafa | ||
|
|
8b6585a9d3 | ||
|
|
52a142a631 | ||
|
|
7c524dd0b6 | ||
|
|
6f38119cbb | ||
|
|
dc9dba1509 | ||
|
|
e34035d033 | ||
|
|
32b8d438b3 | ||
|
|
1424ff1c14 | ||
|
|
3975e30b99 | ||
|
|
97d8618c6c | ||
|
|
343f480fe2 | ||
|
|
31aa331d34 | ||
|
|
939c24d2a4 | ||
|
|
4ccde7fabb | ||
|
|
40f8f3ff1d | ||
|
|
4973632207 | ||
|
|
a08538fd5a | ||
|
|
dc3a7ebc26 | ||
|
|
fb67a2dc3a | ||
|
|
2ab8ec9e26 | ||
|
|
d6d6ff6a9c | ||
|
|
eba7132f3a | ||
|
|
78c67b6ce4 | ||
|
|
1c4dbb5fa7 | ||
|
|
8e32ec9a1f | ||
|
|
c4cdcc3680 | ||
|
|
de846f6e04 | ||
|
|
b6207627b4 | ||
|
|
6c51938781 | ||
|
|
6ef440ba0d | ||
|
|
c06b3891ff | ||
|
|
96c607c93a | ||
|
|
e8fdc08dc3 | ||
|
|
62b4c67b09 | ||
|
|
0b415edef3 | ||
|
|
b680672ad1 | ||
|
|
1ed2e4fffd | ||
|
|
9ed8308d58 | ||
|
|
2e7ab32c97 | ||
|
|
a99b1bb24f | ||
|
|
311e0a6fc4 | ||
|
|
d3de556d28 | ||
|
|
8305f6ffbc | ||
|
|
e6c4ce6cef | ||
|
|
66ab676616 | ||
|
|
0b876d3977 | ||
|
|
c56087e65c | ||
|
|
a022ab5e01 | ||
|
|
03ff807803 | ||
|
|
7fe50869fb | ||
|
|
0ec4298153 | ||
|
|
30887f616a | ||
|
|
a22d4082ea | ||
|
|
f4ffc04bbd | ||
|
|
e5621b427c | ||
|
|
0fa2a04417 | ||
|
|
01c1279f9f | ||
|
|
9088b71f45 | ||
|
|
e0f441a234 | ||
|
|
55f70939b8 | ||
|
|
2c31d745ac |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@
|
||||
/.auto.deps
|
||||
/.config.cmd
|
||||
/.config.old
|
||||
/..config.tmp
|
||||
/.config
|
||||
*.depend
|
||||
*.o
|
||||
|
||||
134
CHANGES
134
CHANGES
@@ -1,3 +1,133 @@
|
||||
2010.11-rc1, Released November 8th, 2010:
|
||||
|
||||
Fixes all over the tree and new features.
|
||||
|
||||
Kconfig infrastructure rebased against 2.6.36-rc1, bringing
|
||||
misc fixes + nconfig and savedefconfig targets.
|
||||
|
||||
Toolchain: ARM cortex A9 support, experimental crosstool-ng
|
||||
backend, GCC 4.5.x.
|
||||
|
||||
Fs: Squashfs 4.1 with lzo support
|
||||
|
||||
Old-style package hooks (*_HOOK_POST_*) removed. Use the more
|
||||
generic new-style ones instead.
|
||||
|
||||
Download handling reworked and support for git/svn downloads
|
||||
added.
|
||||
|
||||
Removed experimental shared config.cache support, as it is
|
||||
too unreliable.
|
||||
|
||||
A convenience Makefile wrapper is created when using
|
||||
out-of-tree building, similar to how it is done for the kernel.
|
||||
|
||||
Alpha, Cris, IA64 and Sparc64 architecture support removed.
|
||||
|
||||
New packages: argp-standalone, gdk-pixbuf, gpsd, gst-ffmpeg,
|
||||
libmpeg2, kbd, librsvg, nuttcp, rng-tools, rrdtool, xz
|
||||
|
||||
Updated/fixed packages: acpid, alsa-lib, argus, at, autoconf,
|
||||
automake, avahi, axel, beecrypt, berkeleydb, bind, bmon, boa,
|
||||
bootutils, bridge-utils, bsdiff, busybox, cvs, dbus, directfb,
|
||||
dmraid, docker, dosfstools, dropbear, e2fsprogs, ethtool,
|
||||
expat, ezxml, fbset, fconfig, ffmpeg, freetype, gadgetfs-test,
|
||||
gamin, gawk, genext2fs, gperf, gst-plugins-base,
|
||||
gst-plugins-ugly, gtk2-themes, gtkperf, gvfs, haserl, hdparm,
|
||||
hostapd, hwdata, ifplugd, imagemagick, iperf, ipsec-tools,
|
||||
iproute2, iptables, iw, jpeg, kexec, kismet, less, libcgi,
|
||||
libcurl, libdaemon, libdnet, liberation, libevent, libeXosip2,
|
||||
libglade, libgtk2, libiconv, libidn, libintl, libmms, libmpd,
|
||||
libnl, liboil, libosip2, libpcap, libpng, libtool, libungif,
|
||||
libxml2, libxslt, lighttpd, lite, lm-sensors, lockfile-progs,
|
||||
logrotate, m4, matchbox, mdadm, mesa3d, metacity, mplayer,
|
||||
mtd-utils, mysql_client, nano, nbd, ncftp, neon, netperf,
|
||||
netsnmp, ng-spice-rework, ntfsprogs, ntp, openntpd, openssh,
|
||||
openssl, openvpn, oprofile, pango, patch, pcre, php,
|
||||
pkg-config, portmap, pppd, pptp-linux, prboom, proftpd, radvd,
|
||||
rdesktop, readline, rp-pppoe, ruby, qt, quagga, samba, sawman,
|
||||
sdl_mixer, sdl_sound, sed, setserial, shared-mime-info, slang,
|
||||
speex, sqlite, squashfs, startup-notification, strace,
|
||||
sylpheed, sysstat, taglib, tcpdump, thttpd, tiff, tn5250,
|
||||
torsmo, tslib, udev, udpcast, usbmount, usbutils, vsftpd,
|
||||
vtun, which, wireless-tools, wpa_supplicant, xapp_twm,
|
||||
xapp_xbacklight, xapp_xcursorgen, xapp_xinit, xapp_xinput,
|
||||
xapp_xmore,
|
||||
xdriver_xf86-input-{acecad,aiptek,evdev,joystick,keyboard},
|
||||
xdriver-xf86-input-{mouse,synaptics,vmmouse,void},
|
||||
xdriver-xf86-video-{apm,ark,ast,ati,chips,cirrus,dummy,fbdev},
|
||||
xdriver-xf86-video-{geode,glide,glint,i128,i740,intel,mach64},
|
||||
xdriver-xf86-video-{mga,neomagic,newport,nv,openchrome,r128},
|
||||
xdriver-xf86-video-{rendition,s3,s3virge,savage,siliconmotion},
|
||||
xdriver-xf86-video-{sis,sisusb,suncg3,suncg6,suncg14,sunffb},
|
||||
xdriver-xf86-video-{sunleo,suntcx,tdfx,tga,trident,v4l,vesa},
|
||||
xdriver-xf86-video-{vmware,voodeo,wsfb,xgi,xgixp},
|
||||
xkeyboard-config, xlib_libX11, xserver_xorg-server, xstroke,
|
||||
xterm, xvkbd, zlib
|
||||
|
||||
Deprecated packages: hotplug, lzma, ng-spice-rework, sfdisk
|
||||
|
||||
Removed packages: dillo, libglib12, libgtk12, microwin,
|
||||
pcmcia
|
||||
|
||||
Issues resolved (http://bugs.uclibc.org):
|
||||
|
||||
#901: new package: gpsd
|
||||
#2389: Generate a Makefile wrapper in $(O)
|
||||
#2461: wireless_tools: install shared library if needed
|
||||
#2521: Can't compile sdl_mixer, mikmod.h can't be found
|
||||
#2533: xserver_xorg-server: Enable glx, if mesa3d is built
|
||||
#2563: [PATCH] cairo: Expose the configure option to disable some...
|
||||
#2581: libmms: Update to 0.6, and patch to work on architectures...
|
||||
#2707: Can't compile linux kernel using buildroot + crosstool-ng
|
||||
#2731: Build order
|
||||
#2737: buildroot configuration tool crashing when the path exceeds...
|
||||
#2767: Build for lsof broken in buildroot-2010.08
|
||||
|
||||
2010.08: Released August 31th, 2010:
|
||||
|
||||
Fixes all over the tree.
|
||||
|
||||
Updated/fixed packages: atk, xstroke
|
||||
|
||||
Removed packages: lxdoom
|
||||
|
||||
2010.08-rc2, Released August 30th, 2010:
|
||||
|
||||
Fixes all over the tree.
|
||||
|
||||
Mark the combination of uClibc 0.9.31, gcc 4.2.x, C++ and
|
||||
locale support as broken. Remove deprecated GCC 4.2.[1-3]
|
||||
versions.
|
||||
|
||||
Mark CRIS architecture as deprecated, as it is discontinued
|
||||
upstream.
|
||||
|
||||
Marked shared config.cache as experimental and disabled by
|
||||
default as it is known to break with certain package
|
||||
combinations.
|
||||
|
||||
Toolchain: fixed gcc 4.2.x build after uClibc NPTL support got
|
||||
added.
|
||||
|
||||
fs: old-style squashfs for big endian archs fixed.
|
||||
|
||||
Updated/fixed packages: busybox, gst-plugins-base,
|
||||
imagemagick, kismet, libgail, libglib2, libgtk2, lua,
|
||||
luafilesystem, lzo, ncurses, netcat, pango, php, pppd,
|
||||
proftpd, qt, samba, startup-notification, swfdec, sysvinit,
|
||||
util-linux
|
||||
|
||||
Removed packages: stunnel
|
||||
|
||||
Issues resolved (http://bugs.uclibc.org):
|
||||
|
||||
#635: util-linux fails to build in 2009.08
|
||||
#2239: netcat package installs its binary to target as avr32-linux...
|
||||
#2395: libglib2-2.24.1 and libxml2-2.7.7 fails build on MIPS because...
|
||||
#2443: Initramfs: Don't overwrite $(TARGET_DIR)/init if it exists
|
||||
#2449: Minor fixes for squashfs makefile and correct PowerPC e500 ...
|
||||
|
||||
2010.08-rc1, Released July 30th, 2010:
|
||||
|
||||
Fixes all over the tree and new features.
|
||||
@@ -24,7 +154,7 @@
|
||||
during the 2010.11 development cycle.
|
||||
|
||||
New packages: cgilua, copas, coxpcall, ffmpeg, libsvgtiny,
|
||||
luafilesystem, luasocket, rings, wsapi, xavante, xterm
|
||||
libgail, luafilesystem, luasocket, rings, wsapi, xavante, xterm
|
||||
|
||||
Updated/fixed packages: alsa-lib, alsamixergui, at, atk,
|
||||
avahi, berkeleydb, bash, blackbox, busybox, bzip2, cairo,
|
||||
@@ -43,7 +173,7 @@
|
||||
usbutils, webif, webkit, wireless_tools, xerces,
|
||||
xkeyboard-config, xserver_xorg-server, xvkbd, zlib
|
||||
|
||||
Removed packages: libgail, modutils, portage, rxvt
|
||||
Removed packages: modutils, portage, rxvt
|
||||
|
||||
Deprecated packages: dillo, libglib12, libgtk12, microwin, pcmcia
|
||||
|
||||
|
||||
40
Config.in
40
Config.in
@@ -8,7 +8,7 @@ config BR2_HAVE_DOT_CONFIG
|
||||
|
||||
config BR2_VERSION
|
||||
string
|
||||
default "2010.08-rc1"
|
||||
option env="BR2_VERSION_FULL"
|
||||
|
||||
source "target/Config.in.arch"
|
||||
source "target/device/Config.in"
|
||||
@@ -19,27 +19,19 @@ menu "Commands"
|
||||
|
||||
config BR2_WGET
|
||||
string "Wget command"
|
||||
default "wget --passive-ftp -nd"
|
||||
default "wget --passive-ftp -nd -t 3"
|
||||
|
||||
config BR2_SVN_CO
|
||||
string "Subversion (svn) command to download source tree"
|
||||
default "svn co"
|
||||
config BR2_SVN
|
||||
string "Subversion (svn) command"
|
||||
default "svn"
|
||||
|
||||
config BR2_SVN_UP
|
||||
string "Subversion (svn) command to update source tree"
|
||||
default "svn up"
|
||||
|
||||
config BR2_BZR_CO
|
||||
string "Bazaar (bzr) command to download source tree"
|
||||
default "bzr co"
|
||||
|
||||
config BR2_BZR_UP
|
||||
string "Bazaar (bzr) command to update source tree"
|
||||
default "bzr up"
|
||||
config BR2_BZR
|
||||
string "Bazaar (bzr) command"
|
||||
default "bzr"
|
||||
|
||||
config BR2_GIT
|
||||
string "Git command to download source tree"
|
||||
default "git clone"
|
||||
string "Git command"
|
||||
default "git"
|
||||
|
||||
config BR2_ZCAT
|
||||
string "zcat command"
|
||||
@@ -264,18 +256,6 @@ config BR2_HAVE_DEVFILES
|
||||
Install headers and static libraries in the
|
||||
target filesystem
|
||||
|
||||
menu "Advanced"
|
||||
|
||||
config BR2_CONFIG_CACHE
|
||||
bool "Use a central configure cache file"
|
||||
default y
|
||||
help
|
||||
This determines if a central config cache is used by
|
||||
packages, reducing the configure time for packages as each
|
||||
one caches its findings.
|
||||
|
||||
endmenu
|
||||
|
||||
endmenu
|
||||
|
||||
source "toolchain/Config.in"
|
||||
|
||||
233
Makefile
233
Makefile
@@ -22,15 +22,25 @@
|
||||
# Just run 'make menuconfig', configure stuff, then run 'make'.
|
||||
# You shouldn't need to mess with anything beyond this point...
|
||||
#--------------------------------------------------------------
|
||||
|
||||
# Set and export the version string
|
||||
export BR2_VERSION:=2010.11-rc1
|
||||
|
||||
# This top-level Makefile can *not* be executed in parallel
|
||||
.NOTPARALLEL:
|
||||
|
||||
# absolute path
|
||||
TOPDIR:=$(shell pwd)
|
||||
CONFIG_CONFIG_IN=Config.in
|
||||
CONFIG_DEFCONFIG=.defconfig
|
||||
CONFIG=package/config
|
||||
DATE:=$(shell date +%Y%m%d)
|
||||
|
||||
noconfig_targets:=menuconfig gconfig xconfig config oldconfig randconfig \
|
||||
defconfig allyesconfig allnoconfig release \
|
||||
# Compute the full local version string so packages can use it as-is
|
||||
# Need to export it, so it can be got from environment in children (eg. mconf)
|
||||
export BR2_VERSION_FULL:=$(BR2_VERSION)$(shell $(TOPDIR)/scripts/setlocalversion)
|
||||
|
||||
noconfig_targets:=menuconfig nconfig gconfig xconfig config oldconfig randconfig \
|
||||
defconfig %_defconfig savedefconfig allyesconfig allnoconfig silentoldconfig release \
|
||||
randpackageconfig allyespackageconfig allnopackageconfig \
|
||||
source-check help
|
||||
|
||||
@@ -46,6 +56,7 @@ space:=$(empty) $(empty)
|
||||
ifneq ("$(origin O)", "command line")
|
||||
O:=output
|
||||
CONFIG_DIR:=$(TOPDIR)
|
||||
NEED_WRAPPER=
|
||||
else
|
||||
# other packages might also support Linux-style out of tree builds
|
||||
# with the O=<dir> syntax (E.G. Busybox does). As make automatically
|
||||
@@ -59,6 +70,9 @@ MAKEOVERRIDES =
|
||||
# To really make O go away, we have to override it.
|
||||
override O:=$(O)
|
||||
CONFIG_DIR:=$(O)
|
||||
# we need to pass O= everywhere we call back into the toplevel makefile
|
||||
EXTRAMAKEARGS = O=$(O)
|
||||
NEED_WRAPPER=y
|
||||
endif
|
||||
|
||||
# $(shell find . -name *_defconfig |sed 's/.*\///')
|
||||
@@ -142,15 +156,6 @@ HOSTLD:=$(shell which $(HOSTLD) || type -p $(HOSTLD) || echo ld)
|
||||
HOSTLN:=$(shell which $(HOSTLN) || type -p $(HOSTLN) || echo ln)
|
||||
HOSTNM:=$(shell which $(HOSTNM) || type -p $(HOSTNM) || echo nm)
|
||||
|
||||
ifndef CFLAGS_FOR_BUILD
|
||||
CFLAGS_FOR_BUILD:=-g -O2
|
||||
endif
|
||||
ifndef CXXFLAGS_FOR_BUILD
|
||||
CXXFLAGS_FOR_BUILD:=-g -O2
|
||||
endif
|
||||
ifndef FCFLAGS_FOR_BUILD
|
||||
FCFLAGS_FOR_BUILD:=-g -O2
|
||||
endif
|
||||
export HOSTAR HOSTAS HOSTCC HOSTCXX HOSTFC HOSTLD
|
||||
|
||||
# bash prints the name of the directory on 'cd <dir>' if CDPATH is
|
||||
@@ -229,7 +234,7 @@ PREFERRED_LIB_FLAGS:=--enable-static --enable-shared
|
||||
##############################################################
|
||||
ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
|
||||
BASE_TARGETS:=uclibc-configured binutils cross_compiler uclibc-target-utils kernel-headers
|
||||
else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
|
||||
else
|
||||
BASE_TARGETS:=uclibc
|
||||
endif
|
||||
TARGETS:=
|
||||
@@ -243,21 +248,18 @@ ifeq ($(ARCH),xtensa)
|
||||
ARCH:=$(ARCH)_$(call qstrip,$(BR2_xtensa_core_name))
|
||||
endif
|
||||
|
||||
WGET:=$(call qstrip,$(BR2_WGET)) $(SPIDER) $(QUIET)
|
||||
SVN_CO:=$(call qstrip,$(BR2_SVN_CO)) $(QUIET)
|
||||
SVN_UP:=$(call qstrip,$(BR2_SVN_UP)) $(QUIET)
|
||||
BZR_CO:=$(call qstrip,$(BR2_BZR_CO)) $(QUIET)
|
||||
BZR_UP:=$(call qstrip,$(BR2_BZR_UP)) $(QUIET)
|
||||
GIT:=$(call qstrip,$(BR2_GIT)) $(QUIET)
|
||||
KERNEL_ARCH:=$(shell echo "$(ARCH)" | sed -e "s/-.*//" \
|
||||
-e s/i.86/i386/ -e s/sun4u/sparc64/ \
|
||||
-e s/arm.*/arm/ -e s/sa110/arm/ \
|
||||
-e s/parisc64/parisc/ \
|
||||
-e s/powerpc64/powerpc/ \
|
||||
-e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
|
||||
-e s/sh.*/sh/)
|
||||
|
||||
ZCAT:=$(call qstrip,$(BR2_ZCAT))
|
||||
BZCAT:=$(call qstrip,$(BR2_BZCAT))
|
||||
TAR_OPTIONS=$(call qstrip,$(BR2_TAR_OPTIONS)) -xf
|
||||
|
||||
DL_DIR=$(call qstrip,$(BR2_DL_DIR))
|
||||
ifeq ($(DL_DIR),)
|
||||
DL_DIR:=$(TOPDIR)/dl
|
||||
endif
|
||||
|
||||
GNU_TARGET_SUFFIX:=-$(call qstrip,$(BR2_GNU_TARGET_SUFFIX))
|
||||
|
||||
STAGING_DIR:=$(call qstrip,$(BR2_STAGING_DIR))
|
||||
@@ -297,19 +299,22 @@ ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
|
||||
include toolchain/toolchain-buildroot.mk
|
||||
else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
|
||||
include toolchain/toolchain-external.mk
|
||||
else ifeq ($(BR2_TOOLCHAIN_CTNG),y)
|
||||
include toolchain/toolchain-crosstool-ng.mk
|
||||
endif
|
||||
|
||||
include package/*/*.mk
|
||||
|
||||
include boot/common.mk
|
||||
include target/Makefile.in
|
||||
include linux/linux.mk
|
||||
|
||||
TARGETS+=target-finalize
|
||||
|
||||
ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
|
||||
TARGETS+=target-purgelocales
|
||||
endif
|
||||
|
||||
include boot/common.mk
|
||||
include target/Makefile.in
|
||||
include linux/linux.mk
|
||||
include fs/common.mk
|
||||
|
||||
TARGETS+=erase-fakeroots
|
||||
@@ -321,20 +326,20 @@ TARGETS_ALL:=$(patsubst %,__real_tgt_%,$(TARGETS))
|
||||
# all targets depend on the crosscompiler and it's prerequisites
|
||||
$(TARGETS_ALL): __real_tgt_%: $(BASE_TARGETS) %
|
||||
|
||||
$(BR2_DEPENDS_DIR): $(CONFIG_DIR)/.config
|
||||
# rm -rf $@
|
||||
# mkdir -p $(@D)
|
||||
# cp -dpRf $(CONFIG)/buildroot-config $@
|
||||
|
||||
dirs: $(DL_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
|
||||
$(HOST_DIR) $(BR2_DEPENDS_DIR) $(BINARIES_DIR) $(STAMP_DIR)
|
||||
|
||||
$(BASE_TARGETS): dirs
|
||||
|
||||
world: dependencies dirs $(BASE_TARGETS) $(TARGETS_ALL)
|
||||
$(BUILD_DIR)/buildroot-config/auto.conf: $(CONFIG_DIR)/.config
|
||||
$(MAKE) $(EXTRAMAKEARGS) silentoldconfig
|
||||
|
||||
prepare: $(BUILD_DIR)/buildroot-config/auto.conf
|
||||
|
||||
world: prepare dependencies dirs $(BASE_TARGETS) $(TARGETS_ALL)
|
||||
|
||||
|
||||
.PHONY: all world dirs clean distclean source \
|
||||
.PHONY: all world dirs clean distclean source outputmakefile \
|
||||
$(BASE_TARGETS) $(TARGETS) $(TARGETS_ALL) \
|
||||
$(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \
|
||||
$(DL_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
|
||||
@@ -398,15 +403,18 @@ ifneq ($(BR2_HAVE_DOCUMENTATION),y)
|
||||
rm -rf $(TARGET_DIR)/usr/share/gtk-doc
|
||||
endif
|
||||
find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIPCMD) 2>/dev/null || true
|
||||
mkdir -p $(TARGET_DIR)/etc
|
||||
# Mandatory configuration file and auxilliary cache directory
|
||||
# for recent versions of ldconfig
|
||||
touch $(TARGET_DIR)/etc/ld.so.conf
|
||||
mkdir -p $(TARGET_DIR)/var/cache/ldconfig
|
||||
if [ -x "$(TARGET_CROSS)ldconfig" ]; \
|
||||
then \
|
||||
$(TARGET_CROSS)ldconfig -r $(TARGET_DIR) 2>/dev/null; \
|
||||
$(TARGET_CROSS)ldconfig -r $(TARGET_DIR); \
|
||||
else \
|
||||
/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null; \
|
||||
/sbin/ldconfig -r $(TARGET_DIR); \
|
||||
fi
|
||||
mkdir -p $(TARGET_DIR)/etc
|
||||
echo $(BR2_VERSION)$(shell $(TOPDIR)/scripts/setlocalversion) > \
|
||||
$(TARGET_DIR)/etc/br-version
|
||||
echo $(BR2_VERSION_FULL) > $(TARGET_DIR)/etc/br-version
|
||||
|
||||
ifneq ($(BR2_ROOTFS_POST_BUILD_SCRIPT),"")
|
||||
$(BR2_ROOTFS_POST_BUILD_SCRIPT) $(TARGET_DIR)
|
||||
@@ -432,24 +440,14 @@ endif
|
||||
source: $(TARGETS_SOURCE) $(HOST_SOURCE)
|
||||
|
||||
_source-check:
|
||||
$(MAKE) SPIDER=--spider source
|
||||
$(MAKE) DL_MODE=SOURCE_CHECK $(EXTRAMAKEARGS) source
|
||||
|
||||
external-deps:
|
||||
@$(MAKE) -Bs BR2_WGET=$(TOPDIR)/toolchain/wget-show-external-deps.sh \
|
||||
SPIDER=--spider source
|
||||
@$(MAKE) -Bs DL_MODE=SHOW_EXTERNAL_DEPS $(EXTRAMAKEARGS) source
|
||||
|
||||
show-targets:
|
||||
@echo $(TARGETS)
|
||||
|
||||
ifeq ($(BR2_CONFIG_CACHE),y)
|
||||
# drop configure caches if configuration is changed
|
||||
$(BUILD_DIR)/tgt-config.cache $(BUILD_DIR)/host-config.cache: $(CONFIG_DIR)/.config
|
||||
rm -f $@
|
||||
touch $@
|
||||
|
||||
$(BASE_TARGETS): | $(BUILD_DIR)/tgt-config.cache $(BUILD_DIR)/host-config.cache
|
||||
endif
|
||||
|
||||
else # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
|
||||
|
||||
all: menuconfig
|
||||
@@ -462,103 +460,102 @@ export HOSTCFLAGS
|
||||
|
||||
$(BUILD_DIR)/buildroot-config/%onf:
|
||||
mkdir -p $(@D)/lxdialog
|
||||
$(MAKE) CC="$(HOSTCC)" obj=$(@D) -C $(CONFIG) $(@F)
|
||||
-@if [ ! -f $(CONFIG_DIR)/.config ]; then \
|
||||
cp $(CONFIG_DEFCONFIG) $(CONFIG_DIR)/.config; \
|
||||
fi
|
||||
$(MAKE) CC="$(HOSTCC)" obj=$(@D) -C $(CONFIG) -f Makefile.br $(@F)
|
||||
|
||||
xconfig: $(BUILD_DIR)/buildroot-config/qconf
|
||||
COMMON_CONFIG_ENV = \
|
||||
KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
KCONFIG_TRISTATE=$(BUILD_DIR)/buildroot-config/tristate.config \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config
|
||||
|
||||
xconfig: $(BUILD_DIR)/buildroot-config/qconf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@if ! KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< $(CONFIG_CONFIG_IN); then \
|
||||
@if ! $(COMMON_CONFIG_ENV) $< $(CONFIG_CONFIG_IN); then \
|
||||
test -f $(CONFIG_DIR)/.config.cmd || rm -f $(CONFIG_DIR)/.config; \
|
||||
fi
|
||||
|
||||
gconfig: $(BUILD_DIR)/buildroot-config/gconf
|
||||
gconfig: $(BUILD_DIR)/buildroot-config/gconf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@if ! KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
srctree=$(TOPDIR) \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< $(CONFIG_CONFIG_IN); then \
|
||||
@if ! $(COMMON_CONFIG_ENV) srctree=$(TOPDIR) \
|
||||
$< $(CONFIG_CONFIG_IN); then \
|
||||
test -f $(CONFIG_DIR)/.config.cmd || rm -f $(CONFIG_DIR)/.config; \
|
||||
fi
|
||||
|
||||
menuconfig: $(BUILD_DIR)/buildroot-config/mconf
|
||||
menuconfig: $(BUILD_DIR)/buildroot-config/mconf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@if ! KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< $(CONFIG_CONFIG_IN); then \
|
||||
@if ! $(COMMON_CONFIG_ENV) $< $(CONFIG_CONFIG_IN); then \
|
||||
test -f $(CONFIG_DIR)/.config.cmd || rm -f $(CONFIG_DIR)/.config; \
|
||||
fi
|
||||
|
||||
config: $(BUILD_DIR)/buildroot-config/conf
|
||||
nconfig: $(BUILD_DIR)/buildroot-config/nconf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< $(CONFIG_CONFIG_IN)
|
||||
@if ! $(COMMON_CONFIG_ENV) $< $(CONFIG_CONFIG_IN); then \
|
||||
test -f $(CONFIG_DIR)/.config.cmd || rm -f $(CONFIG_DIR)/.config; \
|
||||
fi
|
||||
|
||||
oldconfig: $(BUILD_DIR)/buildroot-config/conf
|
||||
config: $(BUILD_DIR)/buildroot-config/conf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@$(COMMON_CONFIG_ENV) $< $(CONFIG_CONFIG_IN)
|
||||
|
||||
oldconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
|
||||
mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< -o $(CONFIG_CONFIG_IN)
|
||||
@$(COMMON_CONFIG_ENV) $< --oldconfig $(CONFIG_CONFIG_IN)
|
||||
|
||||
randconfig: $(BUILD_DIR)/buildroot-config/conf
|
||||
randconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< -r $(CONFIG_CONFIG_IN)
|
||||
@$(COMMON_CONFIG_ENV) $< --randconfig $(CONFIG_CONFIG_IN)
|
||||
|
||||
allyesconfig: $(BUILD_DIR)/buildroot-config/conf
|
||||
cat $(CONFIG_DEFCONFIG) > $(CONFIG_DIR)/.config
|
||||
allyesconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< -y $(CONFIG_CONFIG_IN)
|
||||
@$(COMMON_CONFIG_ENV) $< --allyesconfig $(CONFIG_CONFIG_IN)
|
||||
|
||||
allnoconfig: $(BUILD_DIR)/buildroot-config/conf
|
||||
allnoconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< -n $(CONFIG_CONFIG_IN)
|
||||
@$(COMMON_CONFIG_ENV) $< --allnoconfig $(CONFIG_CONFIG_IN)
|
||||
|
||||
randpackageconfig: $(BUILD_DIR)/buildroot-config/conf
|
||||
randpackageconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@grep -v BR2_PACKAGE_ $(CONFIG_DIR)/.config > $(CONFIG_DIR)/.config.nopkg
|
||||
@KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
@$(COMMON_CONFIG_ENV) \
|
||||
KCONFIG_ALLCONFIG=$(CONFIG_DIR)/.config.nopkg \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< -r $(CONFIG_CONFIG_IN)
|
||||
$< --randconfig $(CONFIG_CONFIG_IN)
|
||||
@rm -f $(CONFIG_DIR)/.config.nopkg
|
||||
|
||||
allyespackageconfig: $(BUILD_DIR)/buildroot-config/conf
|
||||
allyespackageconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@grep -v BR2_PACKAGE_ $(CONFIG_DIR)/.config > $(CONFIG_DIR)/.config.nopkg
|
||||
@KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
@$(COMMON_CONFIG_ENV) \
|
||||
KCONFIG_ALLCONFIG=$(CONFIG_DIR)/.config.nopkg \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< -y $(CONFIG_CONFIG_IN)
|
||||
$< --allyesconfig $(CONFIG_CONFIG_IN)
|
||||
@rm -f $(CONFIG_DIR)/.config.nopkg
|
||||
|
||||
allnopackageconfig: $(BUILD_DIR)/buildroot-config/conf
|
||||
allnopackageconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@grep -v BR2_PACKAGE_ $(CONFIG_DIR)/.config > $(CONFIG_DIR)/.config.nopkg
|
||||
@KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
@$(COMMON_CONFIG_ENV) \
|
||||
KCONFIG_ALLCONFIG=$(CONFIG_DIR)/.config.nopkg \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< -n $(CONFIG_CONFIG_IN)
|
||||
$< --allnoconfig $(CONFIG_CONFIG_IN)
|
||||
@rm -f $(CONFIG_DIR)/.config.nopkg
|
||||
|
||||
defconfig: $(BUILD_DIR)/buildroot-config/conf
|
||||
silentoldconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< -d $(CONFIG_CONFIG_IN)
|
||||
$(COMMON_CONFIG_ENV) $< --silentoldconfig $(CONFIG_CONFIG_IN)
|
||||
|
||||
defconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@$(COMMON_CONFIG_ENV) $< --defconfig $(CONFIG_CONFIG_IN)
|
||||
|
||||
%_defconfig: $(BUILD_DIR)/buildroot-config/conf $(TOPDIR)/configs/%_defconfig outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@$(COMMON_CONFIG_ENV) $< --defconfig=$(TOPDIR)/configs/$@ $(CONFIG_CONFIG_IN)
|
||||
|
||||
savedefconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
|
||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||
@$(COMMON_CONFIG_ENV) $< --savedefconfig=$(TOPDIR)/defconfig $(CONFIG_CONFIG_IN)
|
||||
|
||||
# check if download URLs are outdated
|
||||
source-check: allyesconfig
|
||||
$(MAKE) _source-check
|
||||
$(MAKE) $(EXTRAMAKEARGS) _source-check
|
||||
|
||||
endif # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
|
||||
|
||||
@@ -567,6 +564,15 @@ endif # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
|
||||
# Cleanup and misc junk
|
||||
#
|
||||
#############################################################
|
||||
|
||||
# outputmakefile generates a Makefile in the output directory, if using a
|
||||
# separate output directory. This allows convenient use of make in the
|
||||
# output directory.
|
||||
outputmakefile:
|
||||
ifeq ($(NEED_WRAPPER),y)
|
||||
$(Q)$(TOPDIR)/scripts/mkmakefile $(TOPDIR) $(O)
|
||||
endif
|
||||
|
||||
clean:
|
||||
rm -rf $(STAGING_DIR) $(TARGET_DIR) $(BINARIES_DIR) $(HOST_DIR) \
|
||||
$(STAMP_DIR) $(BUILD_DIR) $(TOOLCHAIN_DIR)
|
||||
@@ -583,15 +589,7 @@ endif
|
||||
flush:
|
||||
rm -f $(BUILD_DIR)/tgt-config.cache $(BUILD_DIR)/host-config.cache
|
||||
|
||||
%_defconfig: $(TOPDIR)/configs/%_defconfig
|
||||
cp $^ $(CONFIG_DIR)/.config
|
||||
ifeq ($(O),output)
|
||||
@$(MAKE) oldconfig
|
||||
else
|
||||
@$(MAKE) O=$(O) oldconfig
|
||||
endif
|
||||
|
||||
configured: dirs host-sed kernel-headers uclibc-config busybox-config linux26-config
|
||||
configured: dirs kernel-headers uclibc-config busybox-config linux26-config
|
||||
|
||||
prepatch: gcc-patched binutils-patched gdb-patched uclibc-patched
|
||||
|
||||
@@ -631,9 +629,10 @@ help:
|
||||
@echo 'See docs/README and docs/buildroot.html for further details'
|
||||
@echo
|
||||
|
||||
release: OUT=buildroot-$(BR2_VERSION)
|
||||
|
||||
release:
|
||||
OUT=buildroot-$$(grep -A2 BR2_VERSION $(CONFIG_CONFIG_IN)|grep default|cut -f2 -d\"); \
|
||||
git archive --format=tar --prefix=$$OUT/ master|gzip -9 >$$OUT.tar.gz
|
||||
git archive --format=tar --prefix=$(OUT)/ master|gzip -9 >$(OUT).tar.gz
|
||||
|
||||
.PHONY: $(noconfig_targets)
|
||||
|
||||
|
||||
@@ -53,9 +53,11 @@ barebox: $(BAREBOX_DIR)/.installed
|
||||
ifeq ($(BR2_TARGET_BAREBOX),y)
|
||||
TARGETS+=barebox
|
||||
|
||||
# we NEED a board defconfig file
|
||||
# we NEED a board defconfig file unless we're at make source
|
||||
ifeq ($(filter source,$(MAKECMDGOALS)),)
|
||||
ifeq ($(BAREBOX_BOARD_DEFCONFIG),)
|
||||
$(error No Barebox defconfig file. Check your BR2_TARGET_BAREBOX_BOARD_DEFCONFIG setting)
|
||||
endif
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
@@ -88,7 +88,8 @@ ifeq ($(U_BOOT_BOARD_NAME),)
|
||||
endif
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(U_BOOT_CONFIGURE_OPTS) \
|
||||
$(MAKE) -C $(U_BOOT_DIR) \
|
||||
$(MAKE) -C $(U_BOOT_DIR) \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(U_BOOT_ARCH) \
|
||||
$(U_BOOT_BOARD_NAME)_config
|
||||
touch $@
|
||||
|
||||
@@ -192,9 +193,11 @@ u-boot-configured: $(U_BOOT_DIR)/.header_modified
|
||||
ifeq ($(BR2_TARGET_UBOOT),y)
|
||||
TARGETS+=u-boot
|
||||
|
||||
# we NEED a board name
|
||||
# we NEED a board name unless we're at make source
|
||||
ifeq ($(filter source,$(MAKECMDGOALS)),)
|
||||
ifeq ($(U_BOOT_BOARD_NAME),)
|
||||
$(error NO U-Boot board name set. Check your BR2_TARGET_UBOOT_BOARDNAME setting)
|
||||
endif
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
@@ -155,7 +155,6 @@ BR2_OPTIMIZE_2=y
|
||||
#
|
||||
# Advanced
|
||||
#
|
||||
BR2_CONFIG_CACHE=y
|
||||
|
||||
#
|
||||
# Toolchain
|
||||
@@ -568,7 +567,6 @@ BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
|
||||
# BR2_PACKAGE_LIBDAEMON is not set
|
||||
# BR2_PACKAGE_LIBELF is not set
|
||||
# BR2_PACKAGE_LIBEVENT is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_LIBOIL is not set
|
||||
|
||||
|
||||
@@ -131,9 +131,8 @@ BR2_AT91_LINUXPATCH_SITE="http://maxim.org.za/AT91RM9200/2.6"
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -161,7 +160,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
BR2_CONFIG_CACHE=y
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -615,7 +613,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -136,9 +136,8 @@ BR2_KERNEL_ARCH_PATCH_DIR="target/device/Atmel/arch-arm/kernel-patches-$(BR2_KER
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -166,7 +165,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam9260dfc"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -623,7 +621,6 @@ BR2_PACKAGE_MTD_NFTLDUMP=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
BR2_PACKAGE_SETSERIAL=y
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
BR2_PACKAGE_UDEV_VOLUME_ID=y
|
||||
@@ -722,7 +719,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -131,9 +131,8 @@ BR2_AT91_LINUXPATCH_SITE="http://maxim.org.za/AT91RM9200/2.6"
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -161,7 +160,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91rm9200df-rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -539,7 +537,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -142,9 +142,8 @@ BR2_KERNEL_ARCH_PATCH_DIR="target/device/Atmel/arch-arm/kernel-patches-$(BR2_KER
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -172,7 +171,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91rm9200df-rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -552,7 +550,6 @@ BR2_PACKAGE_MTD_NFTLDUMP=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
BR2_PACKAGE_SETSERIAL=y
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
BR2_PACKAGE_UDEV_VOLUME_ID=y
|
||||
@@ -651,7 +648,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -149,9 +149,8 @@ BR2_KERNEL_ARCH_PATCH_DIR="target/device/Atmel/arch-arm/kernel-patches-$(BR2_KER
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -179,7 +178,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam9260dfc-rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -637,7 +635,6 @@ BR2_PACKAGE_MTD_NFTLDUMP=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
BR2_PACKAGE_SETSERIAL=y
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
BR2_PACKAGE_UDEV_VOLUME_ID=y
|
||||
@@ -736,7 +733,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -131,9 +131,8 @@ BR2_AT91_LINUXPATCH_SITE="http://maxim.org.za/AT91RM9200/2.6"
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -161,7 +160,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam9260dfc-rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -539,7 +537,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -150,9 +150,8 @@ BR2_KERNEL_ARCH_PATCH_DIR="target/device/Atmel/arch-arm/kernel-patches-$(BR2_KER
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -180,7 +179,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam9260dfc-rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -560,7 +558,6 @@ BR2_PACKAGE_MTD_NFTLDUMP=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
BR2_PACKAGE_SETSERIAL=y
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
BR2_PACKAGE_UDEV_VOLUME_ID=y
|
||||
@@ -659,7 +656,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -423,7 +423,6 @@ BR2_BLOCKDEV_SUPPORT=y
|
||||
# BR2_PACKAGE_MKDOSFS is not set
|
||||
# BR2_PACKAGE_MTD is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
# BR2_PACKAGE_RAIDTOOLS is not set
|
||||
# BR2_PACKAGE_SETSERIAL is not set
|
||||
# BR2_PACKAGE_SFDISK is not set
|
||||
@@ -502,7 +501,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_ATK is not set
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
BR2_PACKAGE_FONTCONFIG=y
|
||||
BR2_PACKAGE_FREETYPE=y
|
||||
|
||||
@@ -152,9 +152,8 @@ BR2_KERNEL_ARCH_PATCH_DIR="target/device/Atmel/arch-arm/kernel-patches-$(BR2_KER
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -182,7 +181,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam9261ek-NAND"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
BR2_CONFIG_CACHE=y
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -580,7 +578,6 @@ BR2_PACKAGE_MTD_NFTLDUMP=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
BR2_PACKAGE_SETSERIAL=y
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
BR2_PACKAGE_UDEV_VOLUME_ID=y
|
||||
@@ -738,7 +735,6 @@ BR2_PACKAGE_PANGO=y
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
BR2_PACKAGE_LIBERATION=y
|
||||
# BR2_PACKAGE_LIBGLADE is not set
|
||||
BR2_PACKAGE_LIBGLIB12=y
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
BR2_PACKAGE_LIBGTK2=y
|
||||
BR2_PACKAGE_LIBGTK2_ENGINES=y
|
||||
|
||||
@@ -134,9 +134,8 @@ BR2_AT91_LINUXPATCH_SITE="http://maxim.org.za/AT91RM9200/2.6"
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -164,7 +163,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam9261ek-rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -542,7 +540,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -153,9 +153,8 @@ BR2_KERNEL_ARCH_PATCH_DIR="target/device/Atmel/arch-arm/kernel-patches-$(BR2_KER
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -183,7 +182,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam9261ek-NAND"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
BR2_CONFIG_CACHE=y
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -539,7 +537,6 @@ BR2_PACKAGE_MTD_NFTLDUMP=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
BR2_PACKAGE_SETSERIAL=y
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
BR2_PACKAGE_UDEV_VOLUME_ID=y
|
||||
@@ -697,7 +694,6 @@ BR2_PACKAGE_PANGO=y
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
BR2_PACKAGE_LIBERATION=y
|
||||
# BR2_PACKAGE_LIBGLADE is not set
|
||||
BR2_PACKAGE_LIBGLIB12=y
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
BR2_PACKAGE_LIBGTK2=y
|
||||
BR2_PACKAGE_LIBGTK2_ENGINES=y
|
||||
|
||||
@@ -150,9 +150,8 @@ BR2_KERNEL_ARCH_PATCH_DIR="target/device/Atmel/arch-arm/kernel-patches-$(BR2_KER
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -180,7 +179,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam9263ek-NAND"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
BR2_CONFIG_CACHE=y
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -577,7 +575,6 @@ BR2_PACKAGE_MTD_NFTLDUMP=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
BR2_PACKAGE_SETSERIAL=y
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
BR2_PACKAGE_UDEV_VOLUME_ID=y
|
||||
@@ -735,7 +732,6 @@ BR2_PACKAGE_PANGO=y
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
BR2_PACKAGE_LIBERATION=y
|
||||
# BR2_PACKAGE_LIBGLADE is not set
|
||||
BR2_PACKAGE_LIBGLIB12=y
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
BR2_PACKAGE_LIBGTK2=y
|
||||
BR2_PACKAGE_LIBGTK2_ENGINES=y
|
||||
|
||||
@@ -133,9 +133,8 @@ BR2_AT91_LINUXPATCH_SITE="http://maxim.org.za/AT91RM9200/2.6"
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -163,7 +162,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam9263ek-rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -541,7 +539,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -152,9 +152,8 @@ BR2_KERNEL_ARCH_PATCH_DIR="target/device/Atmel/arch-arm/kernel-patches-$(BR2_KER
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -182,7 +181,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam9263ek-NAND"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
BR2_CONFIG_CACHE=y
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -502,7 +500,6 @@ BR2_PACKAGE_MTD_NFTLDUMP=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
BR2_PACKAGE_SETSERIAL=y
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
BR2_PACKAGE_UDEV_VOLUME_ID=y
|
||||
@@ -660,7 +657,6 @@ BR2_PACKAGE_PANGO=y
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
BR2_PACKAGE_LIBERATION=y
|
||||
# BR2_PACKAGE_LIBGLADE is not set
|
||||
BR2_PACKAGE_LIBGLIB12=y
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
BR2_PACKAGE_LIBGTK2=y
|
||||
BR2_PACKAGE_LIBGTK2_ENGINES=y
|
||||
|
||||
@@ -150,9 +150,8 @@ BR2_KERNEL_ARCH_PATCH_DIR="target/device/Atmel/arch-arm/kernel-patches-$(BR2_KER
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -180,7 +179,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam92g20ek-rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -573,7 +571,6 @@ BR2_PACKAGE_MTD_NFTLDUMP=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
BR2_PACKAGE_SETSERIAL=y
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
BR2_PACKAGE_UDEV_VOLUME_ID=y
|
||||
@@ -670,7 +667,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -131,9 +131,8 @@ BR2_AT91_LINUXPATCH_SITE="http://maxim.org.za/AT91RM9200/2.6"
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -161,7 +160,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam9g20dfc-rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -539,7 +537,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -150,9 +150,8 @@ BR2_KERNEL_ARCH_PATCH_DIR="target/device/Atmel/arch-arm/kernel-patches-$(BR2_KER
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -180,7 +179,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="at91sam9g20dfc-rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -560,7 +558,6 @@ BR2_PACKAGE_MTD_NFTLDUMP=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
BR2_PACKAGE_SETSERIAL=y
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
BR2_PACKAGE_UDEV_VOLUME_ID=y
|
||||
@@ -659,7 +656,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -84,9 +84,8 @@ BR2_TARGET_AVR32_ATNGW100_BASE=y
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp --retry-connrefused --waitretry=10"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="zcat"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -113,7 +112,6 @@ BR2_TOPDIR_PREFIX=""
|
||||
BR2_TOPDIR_SUFFIX=""
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -486,7 +484,6 @@ BR2_PACKAGE_MTD_NANDWRITE=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS_3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
# BR2_PACKAGE_SETSERIAL is not set
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
# BR2_PACKAGE_USBMOUNT is not set
|
||||
@@ -587,7 +584,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -69,11 +69,10 @@ BR2_TARGET_AVR32_ATNGW100=y
|
||||
# Commands
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp --retry-connrefused --waitretry=10"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_SVN="svn"
|
||||
BR2_BZR_CO="bzr co"
|
||||
BR2_BZR_UP="bzr up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="zcat"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -109,7 +108,6 @@ BR2_OPTIMIZE_S=y
|
||||
#
|
||||
# Advanced
|
||||
#
|
||||
BR2_CONFIG_CACHE=y
|
||||
|
||||
#
|
||||
# Toolchain
|
||||
@@ -428,7 +426,6 @@ BR2_PACKAGE_MTD_UBIUPDATEVOL=y
|
||||
# BR2_PACKAGE_NTFS_3G is not set
|
||||
# BR2_PACKAGE_NTFSPROGS is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
# BR2_PACKAGE_SETSERIAL is not set
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
# BR2_PACKAGE_SQUASHFS is not set
|
||||
@@ -545,7 +542,6 @@ BR2_PACKAGE_ZLIB=y
|
||||
BR2_PACKAGE_LIBDAEMON=y
|
||||
# BR2_PACKAGE_LIBELF is not set
|
||||
# BR2_PACKAGE_LIBEVENT is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
# BR2_PACKAGE_LIBOIL is not set
|
||||
# BR2_PACKAGE_STARTUP_NOTIFICATION is not set
|
||||
|
||||
@@ -82,9 +82,8 @@ BR2_KERNEL_ARCH_PATCH_DIR="target/device/Atmel/arch-avr32/kernel-patches-$(BR2_K
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp --retry-connrefused --waitretry=10"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="zcat"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -112,7 +111,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -537,7 +535,6 @@ BR2_PACKAGE_MTD_MTD_DEBUG=y
|
||||
# BR2_PACKAGE_MTD_SUMTOOL is not set
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
# BR2_PACKAGE_SETSERIAL is not set
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
# BR2_PACKAGE_USBMOUNT is not set
|
||||
@@ -632,7 +629,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -83,9 +83,8 @@ BR2_KERNEL_ARCH_PATCH_DIR="target/device/Atmel/arch-avr32/kernel-patches-$(BR2_K
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp --retry-connrefused --waitretry=10"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="zcat"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -112,7 +111,6 @@ BR2_TOPDIR_PREFIX=""
|
||||
BR2_TOPDIR_SUFFIX=""
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -544,7 +542,6 @@ BR2_PACKAGE_MTD_MTD_DEBUG=y
|
||||
# ntfs-3g requires a toolchain with LARGEFILE and WCHAR support
|
||||
#
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
# BR2_PACKAGE_SETSERIAL is not set
|
||||
# BR2_PACKAGE_SFDISK is not set
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
@@ -731,7 +728,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -85,9 +85,8 @@ BR2_TARGET_I686=y
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -114,7 +113,6 @@ BR2_TOPDIR_PREFIX=""
|
||||
BR2_TOPDIR_SUFFIX=""
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -152,10 +150,10 @@ BR2_DEFAULT_KERNEL_HEADERS="2.6.29.2"
|
||||
#
|
||||
# BR2_UCLIBC_VERSION_0_9_29 is not set
|
||||
# BR2_UCLIBC_VERSION_0_9_30 is not set
|
||||
BR2_UCLIBC_VERSION_0_9_30_1=y
|
||||
BR2_UCLIBC_VERSION_0_9_31=y
|
||||
# BR2_UCLIBC_VERSION_SNAPSHOT is not set
|
||||
BR2_UCLIBC_VERSION_STRING="0.9.30.1"
|
||||
BR2_UCLIBC_CONFIG="toolchain/uClibc/uClibc-0.9.29.config"
|
||||
BR2_UCLIBC_VERSION_STRING="0.9.31"
|
||||
BR2_UCLIBC_CONFIG="toolchain/uClibc/uClibc-0.9.31.config"
|
||||
# BR2_PTHREAD_DEBUG is not set
|
||||
# BR2_PROGRAM_INVOCATION is not set
|
||||
# BR2_UCLIBC_INSTALL_TEST_SUITE is not set
|
||||
@@ -484,7 +482,6 @@ BR2_PACKAGE_MTD_NFTLDUMP=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS_3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
# BR2_PACKAGE_SETSERIAL is not set
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
# BR2_PACKAGE_USBMOUNT is not set
|
||||
@@ -575,7 +572,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -85,9 +85,8 @@ BR2_TARGET_I686=y
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -114,7 +113,6 @@ BR2_TOPDIR_PREFIX=""
|
||||
BR2_TOPDIR_SUFFIX=""
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -152,10 +150,10 @@ BR2_DEFAULT_KERNEL_HEADERS="2.6.29.2"
|
||||
#
|
||||
# BR2_UCLIBC_VERSION_0_9_29 is not set
|
||||
# BR2_UCLIBC_VERSION_0_9_30 is not set
|
||||
BR2_UCLIBC_VERSION_0_9_30_1=y
|
||||
BR2_UCLIBC_VERSION_0_9_31=y
|
||||
# BR2_UCLIBC_VERSION_SNAPSHOT is not set
|
||||
BR2_UCLIBC_VERSION_STRING="0.9.30.1"
|
||||
BR2_UCLIBC_CONFIG="toolchain/uClibc/uClibc-0.9.30.config"
|
||||
BR2_UCLIBC_VERSION_STRING="0.9.31"
|
||||
BR2_UCLIBC_CONFIG="toolchain/uClibc/uClibc-0.9.31.config"
|
||||
# BR2_PTHREAD_DEBUG is not set
|
||||
# BR2_PROGRAM_INVOCATION is not set
|
||||
# BR2_UCLIBC_INSTALL_TEST_SUITE is not set
|
||||
@@ -484,7 +482,6 @@ BR2_PACKAGE_MTD_NFTLDUMP=y
|
||||
BR2_PACKAGE_MTD_SUMTOOL=y
|
||||
# BR2_PACKAGE_NTFS_3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
# BR2_PACKAGE_SETSERIAL is not set
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
# BR2_PACKAGE_USBMOUNT is not set
|
||||
@@ -575,7 +572,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -81,9 +81,8 @@ BR2_BOARD_PATH="target/device/ARMLTD/$(BR2_BOARD_NAME)"
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -111,7 +110,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -471,7 +469,6 @@ BR2_PACKAGE_TCPDUMP=y
|
||||
# BR2_PACKAGE_MTD is not set
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
BR2_PACKAGE_PCIUTILS=y
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
# BR2_PACKAGE_SETSERIAL is not set
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
# BR2_PACKAGE_USBMOUNT is not set
|
||||
@@ -573,7 +570,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -81,9 +81,8 @@ BR2_BOARD_PATH="target/device/ARMLTD/$(BR2_BOARD_NAME)"
|
||||
# Build options
|
||||
#
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -111,7 +110,6 @@ BR2_TOPDIR_SUFFIX=""
|
||||
BR2_ROOTFS_PREFIX="$(BOARD_NAME)-rootfs"
|
||||
BR2_JLEVEL=2
|
||||
# BR2_DEPRECATED is not set
|
||||
# BR2_CONFIG_CACHE is not set
|
||||
# BR2_ENABLE_DEBUG is not set
|
||||
BR2_STRIP_strip=y
|
||||
# BR2_STRIP_sstrip is not set
|
||||
@@ -453,7 +451,6 @@ BR2_PACKAGE_TCPDUMP=y
|
||||
# BR2_PACKAGE_MTD is not set
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
BR2_PACKAGE_PCIUTILS=y
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
# BR2_PACKAGE_SETSERIAL is not set
|
||||
# BR2_PACKAGE_SMARTMONTOOLS is not set
|
||||
# BR2_PACKAGE_USBMOUNT is not set
|
||||
@@ -552,7 +549,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
@@ -92,9 +92,8 @@ BR2_TARGET_ARM=y
|
||||
#
|
||||
BR2_PRIMARY_SITE=""
|
||||
BR2_WGET="wget --passive-ftp -nd"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -473,7 +472,6 @@ BR2_BLOCKDEV_SUPPORT=y
|
||||
# BR2_PACKAGE_MTD is not set
|
||||
# BR2_PACKAGE_NTFS-3G is not set
|
||||
# BR2_PACKAGE_PCIUTILS is not set
|
||||
# BR2_PACKAGE_PCMCIA is not set
|
||||
# BR2_PACKAGE_RAIDTOOLS is not set
|
||||
# BR2_PACKAGE_SETSERIAL is not set
|
||||
# BR2_PACKAGE_SFDISK is not set
|
||||
@@ -558,7 +556,6 @@ BR2_PACKAGE_XSERVER_none=y
|
||||
#
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
# BR2_PACKAGE_LIBGLIB2 is not set
|
||||
# BR2_PACKAGE_LIBSEXY is not set
|
||||
|
||||
|
||||
@@ -63,9 +63,8 @@ BR2_TARGET_VALKA_V100SC2=y
|
||||
#
|
||||
BR2_PRIMARY_SITE=""
|
||||
BR2_WGET="wget --passive-ftp --retry-connrefused --waitretry=10"
|
||||
BR2_SVN_CO="svn co"
|
||||
BR2_SVN_UP="svn up"
|
||||
BR2_GIT="git clone"
|
||||
BR2_SVN="svn"
|
||||
BR2_GIT="git"
|
||||
BR2_ZCAT="zcat"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
@@ -574,7 +573,6 @@ BR2_PACKAGE_QT_OPENSSL=y
|
||||
# BR2_PACKAGE_PANGO is not set
|
||||
# BR2_PACKAGE_LIBDRM is not set
|
||||
# BR2_PACKAGE_LIBERATION is not set
|
||||
# BR2_PACKAGE_LIBGLIB12 is not set
|
||||
BR2_PACKAGE_LIBGLIB2=y
|
||||
# BR2_PACKAGE_OPENMOTIF is not set
|
||||
# BR2_PACKAGE_FONTCONFIG is not set
|
||||
|
||||
2056
docs/buildroot.html
2056
docs/buildroot.html
File diff suppressed because it is too large
Load Diff
@@ -6,20 +6,20 @@
|
||||
|
||||
<p>
|
||||
|
||||
The latest stable release is <b>2010.05</b>, which can be downloaded
|
||||
The latest stable release is <b>2010.08</b>, which can be downloaded
|
||||
here:<p>
|
||||
|
||||
<a href="/downloads/buildroot-2010.05.tar.gz">buildroot-2010.05.tar.gz</a>
|
||||
<a href="/downloads/buildroot-2010.08.tar.gz">buildroot-2010.08.tar.gz</a>
|
||||
or
|
||||
<a href="/downloads/buildroot-2010.05.tar.bz2">buildroot-2010.05.tar.bz2</a>.
|
||||
<a href="/downloads/buildroot-2010.08.tar.bz2">buildroot-2010.08.tar.bz2</a>.
|
||||
<p>
|
||||
|
||||
The latest release candidate is <b>2010.08-rc1</b>, which can be
|
||||
The latest release candidate is <b>2010.11-rc1</b>, which can be
|
||||
downloaded here:<p>
|
||||
|
||||
<a href="/downloads/buildroot-2010.08-rc1.tar.gz">buildroot-2010.08-rc1.tar.gz</a>
|
||||
<a href="/downloads/buildroot-2010.11-rc1.tar.gz">buildroot-2010.11-rc1.tar.gz</a>
|
||||
or
|
||||
<a href="/downloads/buildroot-2010.08-rc1.tar.bz2">buildroot-2010.08-rc1.tar.bz2</a>.
|
||||
<a href="/downloads/buildroot-2010.11-rc1.tar.bz2">buildroot-2010.11-rc1.tar.bz2</a>.
|
||||
<p>
|
||||
|
||||
This and earlier releases can always be downloaded from
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 8.4 KiB |
@@ -6,6 +6,46 @@
|
||||
|
||||
<ul>
|
||||
|
||||
<li><b>28 September 2010 - Buildroot Developer Day</b>
|
||||
|
||||
<p>A <i>Buildroot Developer Day</i> will take place on
|
||||
Friday, October 29th in Cambridge, UK - Just the day after the
|
||||
<a href="http://www.embeddedlinuxconference.com/elc_europe10/">Embedded
|
||||
Linux Conference Europe</a>. This <i>Developer Day</i> aims
|
||||
at allowing Buildroot developers to meet and exchange ideas on the
|
||||
project and its future. See the
|
||||
<a href="http://lists.busybox.net/pipermail/buildroot/2010-September/037930.html">announcement</a>
|
||||
for more info.</p>
|
||||
|
||||
<p>Thanks to Thomas Petazzoni for taking care of the practical
|
||||
arrangements.</p>
|
||||
|
||||
<li><b>31 August 2010 -- 2010.08 released</b>
|
||||
|
||||
<p>The stable 2010.08 release is out - Thanks to everyone
|
||||
contributing and testing the release candidates. See the
|
||||
<a href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2010.08">CHANGES</a>
|
||||
file for more details, read the
|
||||
<a href="http://lists.busybox.net/pipermail/buildroot/2010-August/037078.html">announcement</a>
|
||||
and go to the <a href="/downloads/">downloads page</a> to pick up the
|
||||
<a href="/downloads/buildroot-2010.08.tar.bz2">2010.08 release</a>.</p>
|
||||
|
||||
<li><b>30 August 2010 -- 2010.08-rc2 released</b>
|
||||
|
||||
<p>RC2 is out with more cleanups and bugfixes, see the <a
|
||||
href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2010.08_rc2">CHANGES</a>
|
||||
file for details.
|
||||
|
||||
<p>Head to the <a href="/downloads/">downloads page</a> to pick up the
|
||||
<a href="/downloads/buildroot-2010.08-rc2.tar.bz2">2010.08-rc2
|
||||
release candidate</a>, and report any problems found to the <a
|
||||
href="lists.html">mailing list</a> or <a
|
||||
href="https://bugs.uclibc.org">bug tracker</a>.</p>
|
||||
|
||||
This is very much expected to be the final release
|
||||
candidate, so give it a good test and expect a final 2010.08
|
||||
release before September unless critical issues are found.</p>
|
||||
|
||||
<li><b>30 July 2010 -- 2010.08-rc1 released</b>
|
||||
|
||||
<p>We have a new release candidate! Lots of changes all over the
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
body {
|
||||
margin: 0px 0px 0px 0px;
|
||||
margin: 0px;
|
||||
color: white;
|
||||
background-color: #93c6f9;
|
||||
font: 12pt/18pt georgia;
|
||||
}
|
||||
|
||||
div.main {
|
||||
margin: 10px 10px 10px 10px;
|
||||
padding: 10px 10px 10px 10px;
|
||||
margin: 10px;
|
||||
padding: 10px;
|
||||
color: black;
|
||||
background-color: white;
|
||||
}
|
||||
@@ -16,49 +16,49 @@ div.titre {
|
||||
text-align: center;
|
||||
background-color: #336699;
|
||||
color: white;
|
||||
padding: 10px 10px 10px 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
font: 26pt georgia;
|
||||
letter-spacing: 3px;
|
||||
font: 26pt georgia;
|
||||
letter-spacing: 3px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
padding: 5px 5px 5px 5px;
|
||||
padding: 5px;
|
||||
background-color: #c2e0ff;
|
||||
color: #336699;
|
||||
}
|
||||
|
||||
a:link, a:visited {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
a:link, a:visited {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
color: #336699;
|
||||
}
|
||||
|
||||
a:hover, a:active {
|
||||
text-decoration: underline;
|
||||
a:hover, a:active {
|
||||
text-decoration: underline;
|
||||
color: #9685BA;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font: italic normal 14pt georgia;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 0px;
|
||||
h3 {
|
||||
font: italic normal 14pt georgia;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 0px;
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
color: #336699;
|
||||
border-bottom: 2px solid #336699;
|
||||
border-bottom: 2px solid #336699;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font: italic normal 14pt georgia;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 0px;
|
||||
h4 {
|
||||
font: italic normal 14pt georgia;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 0px;
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
border-bottom: 1px dashed black;
|
||||
border-bottom: 1px dashed black;
|
||||
}
|
||||
|
||||
p {
|
||||
@@ -68,8 +68,8 @@ p {
|
||||
}
|
||||
|
||||
pre {
|
||||
border-left: 3px #aaa solid;
|
||||
margin-left: 1em;
|
||||
padding: 0 1em;
|
||||
color: #888;
|
||||
}
|
||||
border-left: 3px #aaa solid;
|
||||
margin-left: 1em;
|
||||
padding: 0 1em;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
@@ -6,15 +6,10 @@
|
||||
#
|
||||
#############################################################
|
||||
|
||||
ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
|
||||
INITRAMFS_TARGET:=initramfs-root
|
||||
else
|
||||
INITRAMFS_TARGET:= #nothing
|
||||
endif
|
||||
|
||||
define ROOTFS_INITRAMFS_INIT_SYMLINK
|
||||
rm -f $(TARGET_DIR)/init
|
||||
ln -s sbin/init $(TARGET_DIR)/init
|
||||
if [ ! -e $(TARGET_DIR)/init ]; then \
|
||||
ln -s sbin/init $(TARGET_DIR)/init; \
|
||||
fi
|
||||
endef
|
||||
|
||||
ROOTFS_INITRAMFS_PRE_GEN_HOOKS += ROOTFS_INITRAMFS_INIT_SYMLINK
|
||||
|
||||
@@ -81,7 +81,9 @@ config BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
|
||||
the pagesize is not a power of 2
|
||||
|
||||
config BR2_JFFS2_TARGET_SREC
|
||||
bool "RootFS in SREC file formet"
|
||||
bool "RootFS in SREC file format"
|
||||
help
|
||||
The binary data will be encoded in Motorola's S-record format
|
||||
|
||||
config BR2_TARGET_ROOTFS_JFFS2_PAD
|
||||
bool "Pad output"
|
||||
@@ -95,10 +97,10 @@ config BR2_TARGET_ROOTFS_JFFS2_PADSIZE
|
||||
|
||||
choice
|
||||
prompt "Endianess"
|
||||
default BR2_TARGET_ROOTFS_JFFS2_BE if BR2_alpha || BR2_armeb || \
|
||||
default BR2_TARGET_ROOTFS_JFFS2_BE if BR2_armeb || \
|
||||
BR2_avr32 || BR2_m68k || BR2_mips || \
|
||||
BR2_powerpc || BR2_sh2a_nofpueb || BR2_sh2eb || \
|
||||
BR2_sh3eb || BR2_sh4eb || BR2_sparc || BR2_sparc64
|
||||
BR2_sh3eb || BR2_sh4eb || BR2_sparc
|
||||
|
||||
config BR2_TARGET_ROOTFS_JFFS2_LE
|
||||
bool "little-endian"
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
# ~/.bashrc: executed by bash(1) for non-login interactive shells.
|
||||
|
||||
export PATH=\
|
||||
/bin:\
|
||||
/sbin:\
|
||||
/usr/bin:\
|
||||
/usr/sbin:\
|
||||
/usr/bin/X11:\
|
||||
/usr/local/bin
|
||||
|
||||
# If running interactively, then:
|
||||
if [ "$PS1" ]; then
|
||||
|
||||
if [ "$BASH" ]; then
|
||||
export PS1="[\u@\h \W]\\$ "
|
||||
else
|
||||
if [ "`id -u`" -eq 0 ]; then
|
||||
export PS1='# '
|
||||
else
|
||||
export PS1='$ '
|
||||
fi
|
||||
fi
|
||||
|
||||
export USER=`id -un`
|
||||
export LOGNAME=$USER
|
||||
export HOSTNAME=`/bin/hostname`
|
||||
export HISTSIZE=1000
|
||||
export HISTFILESIZE=1000
|
||||
export PAGER='/bin/more '
|
||||
export EDITOR='/bin/vi'
|
||||
export INPUTRC=/etc/inputrc
|
||||
export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
|
||||
export LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:';
|
||||
|
||||
### Some aliases
|
||||
alias ps2='ps facux '
|
||||
alias ps1='ps faxo "%U %t %p %a" '
|
||||
alias af='ps af'
|
||||
alias cls='clear'
|
||||
alias ll='/bin/ls --color=tty -laFh'
|
||||
alias ls='/bin/ls --color=tty -F'
|
||||
alias df='df -h'
|
||||
alias indent='indent -bad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -cp33 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs -npsl -nsc -nsob -nss -ts4 '
|
||||
#alias bc='bc -l'
|
||||
alias minicom='minicom -c on'
|
||||
alias calc='calc -Cd '
|
||||
alias bc='calc -Cd '
|
||||
fi;
|
||||
@@ -19,5 +19,23 @@ config BR2_TARGET_ROOTFS_SQUASHFS3
|
||||
bool "3.x"
|
||||
|
||||
endchoice
|
||||
endif
|
||||
|
||||
choice
|
||||
prompt "Compression algorithm"
|
||||
default BR2_TARGET_ROOTFS_SQUASHFS4_GZIP
|
||||
depends on BR2_TARGET_ROOTFS_SQUASHFS4
|
||||
help
|
||||
Select the squashfs compression algorithm to use when
|
||||
generating the filesystem.
|
||||
|
||||
config BR2_TARGET_ROOTFS_SQUASHFS4_GZIP
|
||||
bool "gzip"
|
||||
|
||||
config BR2_TARGET_ROOTFS_SQUASHFS4_LZMA
|
||||
bool "lzma"
|
||||
|
||||
config BR2_TARGET_ROOTFS_SQUASHFS4_LZO
|
||||
bool "lzo"
|
||||
|
||||
endchoice
|
||||
endif
|
||||
|
||||
@@ -6,11 +6,22 @@
|
||||
|
||||
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4),y)
|
||||
ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
|
||||
|
||||
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y)
|
||||
ROOTFS_SQUASHFS_ARGS += -comp lzo
|
||||
else
|
||||
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZMA),y)
|
||||
ROOTFS_SQUASHFS_ARGS += -comp lzma
|
||||
else
|
||||
ROOTFS_SQUASHFS_ARGS += -comp gzip
|
||||
endif
|
||||
endif
|
||||
|
||||
else
|
||||
ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs3
|
||||
|
||||
ifeq ($(BR2_ENDIAN),"BIG")
|
||||
ROOTFS_SQUASHF_ARGS=-be
|
||||
ROOTFS_SQUASHFS_ARGS=-be
|
||||
else
|
||||
ROOTFS_SQUASHFS_ARGS=-le
|
||||
endif
|
||||
@@ -19,7 +30,8 @@ endif
|
||||
|
||||
define ROOTFS_SQUASHFS_CMD
|
||||
$(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $$@ -noappend \
|
||||
$(ROOTFS_SQUASHFS_ARGS)
|
||||
$(ROOTFS_SQUASHFS_ARGS) && \
|
||||
chmod 0644 $$@
|
||||
endef
|
||||
|
||||
$(eval $(call ROOTFS_TARGET,squashfs))
|
||||
|
||||
@@ -19,10 +19,10 @@ if BR2_LINUX_KERNEL
|
||||
#
|
||||
choice
|
||||
prompt "Kernel version"
|
||||
default BR2_LINUX_KERNEL_2_6_34
|
||||
default BR2_LINUX_KERNEL_2_6_36
|
||||
|
||||
config BR2_LINUX_KERNEL_2_6_34
|
||||
bool "2.6.34"
|
||||
config BR2_LINUX_KERNEL_2_6_36
|
||||
bool "2.6.36"
|
||||
|
||||
config BR2_LINUX_KERNEL_SAME_AS_HEADERS
|
||||
bool "Same as toolchain kernel headers"
|
||||
@@ -52,7 +52,7 @@ endchoice
|
||||
config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
|
||||
string "Kernel version"
|
||||
depends on BR2_LINUX_KERNEL_CUSTOM_VERSION
|
||||
default "2.6.34"
|
||||
default "2.6.36"
|
||||
|
||||
config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
|
||||
string "URL of custom kernel tarball"
|
||||
@@ -60,7 +60,7 @@ config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
|
||||
|
||||
config BR2_LINUX_KERNEL_VERSION
|
||||
string
|
||||
default "2.6.34.1" if BR2_LINUX_KERNEL_2_6_34
|
||||
default "2.6.36" if BR2_LINUX_KERNEL_2_6_36
|
||||
default BR2_DEFAULT_KERNEL_HEADERS if BR2_LINUX_KERNEL_SAME_AS_HEADERS
|
||||
default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE if BR2_LINUX_KERNEL_CUSTOM_VERSION
|
||||
default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
|
||||
@@ -111,20 +111,22 @@ config BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE
|
||||
|
||||
choice
|
||||
prompt "Kernel binary format"
|
||||
default BR2_LINUX_KERNEL_UIMAGE if !BR2_i386 && !BR2_x86_64
|
||||
default BR2_LINUX_KERNEL_BZIMAGE if BR2_i386 || BR2_x86_64
|
||||
|
||||
config BR2_LINUX_KERNEL_UIMAGE
|
||||
bool "uImage"
|
||||
depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_avr32 || BR2_sh || BR2_sh64
|
||||
|
||||
config BR2_LINUX_KERNEL_BZIMAGE
|
||||
bool "bzImage"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
|
||||
config BR2_LINUX_KERNEL_ZIMAGE
|
||||
bool "zImage"
|
||||
depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_sparc || BR2_sh || BR2_sh64 || BR2_xtensa
|
||||
|
||||
config BR2_LINUX_KERNEL_VMLINUX
|
||||
bool "vmlinux"
|
||||
config BR2_LINUX_KERNEL_VMLINUX_BIN
|
||||
bool "vmlinux.bin"
|
||||
depends on BR2_mips || BR2_mipsel || BR2_sh || BR2_sh64
|
||||
|
||||
endchoice
|
||||
|
||||
|
||||
@@ -38,11 +38,15 @@ else ifeq ($(BR2_LINUX_KERNEL_BZIMAGE),y)
|
||||
LINUX26_IMAGE_NAME=bzImage
|
||||
else ifeq ($(BR2_LINUX_KERNEL_ZIMAGE),y)
|
||||
LINUX26_IMAGE_NAME=zImage
|
||||
else ifeq ($(BR2_LINUX_KERNEL_VMLINUX),y)
|
||||
else ifeq ($(BR2_LINUX_KERNEL_VMLINUX_BIN),y)
|
||||
LINUX26_IMAGE_NAME=vmlinux.bin
|
||||
endif
|
||||
|
||||
ifeq ($(KERNEL_ARCH),avr32)
|
||||
LINUX26_IMAGE_PATH=$(LINUX26_DIR)/arch/$(KERNEL_ARCH)/boot/images/$(LINUX26_IMAGE_NAME)
|
||||
else
|
||||
LINUX26_IMAGE_PATH=$(LINUX26_DIR)/arch/$(KERNEL_ARCH)/boot/$(LINUX26_IMAGE_NAME)
|
||||
endif
|
||||
|
||||
# Download
|
||||
$(LINUX26_DIR)/.stamp_downloaded:
|
||||
@@ -104,9 +108,6 @@ ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_BLK_DEV_INITRD,$(@D)/.config)
|
||||
$(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_SOURCE,\"$(BINARIES_DIR)/rootfs.initramfs\",$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_INITRAMFS_COMPRESSION_GZIP,$(@D)/.config)
|
||||
else
|
||||
$(call KCONFIG_DISABLE_OPT,CONFIG_BLK_DEV_INITRD,$(@D)/.config)
|
||||
$(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_SOURCE,\"\",$(@D)/.config)
|
||||
endif
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(@D) oldconfig
|
||||
$(Q)touch $@
|
||||
@@ -137,7 +138,7 @@ $(LINUX26_DIR)/.stamp_installed: $(LINUX26_DIR)/.stamp_compiled
|
||||
|
||||
linux26: host-module-init-tools $(LINUX26_DEPENDENCIES) $(LINUX26_DIR)/.stamp_installed
|
||||
|
||||
linux26-menuconfig linux26-xconfig linux26-gconfig: host-sed dirs $(LINUX26_DIR)/.stamp_configured
|
||||
linux26-menuconfig linux26-xconfig linux26-gconfig: dirs $(LINUX26_DIR)/.stamp_configured
|
||||
$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) $(subst linux26-,,$@)
|
||||
|
||||
# Support for rebuilding the kernel after the initramfs file list has
|
||||
@@ -162,6 +163,7 @@ TARGETS+=linux26
|
||||
endif
|
||||
|
||||
# Checks to give errors that the user can understand
|
||||
ifeq ($(filter source,$(MAKECMDGOALS)),)
|
||||
ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y)
|
||||
ifeq ($(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG)),)
|
||||
$(error No kernel defconfig name specified, check your BR2_LINUX_KERNEL_DEFCONFIG setting)
|
||||
@@ -172,4 +174,6 @@ ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y)
|
||||
ifeq ($(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE)),)
|
||||
$(error No kernel configuration file specified, check your BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE setting)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
@@ -13,6 +13,7 @@ source "package/gzip/Config.in"
|
||||
endif
|
||||
source "package/lzop/Config.in"
|
||||
source "package/lzma/Config.in"
|
||||
source "package/xz/Config.in"
|
||||
endmenu
|
||||
|
||||
menu "Debugging, profiling and benchmark"
|
||||
@@ -60,6 +61,7 @@ source "package/grep/Config.in"
|
||||
endif
|
||||
source "package/intltool/Config.in"
|
||||
source "package/make/Config.in"
|
||||
source "package/mpc/Config.in"
|
||||
source "package/mpfr/Config.in"
|
||||
source "package/libtool/Config.in"
|
||||
source "package/m4/Config.in"
|
||||
@@ -77,7 +79,6 @@ menu "Games"
|
||||
source "package/games/ace_of_penguins/Config.in"
|
||||
source "package/games/gnuchess/Config.in"
|
||||
source "package/games/magiccube4d/Config.in"
|
||||
source "package/games/lxdoom/Config.in"
|
||||
source "package/games/prboom/Config.in"
|
||||
source "package/games/doom-wad/Config.in"
|
||||
source "package/games/rubix/Config.in"
|
||||
@@ -85,6 +86,9 @@ endmenu
|
||||
|
||||
menu "Graphic libraries and applications (graphic/text)"
|
||||
|
||||
comment "Graphic applications"
|
||||
source "package/rrdtool/Config.in"
|
||||
|
||||
comment "graphic libraries"
|
||||
source "package/directfb/Config.in"
|
||||
source "package/directfb-examples/Config.in"
|
||||
@@ -108,9 +112,6 @@ source "package/sdl_gfx/Config.in"
|
||||
|
||||
comment "other GUIs"
|
||||
source "package/qt/Config.in"
|
||||
|
||||
#source "package/microwin/Config.in"
|
||||
|
||||
source "package/x11r7/Config.in"
|
||||
|
||||
comment "X libraries and helper libraries"
|
||||
@@ -124,7 +125,6 @@ source "package/blackbox/Config.in"
|
||||
|
||||
comment "X applications"
|
||||
source "package/alsamixergui/Config.in"
|
||||
source "package/dillo/Config.in"
|
||||
source "package/docker/Config.in"
|
||||
source "package/gqview/Config.in"
|
||||
source "package/gmpc/Config.in"
|
||||
@@ -162,6 +162,7 @@ source "package/fis/Config.in"
|
||||
source "package/gadgetfs-test/Config.in"
|
||||
source "package/genext2fs/Config.in"
|
||||
source "package/genromfs/Config.in"
|
||||
source "package/gpsd/Config.in"
|
||||
source "package/gvfs/Config.in"
|
||||
source "package/hal/Config.in"
|
||||
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
@@ -172,6 +173,7 @@ source "package/hwdata/Config.in"
|
||||
source "package/i2c-tools/Config.in"
|
||||
source "package/input-tools/Config.in"
|
||||
source "package/iostat/Config.in"
|
||||
source "package/kbd/Config.in"
|
||||
source "package/lm-sensors/Config.in"
|
||||
source "package/lvm2/Config.in"
|
||||
source "package/makedevs/Config.in"
|
||||
@@ -181,7 +183,7 @@ source "package/mtd/Config.in"
|
||||
source "package/ntfs-3g/Config.in"
|
||||
source "package/ntfsprogs/Config.in"
|
||||
source "package/pciutils/Config.in"
|
||||
source "package/pcmcia/Config.in"
|
||||
source "package/rng-tools/Config.in"
|
||||
source "package/setserial/Config.in"
|
||||
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
# busybox has fdisk
|
||||
@@ -192,10 +194,7 @@ source "package/squashfs/Config.in"
|
||||
source "package/squashfs3/Config.in"
|
||||
source "package/sshfs/Config.in"
|
||||
source "package/sysstat/Config.in"
|
||||
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
# mdev
|
||||
source "package/udev/Config.in"
|
||||
endif
|
||||
source "package/usb_modeswitch/Config.in"
|
||||
source "package/usbmount/Config.in"
|
||||
source "package/usbutils/Config.in"
|
||||
@@ -269,9 +268,10 @@ source "package/libart/Config.in"
|
||||
source "package/libdrm/Config.in"
|
||||
source "package/libgail/Config.in"
|
||||
source "package/libglade/Config.in"
|
||||
source "package/libgtk12/Config.in"
|
||||
source "package/gdk-pixbuf/Config.in"
|
||||
source "package/libgtk2/Config.in"
|
||||
source "package/libpng/Config.in"
|
||||
source "package/librsvg/Config.in"
|
||||
source "package/libsvgtiny/Config.in"
|
||||
source "package/libungif/Config.in"
|
||||
source "package/pango/Config.in"
|
||||
@@ -313,13 +313,13 @@ source "package/libupnp/Config.in"
|
||||
endmenu
|
||||
|
||||
menu "Other"
|
||||
source "package/argp-standalone/Config.in"
|
||||
source "package/libatomic_ops/Config.in"
|
||||
source "package/libcap/Config.in"
|
||||
source "package/libdaemon/Config.in"
|
||||
source "package/libelf/Config.in"
|
||||
source "package/libevent/Config.in"
|
||||
source "package/libfloat/Config.in"
|
||||
source "package/libglib12/Config.in"
|
||||
source "package/libglib2/Config.in"
|
||||
source "package/liboil/Config.in"
|
||||
source "package/startup-notification/Config.in"
|
||||
@@ -403,6 +403,7 @@ source "package/netsnmp/Config.in"
|
||||
source "package/netstat-nat/Config.in"
|
||||
source "package/nfs-utils/Config.in"
|
||||
source "package/ntp/Config.in"
|
||||
source "package/nuttcp/Config.in"
|
||||
source "package/olsr/Config.in"
|
||||
source "package/openntpd/Config.in"
|
||||
source "package/openssh/Config.in"
|
||||
@@ -420,7 +421,6 @@ source "package/ser2net/Config.in"
|
||||
source "package/socat/Config.in"
|
||||
source "package/spawn-fcgi/Config.in"
|
||||
source "package/squid/Config.in"
|
||||
source "package/stunnel/Config.in"
|
||||
source "package/tcpdump/Config.in"
|
||||
source "package/tcpreplay/Config.in"
|
||||
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
|
||||
@@ -64,13 +64,8 @@ $(2)_MAKE_ENV ?=
|
||||
$(2)_MAKE_OPT ?=
|
||||
$(2)_AUTORECONF ?= NO
|
||||
$(2)_AUTORECONF_OPT ?=
|
||||
$(2)_USE_CONFIG_CACHE ?= $(if $(BR2_CONFIG_CACHE),YES,NO)
|
||||
$(2)_INSTALL_STAGING_OPT ?= DESTDIR=$$(STAGING_DIR) install
|
||||
ifeq ($(BR2_ENABLE_DEBUG),y)
|
||||
$(2)_INSTALL_TARGET_OPT ?= DESTDIR=$$(TARGET_DIR) install
|
||||
else
|
||||
$(2)_INSTALL_TARGET_OPT ?= DESTDIR=$$(TARGET_DIR) install-strip
|
||||
endif
|
||||
$(2)_CLEAN_OPT ?= clean
|
||||
$(2)_UNINSTALL_STAGING_OPT ?= DESTDIR=$$(STAGING_DIR) uninstall
|
||||
$(2)_UNINSTALL_TARGET_OPT ?= DESTDIR=$$(TARGET_DIR) uninstall
|
||||
@@ -92,7 +87,6 @@ define $(2)_CONFIGURE_CMDS
|
||||
$$(TARGET_CONFIGURE_ARGS) \
|
||||
$$($$(PKG)_CONF_ENV) \
|
||||
./configure \
|
||||
$$(if $$(filter YES,$$($$(PKG)_USE_CONFIG_CACHE)),--cache-file="$(BUILD_DIR)/tgt-config.cache",) \
|
||||
--target=$$(GNU_TARGET_NAME) \
|
||||
--host=$$(GNU_TARGET_NAME) \
|
||||
--build=$$(GNU_HOST_NAME) \
|
||||
@@ -116,7 +110,6 @@ define $(2)_CONFIGURE_CMDS
|
||||
LDFLAGS="$$(HOST_LDFLAGS)" \
|
||||
$$($$(PKG)_CONF_ENV) \
|
||||
./configure \
|
||||
$$(if $$(filter YES,$$($$(PKG)_USE_CONFIG_CACHE)),--cache-file="$(BUILD_DIR)/host-config.cache",) \
|
||||
--prefix="$$(HOST_DIR)/usr" \
|
||||
--sysconfdir="$$(HOST_DIR)/etc" \
|
||||
$$($$(PKG)_CONF_OPT) \
|
||||
@@ -142,11 +135,17 @@ $(2)_POST_PATCH_HOOKS += UPDATE_CONFIG_HOOK
|
||||
# Hook to patch libtool to make it work properly for cross-compilation
|
||||
#
|
||||
define LIBTOOL_PATCH_HOOK
|
||||
@$(call MESSAGE,"Patching libtool")
|
||||
$(Q)if test "$$($$(PKG)_LIBTOOL_PATCH)" = "YES" -a \
|
||||
"$$($$(PKG)_AUTORECONF)" != "YES"; then \
|
||||
for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \
|
||||
toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool.patch; \
|
||||
@$$(call MESSAGE,"Patching libtool")
|
||||
$(Q)if test "$$($$(PKG)_LIBTOOL_PATCH)" = "YES" \
|
||||
-a "$$($$(PKG)_AUTORECONF)" != "YES"; then \
|
||||
for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \
|
||||
ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' $$$$i | \
|
||||
sed -e 's/\([0-9].[0-9]*\).*/\1/' -e 's/\"//'`; \
|
||||
if test $$$${ltmain_version} = '1.5'; then \
|
||||
toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v1.5.patch; \
|
||||
elif test $$$${ltmain_version} = "2.2"; then\
|
||||
toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v2.2.patch; \
|
||||
fi \
|
||||
done \
|
||||
fi
|
||||
endef
|
||||
@@ -160,17 +159,22 @@ endif
|
||||
# Hook to autoreconf the package if needed
|
||||
#
|
||||
define AUTORECONF_HOOK
|
||||
@$(call MESSAGE,"Autoreconfiguring")
|
||||
@$$(call MESSAGE,"Autoreconfiguring")
|
||||
$(Q)cd $$($$(PKG)_SRCDIR) && $(AUTORECONF) $$($$(PKG)_AUTORECONF_OPT)
|
||||
$(Q)if test "$($$(PKG)_LIBTOOL_PATCH)" = "YES"; then \
|
||||
$(Q)if test "$$($$(PKG)_LIBTOOL_PATCH)" = "YES"; then \
|
||||
for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \
|
||||
toolchain/patch-kernel.sh $${i%/*} package buildroot-libtool.patch; \
|
||||
ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' $$$$i | sed 's/\([0-9].[0-9]*\).*/\1/'`; \
|
||||
if test $$$${ltmain_version} = "1.5"; then \
|
||||
toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v1.5.patch; \
|
||||
elif test $$$${ltmain_version} = "2.2"; then\
|
||||
toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v2.2.patch; \
|
||||
fi \
|
||||
done \
|
||||
fi
|
||||
endef
|
||||
|
||||
ifeq ($$($(2)_AUTORECONF),YES)
|
||||
$(2)_POST_PATCH_HOOKS += AUTORECONF_HOOK
|
||||
$(2)_PRE_CONFIGURE_HOOKS += AUTORECONF_HOOK
|
||||
$(2)_DEPENDENCIES += host-automake host-autoconf host-libtool
|
||||
endif
|
||||
|
||||
|
||||
@@ -116,7 +116,13 @@ TARGET_CROSS=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-
|
||||
else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
|
||||
TOOLCHAIN_EXTERNAL_PREFIX:=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX))
|
||||
TOOLCHAIN_EXTERNAL_PATH:=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PATH))
|
||||
ifneq ($(TOOLCHAIN_EXTERNAL_PATH),)
|
||||
TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PATH)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)-
|
||||
else
|
||||
TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PREFIX)-
|
||||
endif
|
||||
else ifeq ($(BR2_TOOLCHAIN_CTNG),y)
|
||||
TARGET_CROSS=$(TOOLCHAIN_DIR)/bin/$(REAL_GNU_TARGET_NAME)-
|
||||
endif
|
||||
|
||||
# Quotes are needed for spaces et al in path components.
|
||||
@@ -161,7 +167,9 @@ endif
|
||||
INSTALL:=$(shell which install || type -p install)
|
||||
FLEX:=$(shell which flex || type -p flex)
|
||||
BISON:=$(shell which bison || type -p bison)
|
||||
SED:=$(shell which sed || type -p sed) -i -e
|
||||
|
||||
HOST_CFLAGS ?= -O2
|
||||
HOST_CFLAGS += -I$(HOST_DIR)/include -I$(HOST_DIR)/usr/include
|
||||
HOST_CXXFLAGS += -I$(HOST_DIR)/include -I$(HOST_DIR)/usr/include
|
||||
HOST_LDFLAGS += -L$(HOST_DIR)/lib -L$(HOST_DIR)/usr/lib -Wl,-rpath,$(HOST_DIR)/usr/lib
|
||||
|
||||
@@ -68,6 +68,92 @@ MESSAGE = echo "$(TERM_BOLD)>>> $($(PKG)_NAME) $($(PKG)_VERSION) $(1)$(TERM_RESE
|
||||
TERM_BOLD := $(shell tput smso)
|
||||
TERM_RESET := $(shell tput rmso)
|
||||
|
||||
# Download method commands
|
||||
WGET:=$(call qstrip,$(BR2_WGET)) $(QUIET)
|
||||
SVN:=$(call qstrip,$(BR2_SVN)) $(QUIET)
|
||||
BZR:=$(call qstrip,$(BR2_BZR)) $(QUIET)
|
||||
GIT:=$(call qstrip,$(BR2_GIT)) $(QUIET)
|
||||
|
||||
# Default spider mode is 'DOWNLOAD'. Other possible values are 'SOURCE_CHECK'
|
||||
# used by the _source-check target and 'SHOW_EXTERNAL_DEPS', used by the
|
||||
# external-deps target.
|
||||
DL_MODE=DOWNLOAD
|
||||
|
||||
DL_DIR=$(call qstrip,$(BR2_DL_DIR))
|
||||
ifeq ($(DL_DIR),)
|
||||
DL_DIR:=$(TOPDIR)/dl
|
||||
endif
|
||||
|
||||
################################################################################
|
||||
# The DOWNLOAD_{GIT,SVN} helpers are in charge of getting a working copy of
|
||||
# the source repository for their corresponding SCM, checking out the requested
|
||||
# version / commit / tag, and create an archive out of it. DOWNLOAD_WGET is the
|
||||
# normal wget-based download mechanism.
|
||||
#
|
||||
# The SOURCE_CHECK_{GIT,SVN,WGET} helpers are in charge of simply checking that
|
||||
# the source is available for download. This can be used to make sure one will
|
||||
# be able to get all the sources needed for one's build configuration.
|
||||
#
|
||||
# The SHOW_EXTERNAL_DEPS_{GIT,SVN,WGET} helpers simply output to the console
|
||||
# the names of the files that will be downloaded, or path and revision of the
|
||||
# source repositories, producing a list of all the "external dependencies" of
|
||||
# a given build configuration.
|
||||
################################################################################
|
||||
|
||||
define DOWNLOAD_GIT
|
||||
test -e $(DL_DIR)/$($(PKG)_SOURCE) || \
|
||||
(pushd $(DL_DIR) > /dev/null && \
|
||||
$(GIT) clone $($(PKG)_SITE) $($(PKG)_BASE_NAME) && \
|
||||
pushd $($(PKG)_BASE_NAME) > /dev/null && \
|
||||
$(GIT) archive --format=tar --prefix=$($(PKG)_BASE_NAME)/ $($(PKG)_DL_VERSION) | \
|
||||
gzip -c > $(DL_DIR)/$($(PKG)_SOURCE) && \
|
||||
popd > /dev/null && \
|
||||
rm -rf $($(PKG)_DL_DIR) && \
|
||||
popd > /dev/null)
|
||||
endef
|
||||
|
||||
# TODO: improve to check that the given PKG_DL_VERSION exists on the remote
|
||||
# repository
|
||||
define SOURCE_CHECK_GIT
|
||||
$(GIT) ls-remote --heads $($(PKG)_SITE) > /dev/null
|
||||
endef
|
||||
|
||||
define SHOW_EXTERNAL_DEPS_GIT
|
||||
echo "$($(PKG)_SITE) [git: $($(PKG)_DL_VERSION)]"
|
||||
endef
|
||||
|
||||
|
||||
define DOWNLOAD_SVN
|
||||
test -e $(DL_DIR)/$($(PKG)_SOURCE) || \
|
||||
(pushd $(DL_DIR) > /dev/null && \
|
||||
$(SVN) export -r $($(PKG)_DL_VERSION) $($(PKG)_SITE) $($(PKG)_DL_DIR) && \
|
||||
$(TAR) czf $($(PKG)_SOURCE) $($(PKG)_BASE_NAME)/ && \
|
||||
rm -rf $($(PKG)_DL_DIR) && \
|
||||
popd > /dev/null)
|
||||
endef
|
||||
|
||||
define SOURCE_CHECK_SVN
|
||||
$(SVN) ls $($(PKG)_SITE) > /dev/null
|
||||
endef
|
||||
|
||||
define SHOW_EXTERNAL_DEPS_SVN
|
||||
echo "$($(PKG)_SITE) [svn: $($(PKG)_DL_VERSION)]"
|
||||
endef
|
||||
|
||||
|
||||
define DOWNLOAD_WGET
|
||||
test -e $(DL_DIR)/$(2) || \
|
||||
$(WGET) -P $(DL_DIR) $(call qstrip,$(1))/$(2)
|
||||
endef
|
||||
|
||||
define SOURCE_CHECK_WGET
|
||||
$(WGET) --spider $(call qstrip,$(1))/$(2)
|
||||
endef
|
||||
|
||||
define SHOW_EXTERNAL_DEPS_WGET
|
||||
echo $(2)
|
||||
endef
|
||||
|
||||
################################################################################
|
||||
# DOWNLOAD -- Download helper. Will try to download source from:
|
||||
# 1) BR2_PRIMARY_SITE if enabled
|
||||
@@ -81,16 +167,22 @@ TERM_RESET := $(shell tput rmso)
|
||||
# $(call DOWNLOAD,$(FOO_SITE),$(FOO_SOURCE))
|
||||
################################################################################
|
||||
|
||||
# support make source-check/external-deps
|
||||
ifneq ($(SPIDER),)
|
||||
DOWNLOAD=$(WGET) -P $(DL_DIR) $(1)/$(2)
|
||||
else
|
||||
define DOWNLOAD
|
||||
$(Q)test -e $(DL_DIR)/$(2) || \
|
||||
for site in $(call qstrip,$(BR2_PRIMARY_SITE)) $(1) $(call qstrip,$(BR2_BACKUP_SITE)); \
|
||||
do $(WGET) -P $(DL_DIR) $$site/$(2) && exit; done
|
||||
$(Q)if test -n "$(call qstrip,$(BR2_PRIMARY_SITE))" ; then \
|
||||
$(call $(DL_MODE)_WGET,$(BR2_PRIMARY_SITE),$(2)) && exit ; \
|
||||
fi ; \
|
||||
if test -n "$(1)" ; then \
|
||||
case "$($(PKG)_SITE_METHOD)" in \
|
||||
git) $($(DL_MODE)_GIT) && exit ;; \
|
||||
svn) $($(DL_MODE)_SVN) && exit ;; \
|
||||
*) $(call $(DL_MODE)_WGET,$(1),$(2)) && exit ;; \
|
||||
esac ; \
|
||||
fi ; \
|
||||
if test -n "$(call qstrip,$(BR2_BACKUP_SITE))" ; then \
|
||||
$(call $(DL_MODE)_WGET,$(BR2_BACKUP_SITE),$(2)) && exit ; \
|
||||
fi ; \
|
||||
exit 1
|
||||
endef
|
||||
endif
|
||||
|
||||
# Utility programs used to build packages
|
||||
TAR ?= tar
|
||||
@@ -117,8 +209,7 @@ endef
|
||||
|
||||
# Retrieve the archive
|
||||
$(BUILD_DIR)/%/.stamp_downloaded:
|
||||
# support make source-check/external-deps
|
||||
ifeq ($(SPIDER),)
|
||||
ifeq ($(DL_MODE),DOWNLOAD)
|
||||
# Only show the download message if it isn't already downloaded
|
||||
$(Q)(test -e $(DL_DIR)/$($(PKG)_SOURCE) && \
|
||||
(test -z $($(PKG)_PATCH) || test -e $(DL_DIR)$($(PKG)_PATCH))) || \
|
||||
@@ -126,7 +217,7 @@ ifeq ($(SPIDER),)
|
||||
endif
|
||||
$(call DOWNLOAD,$($(PKG)_SITE),$($(PKG)_SOURCE))
|
||||
$(if $($(PKG)_PATCH),$(call DOWNLOAD,$($(PKG)_SITE),$($(PKG)_PATCH)))
|
||||
ifeq ($(SPIDER),)
|
||||
ifeq ($(DL_MODE),DOWNLOAD)
|
||||
$(Q)mkdir -p $(@D)
|
||||
$(Q)touch $@
|
||||
endif
|
||||
@@ -170,6 +261,7 @@ $(BUILD_DIR)/%/.stamp_patched:
|
||||
|
||||
# Configure
|
||||
$(BUILD_DIR)/%/.stamp_configured:
|
||||
$(foreach hook,$($(PKG)_PRE_CONFIGURE_HOOKS),$(call $(hook))$(sep))
|
||||
@$(call MESSAGE,"Configuring")
|
||||
$($(PKG)_CONFIGURE_CMDS)
|
||||
$(foreach hook,$($(PKG)_POST_CONFIGURE_HOOKS),$(call $(hook))$(sep))
|
||||
@@ -246,21 +338,31 @@ define GENTARGETS_INNER
|
||||
$(2)_TYPE = $(5)
|
||||
$(2)_NAME = $(1)
|
||||
|
||||
# Keep the package version that may contain forward slashes in the _DL_VERSION
|
||||
# variable, then replace all forward slashes ('/') by underscores ('_') to
|
||||
# sanitize the package version that is used in paths, directory and file names.
|
||||
# Forward slashes may appear in the package's version when pointing to a
|
||||
# version control system branch or tag, for example remotes/origin/1_10_stable.
|
||||
$(2)_DL_VERSION = $($(2)_VERSION)
|
||||
ifndef $(2)_VERSION
|
||||
ifdef $(3)_VERSION
|
||||
$(2)_VERSION = $($(3)_VERSION)
|
||||
else
|
||||
$(2)_VERSION = undefined
|
||||
endif
|
||||
else
|
||||
$(2)_VERSION = $(subst /,_,$($(2)_VERSION))
|
||||
endif
|
||||
|
||||
$(2)_DIR = $$(BUILD_DIR)/$(1)-$$($(2)_VERSION)
|
||||
$(2)_BASE_NAME = $(1)-$$($(2)_VERSION)
|
||||
$(2)_DL_DIR = $$(DL_DIR)/$$($(2)_BASE_NAME)
|
||||
$(2)_DIR = $$(BUILD_DIR)/$$($(2)_BASE_NAME)
|
||||
|
||||
ifndef $(2)_SOURCE
|
||||
ifdef $(3)_SOURCE
|
||||
$(2)_SOURCE = $($(3)_SOURCE)
|
||||
else
|
||||
$(2)_SOURCE ?= $(1)-$$($(2)_VERSION).tar.gz
|
||||
$(2)_SOURCE ?= $$($(2)_BASE_NAME).tar.gz
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -279,6 +381,15 @@ ifndef $(2)_SITE
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef $(2)_SITE_METHOD
|
||||
ifdef $(3)_SITE_METHOD
|
||||
$(2)_SITE_METHOD = $($(3)_SITE_METHOD)
|
||||
else
|
||||
# Try automatic detection using the scheme part of the URI
|
||||
$(2)_SITE_METHOD = $(firstword $(subst ://, ,$(call qstrip,$($(2)_SITE))))
|
||||
endif
|
||||
endif
|
||||
|
||||
$(2)_DEPENDENCIES ?=
|
||||
$(2)_INSTALL_STAGING ?= NO
|
||||
$(2)_INSTALL_TARGET ?= YES
|
||||
@@ -292,34 +403,28 @@ $(2)_TARGET_BUILD = $$($(2)_DIR)/.stamp_built
|
||||
$(2)_TARGET_CONFIGURE = $$($(2)_DIR)/.stamp_configured
|
||||
$(2)_TARGET_PATCH = $$($(2)_DIR)/.stamp_patched
|
||||
$(2)_TARGET_EXTRACT = $$($(2)_DIR)/.stamp_extracted
|
||||
$(2)_TARGET_SOURCE ?= $$($(2)_DIR)/.stamp_downloaded
|
||||
$(2)_TARGET_SOURCE = $$($(2)_DIR)/.stamp_downloaded
|
||||
$(2)_TARGET_UNINSTALL = $$($(2)_DIR)/.stamp_uninstalled
|
||||
$(2)_TARGET_CLEAN = $$($(2)_DIR)/.stamp_cleaned
|
||||
$(2)_TARGET_DIRCLEAN = $$($(2)_DIR)/.stamp_dircleaned
|
||||
|
||||
# new-style hooks
|
||||
# post-steps hooks
|
||||
$(2)_POST_EXTRACT_HOOKS ?=
|
||||
$(2)_POST_PATCH_HOOKS ?=
|
||||
$(2)_PRE_CONFIGURE_HOOKS ?=
|
||||
$(2)_POST_CONFIGURE_HOOKS ?=
|
||||
$(2)_POST_BUILD_HOOKS ?=
|
||||
$(2)_POST_INSTALL_HOOKS ?=
|
||||
$(2)_POST_INSTALL_STAGING_HOOKS ?=
|
||||
$(2)_POST_INSTALL_TARGET_HOOKS ?=
|
||||
|
||||
# old-style hooks
|
||||
$(2)_HOOK_POST_EXTRACT = $$($(2)_DIR)/.stamp_hook_post_extract
|
||||
$(2)_HOOK_POST_CONFIGURE = $$($(2)_DIR)/.stamp_hook_post_configure
|
||||
$(2)_HOOK_POST_BUILD = $$($(2)_DIR)/.stamp_hook_post_build
|
||||
$(2)_HOOK_POST_INSTALL = $$($(2)_DIR)/.stamp_hook_post_install
|
||||
|
||||
# human-friendly targets and target sequencing
|
||||
$(1): $(1)-install
|
||||
|
||||
ifeq ($$($(2)_TYPE),host)
|
||||
$(1)-install: $(1)-install-host $$($(2)_HOOK_POST_INSTALL)
|
||||
$(1)-install: $(1)-install-host
|
||||
else
|
||||
$(1)-install: $(1)-install-staging $(1)-install-target \
|
||||
$$($(2)_HOOK_POST_INSTALL)
|
||||
$(1)-install: $(1)-install-staging $(1)-install-target
|
||||
endif
|
||||
|
||||
ifeq ($$($(2)_INSTALL_TARGET),YES)
|
||||
@@ -339,18 +444,15 @@ endif
|
||||
$(1)-install-host: $(1)-build $$($(2)_TARGET_INSTALL_HOST)
|
||||
|
||||
$(1)-build: $(1)-configure \
|
||||
$$($(2)_TARGET_BUILD) \
|
||||
$$($(2)_HOOK_POST_BUILD)
|
||||
$$($(2)_TARGET_BUILD)
|
||||
|
||||
$(1)-configure: $(1)-patch \
|
||||
$$($(2)_TARGET_CONFIGURE) \
|
||||
$$($(2)_HOOK_POST_CONFIGURE)
|
||||
$$($(2)_TARGET_CONFIGURE)
|
||||
|
||||
$(1)-patch: $(1)-extract $$($(2)_TARGET_PATCH)
|
||||
|
||||
$(1)-extract: $(1)-depends \
|
||||
$$($(2)_TARGET_EXTRACT) \
|
||||
$$($(2)_HOOK_POST_EXTRACT)
|
||||
$$($(2)_TARGET_EXTRACT)
|
||||
|
||||
$(1)-depends: $(1)-source $$($(2)_DEPENDENCIES)
|
||||
|
||||
@@ -380,17 +482,6 @@ $$($(2)_TARGET_SOURCE): PKG=$(2)
|
||||
$$($(2)_TARGET_UNINSTALL): PKG=$(2)
|
||||
$$($(2)_TARGET_CLEAN): PKG=$(2)
|
||||
$$($(2)_TARGET_DIRCLEAN): PKG=$(2)
|
||||
$$($(2)_HOOK_POST_EXTRACT): PKG=$(2)
|
||||
$$($(2)_HOOK_POST_CONFIGURE): PKG=$(2)
|
||||
$$($(2)_HOOK_POST_BUILD): PKG=$(2)
|
||||
$$($(2)_HOOK_POST_INSTALL): PKG=$(2)
|
||||
|
||||
# define hook targets
|
||||
# default hook behaviour: do nothing
|
||||
$$($(2)_HOOK_POST_EXTRACT):
|
||||
$$($(2)_HOOK_POST_CONFIGURE):
|
||||
$$($(2)_HOOK_POST_BUILD):
|
||||
$$($(2)_HOOK_POST_INSTALL):
|
||||
|
||||
# add package to the general list of targets if requested by the buildroot
|
||||
# configuration
|
||||
|
||||
@@ -3,46 +3,31 @@
|
||||
# acpid
|
||||
#
|
||||
#############################################################
|
||||
ACPID_VERSION:=1.0.8
|
||||
ACPID_DIR=$(BUILD_DIR)/acpid-$(ACPID_VERSION)
|
||||
ACPID_SOURCE=acpid_$(ACPID_VERSION).orig.tar.gz
|
||||
ACPID_SITE=$(BR2_DEBIAN_MIRROR)/debian/pool/main/a/acpid
|
||||
ACPID_VERSION = 2.0.6
|
||||
ACPID_SOURCE = acpid_$(ACPID_VERSION).orig.tar.gz
|
||||
ACPID_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/a/acpid
|
||||
|
||||
$(DL_DIR)/$(ACPID_SOURCE):
|
||||
$(call DOWNLOAD,$(ACPID_SITE),$(ACPID_SOURCE))
|
||||
define ACPID_BUILD_CMDS
|
||||
$(MAKE) CC="$(TARGET_CC)" -C $(@D)
|
||||
endef
|
||||
|
||||
$(ACPID_DIR)/.unpacked: $(DL_DIR)/$(ACPID_SOURCE)
|
||||
$(ZCAT) $(DL_DIR)/$(ACPID_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||
toolchain/patch-kernel.sh $(ACPID_DIR) package/acpid/ acpid-$(ACPID_VERSION)\*.patch
|
||||
touch $(ACPID_DIR)/.unpacked
|
||||
|
||||
$(ACPID_DIR)/acpid: $(ACPID_DIR)/.unpacked
|
||||
$(MAKE) CC="$(TARGET_CC)" -C $(ACPID_DIR)
|
||||
$(STRIPCMD) $(STRIP_STRIP_ALL) $(ACPID_DIR)/acpid
|
||||
$(STRIPCMD) $(STRIP_STRIP_ALL) $(ACPID_DIR)/acpi_listen
|
||||
touch -c $(ACPID_DIR)/acpid $(ACPID_DIR)/acpi_listen
|
||||
|
||||
$(TARGET_DIR)/usr/sbin/acpid: $(ACPID_DIR)/acpid
|
||||
cp -a $(ACPID_DIR)/acpid $(TARGET_DIR)/usr/sbin/acpid
|
||||
define ACPID_INSTALL_TARGET_CMDS
|
||||
install -D -m 755 $(@D)/acpid $(TARGET_DIR)/usr/sbin/acpid
|
||||
install -D -m 755 $(@D)/acpi_listen $(TARGET_DIR)/usr/bin/acpi_listen
|
||||
install -D -m 644 $(@D)/acpid.8 $(TARGET_DIR)/usr/share/man/man8/acpid.8
|
||||
install -D -m 644 $(@D)/acpi_listen.8 $(TARGET_DIR)/usr/share/man/man8/acpi_listen.8
|
||||
mkdir -p $(TARGET_DIR)/etc/acpi/events
|
||||
/bin/echo -e "event=button[ /]power\naction=/sbin/poweroff" > $(TARGET_DIR)/etc/acpi/events/powerbtn
|
||||
touch -c $(TARGET_DIR)/usr/sbin/acpid
|
||||
endef
|
||||
|
||||
acpid: $(TARGET_DIR)/usr/sbin/acpid
|
||||
define ACPID_UNINSTALL_TARGET_CMDS
|
||||
rm -f $(TARGET_DIR)/usr/sbin/acpid
|
||||
rm -f $(TARGET_DIR)/usr/bin/acpi_listen
|
||||
rm -f $(addprefix )$(TARGET_DIR)/usr/share/man/man8/,acpid.8 acpi_listen.8)
|
||||
endef
|
||||
|
||||
acpid-source: $(DL_DIR)/$(ACPID_SOURCE)
|
||||
define ACPID_CLEAN_CMDS
|
||||
-$(MAKE) -C $(@D) clean
|
||||
endef
|
||||
|
||||
acpid-clean:
|
||||
-$(MAKE) -C $(ACPID_DIR) clean
|
||||
|
||||
acpid-dirclean:
|
||||
rm -rf $(ACPID_DIR)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Toplevel Makefile options
|
||||
#
|
||||
#############################################################
|
||||
ifeq ($(BR2_PACKAGE_ACPID),y)
|
||||
TARGETS+=acpid
|
||||
endif
|
||||
$(eval $(call GENTARGETS,package,acpid))
|
||||
|
||||
6
package/argp-standalone/Config.in
Normal file
6
package/argp-standalone/Config.in
Normal file
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_ARGP_STANDALONE
|
||||
bool "argp-standalone"
|
||||
help
|
||||
Glibc hierarchical argument parsing standalone library.
|
||||
|
||||
http://www.lysator.liu.se/~nisse/misc/
|
||||
@@ -0,0 +1,79 @@
|
||||
# --- T2-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# T2 SDE: package/.../rng-tools/throw-in-funcdef.patch.argp-standalone
|
||||
# Copyright (C) 2006 The T2 SDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
||||
# This patch file is dual-licensed. It is available under the license the
|
||||
# patched project is licensed under, as long as it is an OpenSource license
|
||||
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or 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.
|
||||
# --- T2-COPYRIGHT-NOTE-END ---
|
||||
|
||||
|
||||
No __THROW in function implementation.
|
||||
--jsaw
|
||||
|
||||
--- argp-standalone-1.4-test2/argp.h.orig 2006-01-06 02:29:59.000000000 +0100
|
||||
+++ argp-standalone-1.4-test2/argp.h 2006-01-06 02:41:10.000000000 +0100
|
||||
@@ -560,17 +560,17 @@
|
||||
# endif
|
||||
|
||||
# ifndef ARGP_EI
|
||||
-# define ARGP_EI extern __inline__
|
||||
+# define ARGP_EI extern inline
|
||||
# endif
|
||||
|
||||
ARGP_EI void
|
||||
-__argp_usage (__const struct argp_state *__state) __THROW
|
||||
+__argp_usage (__const struct argp_state *__state)
|
||||
{
|
||||
__argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE);
|
||||
}
|
||||
|
||||
ARGP_EI int
|
||||
-__option_is_short (__const struct argp_option *__opt) __THROW
|
||||
+__option_is_short (__const struct argp_option *__opt)
|
||||
{
|
||||
if (__opt->flags & OPTION_DOC)
|
||||
return 0;
|
||||
@@ -582,7 +582,7 @@
|
||||
}
|
||||
|
||||
ARGP_EI int
|
||||
-__option_is_end (__const struct argp_option *__opt) __THROW
|
||||
+__option_is_end (__const struct argp_option *__opt)
|
||||
{
|
||||
return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
|
||||
}
|
||||
--- argp-standalone-1.4-test2/argp-parse.c.orig 2006-01-06 02:47:48.000000000 +0100
|
||||
+++ argp-standalone-1.4-test2/argp-parse.c 2006-01-06 02:48:16.000000000 +0100
|
||||
@@ -1290,13 +1290,13 @@
|
||||
/* Defined here, in case a user is not inlining the definitions in
|
||||
* argp.h */
|
||||
void
|
||||
-__argp_usage (__const struct argp_state *__state) __THROW
|
||||
+__argp_usage (__const struct argp_state *__state)
|
||||
{
|
||||
__argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE);
|
||||
}
|
||||
|
||||
int
|
||||
-__option_is_short (__const struct argp_option *__opt) __THROW
|
||||
+__option_is_short (__const struct argp_option *__opt)
|
||||
{
|
||||
if (__opt->flags & OPTION_DOC)
|
||||
return 0;
|
||||
@@ -1310,7 +1310,7 @@
|
||||
}
|
||||
|
||||
int
|
||||
-__option_is_end (__const struct argp_option *__opt) __THROW
|
||||
+__option_is_end (__const struct argp_option *__opt)
|
||||
{
|
||||
return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
|
||||
}
|
||||
21
package/argp-standalone/argp-standalone.mk
Normal file
21
package/argp-standalone/argp-standalone.mk
Normal file
@@ -0,0 +1,21 @@
|
||||
#############################################################
|
||||
#
|
||||
# argp-standalone
|
||||
#
|
||||
#############################################################
|
||||
|
||||
ARGP_STANDALONE_VERSION = 1.3
|
||||
ARGP_STANDALONE_SITE = http://www.lysator.liu.se/~nisse/archive
|
||||
ARGP_STANDALONE_INSTALL_STAGING = YES
|
||||
|
||||
define ARGP_STANDALONE_INSTALL_STAGING_CMDS
|
||||
$(INSTALL) -D $(@D)/libargp.a $(STAGING_DIR)/usr/lib/libargp.a
|
||||
$(INSTALL) -D $(@D)/argp.h $(STAGING_DIR)/usr/include/argp.h
|
||||
endef
|
||||
|
||||
define ARGP_STANDALONE_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D $(@D)/libargp.a $(TARGET_DIR)/usr/lib/libargp.a
|
||||
$(INSTALL) -D $(@D)/argp.h $(TARGET_DIR)/usr/include/argp.h
|
||||
endef
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,argp-standalone))
|
||||
@@ -1,6 +1,3 @@
|
||||
comment "argus has no inherent support for AVR32"
|
||||
depends on BR2_avr32 && BR2_PACKAGE_ARGUS
|
||||
|
||||
config BR2_PACKAGE_ARGUS
|
||||
bool "argus"
|
||||
select BR2_PACKAGE_LIBPCAP
|
||||
|
||||
@@ -8,7 +8,6 @@ ARGUS_SOURCE:=argus_$(ARGUS_VERSION).orig.tar.gz
|
||||
ARGUS_PATCH:=argus_$(ARGUS_VERSION)-1.diff.gz
|
||||
ARGUS_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/a/argus/
|
||||
ARGUS_DEPENDENCIES=libpcap
|
||||
ARGUS_INSTALL_TARGET_OPT=DESTDIR=$(TARGET_DIR) install
|
||||
|
||||
define ARGUS_DEBIAN_PATCH_APPLY
|
||||
if [ -d $(@D)/debian/patches ]; then \
|
||||
|
||||
@@ -9,8 +9,6 @@ AT_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/a/at
|
||||
AT_AUTORECONF = YES
|
||||
AT_INSTALL_STAGING = NO
|
||||
AT_INSTALL_TARGET = YES
|
||||
# no install-strip / install-exec
|
||||
AT_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
||||
|
||||
AT_DEPENDENCIES = $(if $(BR2_PACKAGE_FLEX),flex)
|
||||
|
||||
@@ -21,14 +19,13 @@ AT_CONF_OPT = \
|
||||
--with-daemon_groupname=root \
|
||||
SENDMAIL=/usr/sbin/sendmail
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,at))
|
||||
|
||||
$(AT_HOOK_POST_INSTALL): $(AT_TARGET_INSTALL_TARGET)
|
||||
define AT_INSTALL_INITSCRIPT
|
||||
$(INSTALL) -m 0755 package/at/S99at $(TARGET_DIR)/etc/init.d/S99at
|
||||
touch $@
|
||||
endef
|
||||
|
||||
$(AT_TARGET_UNINSTALL):
|
||||
$(call MESSAGE,"Uninstalling")
|
||||
AT_POST_INSTALL_TARGET_HOOKS += AT_INSTALL_INITSCRIPT
|
||||
|
||||
define AT_UNINSTALL_TARGET_CMDS
|
||||
rm -rf $(addprefix $(TARGET_DIR),/usr/lib/atspool \
|
||||
/usr/lib/atjobs \
|
||||
/etc/at.deny \
|
||||
@@ -40,4 +37,6 @@ $(AT_TARGET_UNINSTALL):
|
||||
/usr/sbin/atrun)
|
||||
rm -f $(addprefix $(TARGET_DIR)/usr/man/man*/, \
|
||||
at.1 atq.1 atrm.1 batch.1 at_allow.5 at_deny.5 atd.8 atrun.8)
|
||||
rm -f $(AT_TARGET_INSTALL_TARGET) $(AT_HOOK_POST_INSTALL)
|
||||
endef
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,at))
|
||||
|
||||
@@ -41,7 +41,7 @@ ATK_CONF_ENV = ac_cv_func_posix_getpwuid_r=yes \
|
||||
gl_cv_c_restrict=no ac_cv_prog_F77=no
|
||||
|
||||
ATK_CONF_OPT = --enable-shared \
|
||||
--enable-static
|
||||
--enable-static \
|
||||
--disable-glibtest --enable-explicit-deps=no \
|
||||
--disable-debug
|
||||
|
||||
|
||||
@@ -7,10 +7,6 @@ AUTOCONF_VERSION = 2.65
|
||||
AUTOCONF_SOURCE = autoconf-$(AUTOCONF_VERSION).tar.bz2
|
||||
AUTOCONF_SITE = $(BR2_GNU_MIRROR)/autoconf
|
||||
|
||||
ifeq ($(BR2_ENABLE_DEBUG),y) # install-exec doesn't install aclocal stuff
|
||||
AUTOCONF_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
||||
endif
|
||||
|
||||
AUTOCONF_CONF_ENV = EMACS="no" ac_cv_path_M4=$(HOST_DIR)/usr/bin/m4 \
|
||||
ac_cv_prog_gnu_m4_gnu=no
|
||||
|
||||
|
||||
@@ -3,14 +3,10 @@
|
||||
# automake
|
||||
#
|
||||
#############################################################
|
||||
AUTOMAKE_VERSION = 1.10
|
||||
AUTOMAKE_VERSION = 1.11.1
|
||||
AUTOMAKE_SOURCE = automake-$(AUTOMAKE_VERSION).tar.bz2
|
||||
AUTOMAKE_SITE = $(BR2_GNU_MIRROR)/automake
|
||||
|
||||
ifeq ($(BR2_ENABLE_DEBUG),y) # install-exec doesn't install aclocal stuff
|
||||
AUTOMAKE_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
||||
endif
|
||||
|
||||
AUTOMAKE_DEPENDENCIES = host-autoconf autoconf microperl
|
||||
|
||||
HOST_AUTOMAKE_DEPENDENCIES = host-autoconf
|
||||
|
||||
@@ -64,7 +64,8 @@ AVAHI_CONF_ENV = ac_cv_func_strtod=yes \
|
||||
ac_cv_func_working_mktime=yes \
|
||||
jm_cv_func_working_re_compile_pattern=yes \
|
||||
ac_use_included_regex=no \
|
||||
avahi_cv_sys_cxx_works=yes
|
||||
avahi_cv_sys_cxx_works=yes \
|
||||
DATADIR=share
|
||||
|
||||
AVAHI_CONF_OPT = --localstatedir=/var \
|
||||
--disable-qt3 \
|
||||
@@ -137,19 +138,31 @@ AVAHI_DEPENDENCIES += libintl
|
||||
AVAHI_MAKE_OPT = LIBS=-lintl
|
||||
endif
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,avahi))
|
||||
|
||||
$(AVAHI_HOOK_POST_INSTALL):
|
||||
define AVAHI_REMOVE_INITSCRIPT
|
||||
rm -rf $(TARGET_DIR)/etc/init.d/avahi-*
|
||||
ifeq ($(BR2_PACKAGE_AVAHI_AUTOIPD),y)
|
||||
endef
|
||||
|
||||
AVAHI_POST_INSTALL_TARGET_HOOKS += AVAHI_REMOVE_INITSCRIPT
|
||||
|
||||
define AVAHI_INSTALL_AUTOIPD
|
||||
rm -rf $(TARGET_DIR)/etc/dhcp3/
|
||||
$(INSTALL) -D -m 0755 package/avahi/busybox-udhcpc-default.script $(TARGET_DIR)/usr/share/udhcpc/default.script
|
||||
$(INSTALL) -m 0755 package/avahi/S05avahi-setup.sh $(TARGET_DIR)/etc/init.d/
|
||||
rm -f $(TARGET_DIR)/var/lib/avahi-autoipd
|
||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/var/lib
|
||||
ln -sf /tmp/avahi-autoipd $(TARGET_DIR)/var/lib/avahi-autoipd
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_AVAHI_AUTOIPD),y)
|
||||
AVAHI_POST_INSTALL_TARGET_HOOKS += AVAHI_INSTALL_AUTOIPD
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON),y)
|
||||
|
||||
define AVAHI_INSTALL_DAEMON_INITSCRIPT
|
||||
$(INSTALL) -m 0755 package/avahi/S50avahi-daemon $(TARGET_DIR)/etc/init.d/
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON),y)
|
||||
AVAHI_POST_INSTALL_TARGET_HOOKS += AVAHI_INSTALL_DAEMON_INITSCRIPT
|
||||
endif
|
||||
touch $@
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,avahi))
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
config BR2_PACKAGE_AXEL
|
||||
bool "axel"
|
||||
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
|
||||
select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE
|
||||
help
|
||||
HTTP/FTP download accelerator.
|
||||
|
||||
|
||||
@@ -3,53 +3,45 @@
|
||||
# axel
|
||||
#
|
||||
#############################################################
|
||||
AXEL_VERSION:=1.1
|
||||
AXEL_SOURCE:=axel-$(AXEL_VERSION).tar.gz
|
||||
AXEL_SITE:=http://alioth.debian.org/frs/download.php/2287
|
||||
AXEL_CAT:=$(ZCAT)
|
||||
AXEL_DIR:=$(BUILD_DIR)/axel-$(AXEL_VERSION)
|
||||
AXEL_BINARY:=axel
|
||||
AXEL_TARGET_BINARY:=usr/bin/axel
|
||||
AXEL_VERSION = 2.4
|
||||
AXEL_SOURCE = axel-$(AXEL_VERSION).tar.gz
|
||||
AXEL_SITE = https://alioth.debian.org/frs/download.php/3015
|
||||
|
||||
$(DL_DIR)/$(AXEL_SOURCE):
|
||||
$(call DOWNLOAD,$(AXEL_SITE),$(AXEL_SOURCE))
|
||||
AXEL_LDFLAGS = -lpthread
|
||||
|
||||
axel-source: $(DL_DIR)/$(AXEL_SOURCE)
|
||||
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
||||
AXEL_DEPENDENCIES += gettext libintl
|
||||
AXEL_LDFLAGS += -lintl
|
||||
endif
|
||||
|
||||
$(AXEL_DIR)/.unpacked: $(DL_DIR)/$(AXEL_SOURCE)
|
||||
$(AXEL_CAT) $(DL_DIR)/$(AXEL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||
#toolchain/patch-kernel.sh $(AXEL_DIR) package/axel axel\*.patch
|
||||
touch $@
|
||||
ifneq ($(BR2_ENABLE_LOCALE),y)
|
||||
AXEL_DISABLE_I18N=--i18n=0
|
||||
endif
|
||||
|
||||
$(AXEL_DIR)/Makefile.settings: $(AXEL_DIR)/.unpacked
|
||||
(cd $(AXEL_DIR); \
|
||||
./configure --i18n=0 --prefix=/usr \
|
||||
define AXEL_CONFIGURE_CMDS
|
||||
(cd $(@D); \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--debug=1 \
|
||||
$(AXEL_DISABLE_I18N) \
|
||||
)
|
||||
touch $@
|
||||
endef
|
||||
|
||||
$(AXEL_DIR)/$(AXEL_BINARY): $(AXEL_DIR)/Makefile.settings
|
||||
$(MAKE) CC="$(TARGET_CC)" STRIP="$(TARGET_STRIP)" -C $(AXEL_DIR)
|
||||
define AXEL_BUILD_CMDS
|
||||
$(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
|
||||
LFLAGS="$(TARGET_LDFLAGS) $(AXEL_LDFLAGS)" -C $(@D)
|
||||
endef
|
||||
|
||||
$(TARGET_DIR)/$(AXEL_TARGET_BINARY): $(AXEL_DIR)/$(AXEL_BINARY)
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(AXEL_DIR) install-bin
|
||||
ifeq ($(BR2_HAVE_DOCUMENTATION),y)
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(AXEL_DIR) install-man
|
||||
endif
|
||||
define AXEL_INSTALL_TARGET_CMDS
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
|
||||
endef
|
||||
|
||||
axel: $(TARGET_DIR)/$(AXEL_TARGET_BINARY)
|
||||
define AXEL_UNINSTALL_TARGET_CMDS
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) uninstall
|
||||
endef
|
||||
|
||||
axel-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(AXEL_DIR) uninstall
|
||||
-$(MAKE) -C $(AXEL_DIR) clean
|
||||
define AXEL_CLEAN_CMDS
|
||||
-$(MAKE) -C $(@D) clean
|
||||
endef
|
||||
|
||||
axel-dirclean:
|
||||
rm -rf $(AXEL_DIR)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Toplevel Makefile options
|
||||
#
|
||||
#############################################################
|
||||
ifeq ($(BR2_PACKAGE_AXEL),y)
|
||||
TARGETS+=axel
|
||||
endif
|
||||
$(eval $(call GENTARGETS,package,axel))
|
||||
|
||||
@@ -13,6 +13,4 @@ BEECRYPT_CONF_OPT = --without-cplusplus \
|
||||
--without-python \
|
||||
--disable-rpath
|
||||
|
||||
BEECRYPT_INSTALL_TARGET_OPT=DESTDIR=$(TARGET_DIR) install
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,beecrypt))
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#############################################################
|
||||
BERKELEYDB_VERSION:=4.4.20
|
||||
BERKELEYDB_SO_VERSION:=4.4
|
||||
BERKELEYDB_SITE:=ftp://ftp.sleepycat.com/releases
|
||||
BERKELEYDB_SITE:=http://download.oracle.com/berkeley-db
|
||||
BERKELEYDB_SOURCE:=db-$(BERKELEYDB_VERSION).NC.tar.gz
|
||||
BERKELEYDB_SHARLIB:=libdb-$(BERKELEYDB_SO_VERSION).so
|
||||
BERKELEYDB_SUBDIR=build_unix
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
comment "bind has no inherent support for AVR32"
|
||||
depends on BR2_avr32 && BR2_PACKAGE_BIND
|
||||
|
||||
config BR2_PACKAGE_BIND
|
||||
bool "bind"
|
||||
depends on BR2_LARGEFILE
|
||||
|
||||
@@ -8,7 +8,6 @@ BIND_VERSION = 9.5.2-P2
|
||||
BIND_SITE = ftp://ftp.isc.org/isc/bind9/$(BIND_VERSION)
|
||||
BIND_LIBTOOL_PATCH = NO
|
||||
BIND_INSTALL_STAGING = NO
|
||||
BIND_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
||||
BIND_TARGET_SBINS = lwresd named named-checkconf named-checkzone
|
||||
BIND_TARGET_SBINS += named-compilezone rndc rndc-confgen
|
||||
BIND_TARGET_SBINS += dnssec-keygen dnssec-signzone
|
||||
@@ -27,21 +26,26 @@ BIND_CONF_OPT = \
|
||||
--disable-epoll \
|
||||
--disable-threads
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,bind))
|
||||
|
||||
$(BIND_HOOK_POST_INSTALL):
|
||||
define BIND_TARGET_INSTALL_FIXES
|
||||
rm -f $(TARGET_DIR)/usr/bin/isc-config.sh
|
||||
ifneq ($(BR2_PACKAGE_BIND_TOOLS),y)
|
||||
rm -rf $(addprefix $(TARGET_DIR)/usr/bin/, $(BIND_TARGET_BINS))
|
||||
endif
|
||||
$(INSTALL) -m 0755 -D package/bind/bind.sysvinit $(TARGET_DIR)/etc/init.d/S81named
|
||||
touch $@
|
||||
endef
|
||||
|
||||
$(BIND_TARGET_UNINSTALL):
|
||||
$(call MESSAGE,"Uninstalling")
|
||||
BIND_POST_INSTALL_TARGET_HOOKS += BIND_TARGET_INSTALL_FIXES
|
||||
|
||||
define BIND_TARGET_REMOVE_TOOLS
|
||||
rm -rf $(addprefix $(TARGET_DIR)/usr/bin/, $(BIND_TARGET_BINS))
|
||||
endef
|
||||
|
||||
ifneq ($(BR2_PACKAGE_BIND_TOOLS),y)
|
||||
BIND_POST_INSTALL_TARGET_HOOKS += BIND_TARGET_REMOVE_TOOLS
|
||||
endif
|
||||
|
||||
define BIND_UNINSTALL_TARGET_CMDS
|
||||
rm -rf $(addprefix $(TARGET_DIR)/usr/sbin/, $(BIND_TARGET_SBINS))
|
||||
rm -rf $(addprefix $(TARGET_DIR)/usr/bin/, $(BIND_TARGET_BINS))
|
||||
rm -rf $(addprefix $(TARGET_DIR)/usr/lib/, $(BIND_TARGET_LIBS))
|
||||
rm -f $(TARGET_DIR)/etc/init.d/S81named
|
||||
rm -f $(BIND_TARGET_INSTALL_TARGET) $(BIND_HOOK_POST_INSTALL)
|
||||
endef
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,bind))
|
||||
|
||||
@@ -8,11 +8,9 @@ BMON_VERSION = 2.1.0
|
||||
BMON_SOURCE = bmon-$(BMON_VERSION).tar.gz
|
||||
BMON_SITE = http://distfiles.gentoo.org/distfiles
|
||||
BMON_DEPENDENCIES = ncurses
|
||||
BMON_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
||||
|
||||
define BMON_UNINSTALL_TARGET_CMDS
|
||||
rm -f $(TARGET_DIR)/usr/bin/bmon
|
||||
endef
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,bmon))
|
||||
|
||||
$(BMON_TARGET_UNINSTALL):
|
||||
$(call MESSAGE,"Uninstalling")
|
||||
rm -f $(TARGET_DIR)/usr/bin/bmon
|
||||
rm -f $(BMON_TARGET_INSTALL_TARGET) $(BMON_HOOK_POST_INSTALL)
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
ac_cv_func_setvbuf_reversed=no
|
||||
@@ -3,84 +3,26 @@
|
||||
# boa
|
||||
#
|
||||
#############################################################
|
||||
BOA_VERSION = 0.94.14rc21
|
||||
BOA_SOURCE = boa-$(BOA_VERSION).tar.gz
|
||||
BOA_SITE = http://www.boa.org/
|
||||
|
||||
BOA_VERSION=0.94.14rc21
|
||||
define BOA_INSTALL_TARGET_CMDS
|
||||
install -D -m 755 $(@D)/src/boa $(TARGET_DIR)/usr/sbin/boa
|
||||
install -D -m 755 $(@D)/src/boa_indexer $(TARGET_DIR)/usr/lib/boa/boa_indexer
|
||||
install -D -m 644 package/boa/boa.conf $(TARGET_DIR)/etc/boa/boa.conf
|
||||
install -D -m 644 package/boa/mime.types $(TARGET_DIR)/etc/mime.types
|
||||
endef
|
||||
|
||||
# Don't alter below this line unless you (think) you know
|
||||
# what you are doing! Danger, Danger!
|
||||
define BOA_UNINSTALL_STAGING_CMDS
|
||||
# autotools calls uninstall-staging even if staging install
|
||||
# isn't enabled
|
||||
endef
|
||||
|
||||
BOA_SOURCE=boa-$(BOA_VERSION).tar.gz
|
||||
BOA_CAT:=$(ZCAT)
|
||||
BOA_SITE=http://www.boa.org/
|
||||
BOA_DIR=$(BUILD_DIR)/boa-$(BOA_VERSION)
|
||||
BOA_WORKDIR=$(BUILD_DIR)/boa_workdir
|
||||
|
||||
$(DL_DIR)/$(BOA_SOURCE):
|
||||
$(call DOWNLOAD,$(BOA_SITE),$(BOA_SOURCE))
|
||||
|
||||
$(BOA_DIR)/.unpacked: $(DL_DIR)/$(BOA_SOURCE)
|
||||
$(BOA_CAT) $(DL_DIR)/$(BOA_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||
touch $(BOA_DIR)/.unpacked
|
||||
|
||||
$(BOA_WORKDIR)/Makefile: $(BOA_DIR)/.unpacked
|
||||
rm -f $(BOA_WORKDIR)/Makefile
|
||||
mkdir -p $(BOA_WORKDIR)
|
||||
#CONFIG_SITE=package/boa/boa-config.site-$(ARCH)
|
||||
(cd $(BOA_WORKDIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(TARGET_CONFIGURE_ARGS) \
|
||||
$(BOA_DIR)/configure $(QUIET) \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libdir=/lib \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
$(DISABLE_NLS) \
|
||||
)
|
||||
touch $(BOA_WORKDIR)/Makefile
|
||||
|
||||
$(BOA_WORKDIR)/src/boa $(BOA_WORKDIR)/src/boa_indexer: $(BOA_WORKDIR)/Makefile
|
||||
rm -f $@
|
||||
$(MAKE) -C $(BOA_WORKDIR)
|
||||
|
||||
$(BOA_WORKDIR)/.installed: $(BOA_WORKDIR)/src/boa $(BOA_WORKDIR)/src/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 package/boa/boa.conf $(TARGET_DIR)/etc/boa
|
||||
cp -f package/boa/mime.types $(TARGET_DIR)/etc/mime.types
|
||||
$(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/usr/sbin/boa $(TARGET_DIR)/usr/lib/boa/boa_indexer
|
||||
touch $(BOA_WORKDIR)/.installed
|
||||
|
||||
boa: $(BOA_WORKDIR)/.installed
|
||||
|
||||
boa-source: $(DL_DIR)/$(BOA_SOURCE)
|
||||
|
||||
boa-clean:
|
||||
-$(MAKE) -C $(BOA_WORKDIR) clean
|
||||
define BOA_UNINSTALL_TARGET_CMDS
|
||||
rm -rf $(TARGET_DIR)/usr/sbin/boa \
|
||||
$(TARGET_DIR)/usr/lib/boa/boa_indexer \
|
||||
$(TARGET_DIR)/usr/lib/boa/ \
|
||||
$(TARGET_DIR)/etc/mime.types $(TARGET_DIR)/etc/boa
|
||||
endef
|
||||
|
||||
boa-dirclean:
|
||||
rm -rf $(BOA_DIR) $(BOA_WORKDIR)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Toplevel Makefile options
|
||||
#
|
||||
#############################################################
|
||||
ifeq ($(BR2_PACKAGE_BOA),y)
|
||||
TARGETS+=boa
|
||||
endif
|
||||
$(eval $(call AUTOTARGETS,package,boa))
|
||||
|
||||
@@ -8,6 +8,4 @@ BOOTUTILS_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge
|
||||
|
||||
BOOTUTILS_CONF_OPT = --prefix=/ --exec-prefix=/
|
||||
|
||||
BOOTUTILS_INSTALL_TARGET_OPT=DESTDIR=$(TARGET_DIR) install
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,bootutils))
|
||||
|
||||
@@ -10,21 +10,11 @@ BRIDGE_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/brid
|
||||
BRIDGE_AUTORECONF:=YES
|
||||
BRIDGE_INSTALL_STAGING:=NO
|
||||
BRIDGE_INSTALL_TARGET:=YES
|
||||
BRIDGE_INSTALL_TARGET_OPT:=DESTDIR=$(TARGET_DIR) install
|
||||
BRIDGE_CONF_OPT:=--with-linux-headers=$(LINUX_HEADERS_DIR)
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,bridge))
|
||||
|
||||
ifeq ($(BR2_ENABLE_DEBUG),)
|
||||
# bridge has no install-strip target
|
||||
$(BRIDGE_HOOK_POST_INSTALL): $(BRIDGE_TARGET_INSTALL_TARGET)
|
||||
$(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/usr/sbin/brctl
|
||||
touch $@
|
||||
endif
|
||||
|
||||
# bridge has no uninstall target
|
||||
$(BRIDGE_TARGET_UNINSTALL):
|
||||
$(call MESSAGE,"Uninstalling")
|
||||
define BRIDGE_UNINSTALL_TARGET_CMDS
|
||||
rm -f $(addprefix $(TARGET_DIR)/usr/,lib/libbridge.a \
|
||||
include/libbridge.h man/man8/brctl.8 sbin/brctl)
|
||||
rm -f $(BRIDGE_TARGET_INSTALL_TARGET) $(BRIDGE_HOOK_POST_INSTALL)
|
||||
endef
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,bridge))
|
||||
|
||||
@@ -3,52 +3,29 @@
|
||||
# bsdiff
|
||||
#
|
||||
#############################################################
|
||||
BSDIFF_VERSION:=4.3
|
||||
BSDIFF_SOURCE:=bsdiff-$(BSDIFF_VERSION).tar.gz
|
||||
BSDIFF_SITE:=http://www.daemonology.net/bsdiff
|
||||
BSDIFF_DIR:=$(BUILD_DIR)/bsdiff-$(BSDIFF_VERSION)
|
||||
BSDIFF_BINARY:=bsdiff
|
||||
BSDIFF_TARGET_BINARY:=usr/bin/bsdiff
|
||||
BSDIFF_ZCAT=$(ZCAT)
|
||||
BSDIFF_VERSION = 4.3
|
||||
BSDIFF_SOURCE = bsdiff-$(BSDIFF_VERSION).tar.gz
|
||||
BSDIFF_SITE = http://www.daemonology.net/bsdiff
|
||||
BSDIFF_DEPENDENCIES = bzip2
|
||||
|
||||
$(DL_DIR)/$(BSDIFF_SOURCE):
|
||||
$(call DOWNLOAD,$(BSDIFF_SITE),$(BSDIFF_SOURCE))
|
||||
define BSDIFF_BUILD_CMDS
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -lbz2 \
|
||||
$(@D)/bsdiff.c -o $(@D)/bsdiff
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -lbz2 \
|
||||
$(@D)/bspatch.c -o $(@D)/bspatch
|
||||
endef
|
||||
|
||||
$(BSDIFF_DIR)/.source: $(DL_DIR)/$(BSDIFF_SOURCE)
|
||||
$(BSDIFF_ZCAT) $(DL_DIR)/$(BSDIFF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||
touch $(BSDIFF_DIR)/.source
|
||||
define BSDIFF_INSTALL_TARGET_CMDS
|
||||
install -D -m 755 $(@D)/bsdiff $(TARGET_DIR)/usr/bin/bsdiff
|
||||
install -D -m 755 $(@D)/bspatch $(TARGET_DIR)/usr/bin/bspatch
|
||||
endef
|
||||
|
||||
$(BSDIFF_DIR)/$(BSDIFF_BINARY): $(BSDIFF_DIR)/.source
|
||||
(cd $(BSDIFF_DIR); \
|
||||
$(TARGET_CONFIGURE_ARGS) \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(TARGET_CC) -L $(STAGING_DIR)/lib -lbz2 \
|
||||
$(TARGET_CFLAGS) bsdiff.c -o bsdiff; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(TARGET_CC) -L $(STAGING_DIR)/lib -lbz2 \
|
||||
$(TARGET_CFLAGS) bspatch.c -o bspatch; \
|
||||
)
|
||||
define BSDIFF_UNINSTALL_TARGET_CMDS
|
||||
rm -f $(TARGET_DIR)/usr/bin/bsdiff $(TARGET_DIR)/usr/bin/bspatch
|
||||
endef
|
||||
|
||||
$(TARGET_DIR)/$(BSDIFF_TARGET_BINARY): $(BSDIFF_DIR)/$(BSDIFF_BINARY)
|
||||
cp -dpf $(BSDIFF_DIR)/bsdiff $(TARGET_DIR)/usr/bin/.
|
||||
cp -dpf $(BSDIFF_DIR)/bspatch $(TARGET_DIR)/usr/bin/.
|
||||
define BSDIFF_CLEAN_CMDS
|
||||
rm -f $(@D)/bsdiff $(@D)/bspatch
|
||||
endef
|
||||
|
||||
bsdiff: bzip2 $(TARGET_DIR)/$(BSDIFF_TARGET_BINARY)
|
||||
|
||||
bsdiff-source: $(DL_DIR)/$(BSDIFF_SOURCE)
|
||||
|
||||
bsdiff-clean:
|
||||
-rm $(TARGET_DIR)/usr/bin/{bsdiff,bspatch}
|
||||
-rm $(BSDIFF_DIR)/{bsdiff,bspatch}
|
||||
|
||||
bsdiff-dirclean:
|
||||
rm -rf $(BSDIFF_DIR)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Toplevel Makefile options
|
||||
#
|
||||
#############################################################
|
||||
ifeq ($(BR2_PACKAGE_BSDIFF),y)
|
||||
TARGETS+=bsdiff
|
||||
endif
|
||||
$(eval $(call GENTARGETS,package,bsdiff))
|
||||
|
||||
@@ -38,23 +38,6 @@
|
||||
fi
|
||||
# This is a shared library
|
||||
|
||||
@@ -2889,6 +2896,16 @@ EOF
|
||||
esac
|
||||
if grep "^installed=no" $deplib > /dev/null; then
|
||||
path="$absdir/$objdir"
|
||||
+# This interferes with crosscompilation. -CL
|
||||
+# else
|
||||
+# eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
|
||||
+# if test -z "$libdir"; then
|
||||
+# $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
|
||||
+# exit 1
|
||||
+# fi
|
||||
+# if test "$absdir" != "$libdir"; then
|
||||
+# $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
|
||||
+# fi
|
||||
else
|
||||
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
|
||||
if test -z "$libdir"; then
|
||||
@@ -5606,6 +5623,10 @@ fi\
|
||||
# Replace all uninstalled libtool libraries with the installed ones
|
||||
newdependency_libs=
|
||||
@@ -1,23 +1,17 @@
|
||||
---
|
||||
ltmain.sh | 39 +++++++++++++++++++++++++++++++++------
|
||||
1 file changed, 33 insertions(+), 6 deletions(-)
|
||||
|
||||
Index: libmpd-0.17.0/ltmain.sh
|
||||
===================================================================
|
||||
--- libmpd-0.17.0.orig/ltmain.sh
|
||||
+++ libmpd-0.17.0/ltmain.sh
|
||||
@@ -1056,7 +1056,9 @@
|
||||
--- a/ltmain.sh 2009-11-16 06:23:18.000000000 -0700
|
||||
+++ b/ltmain.sh 2010-09-18 20:25:06.000000000 -0700
|
||||
@@ -1048,8 +1048,8 @@ func_infer_tag ()
|
||||
# was found and let the user know that the "--tag" command
|
||||
# line option must be used.
|
||||
if test -z "$tagname"; then
|
||||
func_echo "unable to infer tagged configuration"
|
||||
- func_echo "unable to infer tagged configuration"
|
||||
- func_fatal_error "specify a tag with \`--tag'"
|
||||
+ $echo "$modename: defaulting to \`CC'"
|
||||
+ $echo "$modename: if this is not correct, specify a tag with \`--tag'"
|
||||
+# func_fatal_error "specify a tag with \`--tag'"
|
||||
+ func_echo "defaulting to \`CC'"
|
||||
+ func_echo "if this is not correct, specify a tag with \`--tag'"
|
||||
# else
|
||||
# func_verbose "using $tagname tagged configuration"
|
||||
fi
|
||||
@@ -2025,8 +2027,13 @@
|
||||
@@ -2018,8 +2018,11 @@ func_mode_install ()
|
||||
# At present, this check doesn't affect windows .dll's that
|
||||
# are installed into $libdir/../bin (currently, that works fine)
|
||||
# but it's something to keep an eye on.
|
||||
@@ -25,15 +19,13 @@ Index: libmpd-0.17.0/ltmain.sh
|
||||
- func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
|
||||
+ #
|
||||
+ # This breaks install into our staging area. -PB
|
||||
+ #
|
||||
+ # if test "$inst_prefix_dir" = "$destdir"; then
|
||||
+ # $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
|
||||
+ # exit $EXIT_FAILURE
|
||||
+ # fi
|
||||
+ #
|
||||
+ # test "$inst_prefix_dir" = "$destdir" && \
|
||||
+ # func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
|
||||
|
||||
if test -n "$inst_prefix_dir"; then
|
||||
# Stick the inst_prefix_dir data into the link command.
|
||||
@@ -5419,8 +5426,14 @@
|
||||
@@ -5412,8 +5415,14 @@ func_mode_link ()
|
||||
absdir="$abs_ladir"
|
||||
libdir="$abs_ladir"
|
||||
else
|
||||
@@ -50,7 +42,7 @@ Index: libmpd-0.17.0/ltmain.sh
|
||||
fi
|
||||
test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
|
||||
else
|
||||
@@ -5571,7 +5584,7 @@
|
||||
@@ -5564,7 +5573,7 @@ func_mode_link ()
|
||||
*)
|
||||
if test "$installed" = no; then
|
||||
notinst_deplibs="$notinst_deplibs $lib"
|
||||
@@ -59,24 +51,7 @@ Index: libmpd-0.17.0/ltmain.sh
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
@@ -5901,6 +5914,16 @@
|
||||
# Add the search paths of all dependency libraries
|
||||
for deplib in $dependency_libs; do
|
||||
case $deplib in
|
||||
+# This interferes with crosscompilation. -CL
|
||||
+# else
|
||||
+# eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
|
||||
+# if test -z "$libdir"; then
|
||||
+# $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
|
||||
+# exit 1
|
||||
+# fi
|
||||
+# if test "$absdir" != "$libdir"; then
|
||||
+# $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
|
||||
+# fi
|
||||
-L*) path="$deplib" ;;
|
||||
*.la)
|
||||
func_dirname "$deplib" "" "."
|
||||
@@ -8059,6 +8082,10 @@
|
||||
@@ -8052,6 +8061,10 @@ EOF
|
||||
# Replace all uninstalled libtool libraries with the installed ones
|
||||
newdependency_libs=
|
||||
for deplib in $dependency_libs; do
|
||||
@@ -45,7 +45,7 @@ config BR2_BUSYBOX_VERSION
|
||||
default "1.14.4" if BR2_BUSYBOX_VERSION_1_14_X
|
||||
default "1.15.3" if BR2_BUSYBOX_VERSION_1_15_X
|
||||
default "1.16.2" if BR2_BUSYBOX_VERSION_1_16_X
|
||||
default "1.17.1" if BR2_BUSYBOX_VERSION_1_17_X
|
||||
default "1.17.3" if BR2_BUSYBOX_VERSION_1_17_X
|
||||
|
||||
config BR2_PACKAGE_BUSYBOX_FULLINSTALL
|
||||
bool "Run BusyBox's own full installation"
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
diff -urpN busybox-1.17.1/debianutils/mktemp.c busybox-1.17.1-mktemp/debianutils/mktemp.c
|
||||
--- busybox-1.17.1/debianutils/mktemp.c 2010-07-25 00:12:56.000000000 +0200
|
||||
+++ busybox-1.17.1-mktemp/debianutils/mktemp.c 2010-07-27 08:21:26.000000000 +0200
|
||||
@@ -50,7 +50,7 @@ int mktemp_main(int argc UNUSED_PARAM, c
|
||||
opts = getopt32(argv, "dqtp:", &path);
|
||||
|
||||
chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXX");
|
||||
- if (chp[0] != '/' || (opts & 8))
|
||||
+ if (!strchr(chp, '/') || (opts & 8))
|
||||
chp = concat_path_file(path, chp);
|
||||
|
||||
if (opts & 1) { /* -d */
|
||||
@@ -1,86 +0,0 @@
|
||||
diff -urpN busybox-1.17.1/shell/ash.c busybox-1.17.1-shell/shell/ash.c
|
||||
--- busybox-1.17.1/shell/ash.c 2010-07-25 00:12:43.000000000 +0200
|
||||
+++ busybox-1.17.1-shell/shell/ash.c 2010-07-25 13:09:32.000000000 +0200
|
||||
@@ -4515,6 +4515,7 @@ clear_traps(void)
|
||||
INT_ON;
|
||||
}
|
||||
}
|
||||
+ may_have_traps = 0;
|
||||
}
|
||||
|
||||
/* Lives far away from here, needed for forkchild */
|
||||
diff -urpN busybox-1.17.1/shell/ash_test/ash-signals/signal7.right busybox-1.17.1-shell/shell/ash_test/ash-signals/signal7.right
|
||||
--- busybox-1.17.1/shell/ash_test/ash-signals/signal7.right 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ busybox-1.17.1-shell/shell/ash_test/ash-signals/signal7.right 2010-07-25 13:09:32.000000000 +0200
|
||||
@@ -0,0 +1 @@
|
||||
+Bug detected: 0
|
||||
diff -urpN busybox-1.17.1/shell/ash_test/ash-signals/signal7.tests busybox-1.17.1-shell/shell/ash_test/ash-signals/signal7.tests
|
||||
--- busybox-1.17.1/shell/ash_test/ash-signals/signal7.tests 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ busybox-1.17.1-shell/shell/ash_test/ash-signals/signal7.tests 2010-07-25 13:09:32.000000000 +0200
|
||||
@@ -0,0 +1,18 @@
|
||||
+bug() {
|
||||
+ trap : exit
|
||||
+ # Bug was causing sh to be run in subshell,
|
||||
+ # as if this line is replaced with (sh -c ...; exit $?) &
|
||||
+ # here:
|
||||
+ sh -c 'echo REAL_CHILD=$$' &
|
||||
+ echo PARENTS_IDEA_OF_CHILD=$!
|
||||
+ wait # make sure bkgd shell completes
|
||||
+}
|
||||
+
|
||||
+bug | {
|
||||
+while read varval; do
|
||||
+ eval $varval
|
||||
+done
|
||||
+test x"$REAL_CHILD" != x"" \
|
||||
+&& test x"$REAL_CHILD" = x"$PARENTS_IDEA_OF_CHILD"
|
||||
+echo "Bug detected: $?"
|
||||
+}
|
||||
diff -urpN busybox-1.17.1/shell/hush.c busybox-1.17.1-shell/shell/hush.c
|
||||
--- busybox-1.17.1/shell/hush.c 2010-07-25 00:12:43.000000000 +0200
|
||||
+++ busybox-1.17.1-shell/shell/hush.c 2010-07-25 13:09:32.000000000 +0200
|
||||
@@ -3901,8 +3901,6 @@ static void insert_bg_job(struct pipe *p
|
||||
|
||||
if (G_interactive_fd)
|
||||
printf("[%d] %d %s\n", job->jobid, job->cmds[0].pid, job->cmdtext);
|
||||
- /* Last command's pid goes to $! */
|
||||
- G.last_bg_pid = job->cmds[job->num_cmds - 1].pid;
|
||||
G.last_jobid = job->jobid;
|
||||
}
|
||||
|
||||
@@ -4825,6 +4823,8 @@ static int run_list(struct pipe *pi)
|
||||
if (G.run_list_level == 1)
|
||||
insert_bg_job(pi);
|
||||
#endif
|
||||
+ /* Last command's pid goes to $! */
|
||||
+ G.last_bg_pid = pi->cmds[pi->num_cmds - 1].pid;
|
||||
G.last_exitcode = rcode = EXIT_SUCCESS;
|
||||
debug_printf_exec(": cmd&: exitcode EXIT_SUCCESS\n");
|
||||
} else {
|
||||
diff -urpN busybox-1.17.1/shell/hush_test/hush-trap/signal7.right busybox-1.17.1-shell/shell/hush_test/hush-trap/signal7.right
|
||||
--- busybox-1.17.1/shell/hush_test/hush-trap/signal7.right 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ busybox-1.17.1-shell/shell/hush_test/hush-trap/signal7.right 2010-07-25 13:09:32.000000000 +0200
|
||||
@@ -0,0 +1 @@
|
||||
+Bug detected: 0
|
||||
diff -urpN busybox-1.17.1/shell/hush_test/hush-trap/signal7.tests busybox-1.17.1-shell/shell/hush_test/hush-trap/signal7.tests
|
||||
--- busybox-1.17.1/shell/hush_test/hush-trap/signal7.tests 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ busybox-1.17.1-shell/shell/hush_test/hush-trap/signal7.tests 2010-07-25 13:09:32.000000000 +0200
|
||||
@@ -0,0 +1,18 @@
|
||||
+bug() {
|
||||
+ trap : exit
|
||||
+ # Bug was causing sh to be run in subshell,
|
||||
+ # as if this line is replaced with (sh -c ...; exit $?) &
|
||||
+ # here:
|
||||
+ sh -c 'echo REAL_CHILD=$$' &
|
||||
+ echo PARENTS_IDEA_OF_CHILD=$!
|
||||
+ wait # make sure bkgd shell completes
|
||||
+}
|
||||
+
|
||||
+bug | {
|
||||
+while read varval; do
|
||||
+ eval $varval
|
||||
+done
|
||||
+test x"$REAL_CHILD" != x"" \
|
||||
+&& test x"$REAL_CHILD" = x"$PARENTS_IDEA_OF_CHILD"
|
||||
+echo "Bug detected: $?"
|
||||
+}
|
||||
12
package/busybox/busybox-1.17.3/busybox-1.17.3-dnsd.patch
Normal file
12
package/busybox/busybox-1.17.3/busybox-1.17.3-dnsd.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -urpN busybox-1.17.3/networking/dnsd.c busybox-1.17.3-dnsd/networking/dnsd.c
|
||||
--- busybox-1.17.3/networking/dnsd.c 2010-10-09 21:57:14.000000000 +0200
|
||||
+++ busybox-1.17.3-dnsd/networking/dnsd.c 2010-10-29 00:37:43.066043841 +0200
|
||||
@@ -388,7 +388,7 @@ static int process_packet(struct dns_ent
|
||||
query_len = strlen(query_string) + 1;
|
||||
/* may be unaligned! */
|
||||
unaligned_type_class = (void *)(query_string + query_len);
|
||||
- query_len += sizeof(unaligned_type_class);
|
||||
+ query_len += sizeof(*unaligned_type_class);
|
||||
/* where to append answer block */
|
||||
answb = (void *)(unaligned_type_class + 1);
|
||||
|
||||
13
package/busybox/busybox-1.17.3/busybox-1.17.3-iproute.patch
Normal file
13
package/busybox/busybox-1.17.3/busybox-1.17.3-iproute.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff -urpN busybox-1.17.3/networking/libiproute/iproute.c busybox-1.17.3-iproute/networking/libiproute/iproute.c
|
||||
--- busybox-1.17.3/networking/libiproute/iproute.c 2010-10-09 21:57:14.000000000 +0200
|
||||
+++ busybox-1.17.3-iproute/networking/libiproute/iproute.c 2010-11-04 09:13:06.307919550 +0100
|
||||
@@ -791,8 +791,8 @@ static int iproute_get(char **argv)
|
||||
}
|
||||
req.r.rtm_dst_len = addr.bitlen;
|
||||
}
|
||||
- argv++;
|
||||
}
|
||||
+ argv++;
|
||||
}
|
||||
|
||||
if (req.r.rtm_dst_len == 0) {
|
||||
12
package/busybox/busybox-1.17.3/busybox-1.17.3-sort.patch
Normal file
12
package/busybox/busybox-1.17.3/busybox-1.17.3-sort.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -urpN busybox-1.17.3/coreutils/sort.c busybox-1.17.3-sort/coreutils/sort.c
|
||||
--- busybox-1.17.3/coreutils/sort.c 2010-10-09 21:57:13.000000000 +0200
|
||||
+++ busybox-1.17.3-sort/coreutils/sort.c 2010-10-20 15:17:35.320293543 +0200
|
||||
@@ -412,7 +412,7 @@ int sort_main(int argc UNUSED_PARAM, cha
|
||||
#if ENABLE_FEATURE_SORT_BIG
|
||||
/* Open output file _after_ we read all input ones */
|
||||
if (option_mask32 & FLAG_o)
|
||||
- xmove_fd(xopen3(str_o, O_WRONLY, 0666), STDOUT_FILENO);
|
||||
+ xmove_fd(xopen3(str_o, O_WRONLY|O_CREAT|O_TRUNC, 0666), STDOUT_FILENO);
|
||||
#endif
|
||||
flag = (option_mask32 & FLAG_z) ? '\0' : '\n';
|
||||
for (i = 0; i < linecount; i++)
|
||||
12
package/busybox/busybox-1.17.3/busybox-1.17.3-unicode.patch
Normal file
12
package/busybox/busybox-1.17.3/busybox-1.17.3-unicode.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -urpN busybox-1.17.3/libbb/unicode.c busybox-1.17.3-unicode/libbb/unicode.c
|
||||
--- busybox-1.17.3/libbb/unicode.c 2010-10-09 21:58:13.000000000 +0200
|
||||
+++ busybox-1.17.3-unicode/libbb/unicode.c 2010-10-29 00:48:36.951494079 +0200
|
||||
@@ -1006,7 +1006,7 @@ static char* FAST_FUNC unicode_conv_to_p
|
||||
}
|
||||
}
|
||||
if (stats)
|
||||
- stats->byte_count = stats->unicode_count = (d - dst);
|
||||
+ stats->byte_count = stats->unicode_count = stats->unicode_width = (d - dst);
|
||||
return dst;
|
||||
}
|
||||
|
||||
@@ -668,7 +668,7 @@ CONFIG_MAKEDEVS=y
|
||||
# CONFIG_FEATURE_MAKEDEVS_LEAF is not set
|
||||
CONFIG_FEATURE_MAKEDEVS_TABLE=y
|
||||
# CONFIG_MAN is not set
|
||||
# CONFIG_MICROCOM is not set
|
||||
CONFIG_MICROCOM=y
|
||||
CONFIG_MOUNTPOINT=y
|
||||
CONFIG_MT=y
|
||||
# CONFIG_RAIDAUTORUN is not set
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
config BR2_PACKAGE_CGILUA
|
||||
bool "cgilua"
|
||||
depends on BR2_LARGEFILE
|
||||
select BR2_PACKAGE_LUA_SHARED_LIBRARY
|
||||
select BR2_PACKAGE_LUAFILESYSTEM
|
||||
help
|
||||
@@ -8,6 +7,3 @@ config BR2_PACKAGE_CGILUA
|
||||
and manipulating input data from Web forms.
|
||||
|
||||
http://luaforge.net/projects/cgilua/
|
||||
|
||||
comment "cgilua requires a toolchain with LARGEFILE support"
|
||||
depends on !BR2_LARGEFILE
|
||||
|
||||
13
package/config/.gitignore
vendored
13
package/config/.gitignore
vendored
@@ -1,9 +1,4 @@
|
||||
/conf
|
||||
/mconf
|
||||
/qconf
|
||||
/qconf.moc
|
||||
/.tmp_qtcheck
|
||||
/lkc_defs.h
|
||||
/lex.zconf.c
|
||||
/zconf.hash.c
|
||||
/zconf.tab.c
|
||||
#
|
||||
# Quilt is being used to handle the patch series
|
||||
#
|
||||
.pc
|
||||
|
||||
@@ -1,53 +1,365 @@
|
||||
src := .
|
||||
top_srcdir=../../
|
||||
top_builddir=../../
|
||||
srctree := .
|
||||
obj ?= .
|
||||
# ===========================================================================
|
||||
# Kernel configuration targets
|
||||
# These targets are used from top-level makefile
|
||||
|
||||
include Makefile.kconfig
|
||||
#HOSTCFLAGS+=-Dinline="" -include foo.h
|
||||
-include $(obj)/.depend
|
||||
$(obj)/.depend: $(wildcard *.h *.c)
|
||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > $@ 2>/dev/null || :
|
||||
PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \
|
||||
localmodconfig localyesconfig
|
||||
|
||||
__hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
|
||||
host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
|
||||
host-cmulti := $(foreach m,$(__hostprogs),\
|
||||
$(if $($(m)-cxxobjs),,$(if $($(m)-objs),$(m))))
|
||||
host-cxxmulti := $(foreach m,$(__hostprogs),\
|
||||
$(if $($(m)-cxxobjs),$(m),$(if $($(m)-objs),)))
|
||||
host-cobjs := $(addprefix $(obj)/,$(sort $(foreach m,$(__hostprogs),$($(m)-objs))))
|
||||
host-cxxobjs := $(addprefix $(obj)/,$(sort $(foreach m,$(__hostprogs),$($(m)-cxxobjs))))
|
||||
ifdef KBUILD_KCONFIG
|
||||
Kconfig := $(KBUILD_KCONFIG)
|
||||
else
|
||||
Kconfig := arch/$(SRCARCH)/Kconfig
|
||||
endif
|
||||
|
||||
HOST_EXTRACFLAGS += -I$(obj)
|
||||
xconfig: $(obj)/qconf
|
||||
$< $(Kconfig)
|
||||
|
||||
$(host-csingle): %: %.c
|
||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $< $(HOST_LOADLIBES) -o $(obj)/$@
|
||||
gconfig: $(obj)/gconf
|
||||
$< $(Kconfig)
|
||||
|
||||
$(host-cmulti): %: $(host-cobjs) $(host-cshlib)
|
||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs)) $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
|
||||
menuconfig: $(obj)/mconf
|
||||
$< $(Kconfig)
|
||||
|
||||
$(host-cxxmulti): %: $(host-cxxobjs) $(host-cobjs) $(host-cshlib)
|
||||
$(HOSTCXX) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs) $($(@F)-cxxobjs)) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
|
||||
config: $(obj)/conf
|
||||
$< --oldaskconfig $(Kconfig)
|
||||
|
||||
$(obj)/%.o: %.c
|
||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< -o $@
|
||||
nconfig: $(obj)/nconf
|
||||
$< $(Kconfig)
|
||||
|
||||
$(obj)/%.o: $(obj)/%.c
|
||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< -o $@
|
||||
oldconfig: $(obj)/conf
|
||||
$< --$@ $(Kconfig)
|
||||
|
||||
$(obj)/%.o: %.cc
|
||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$(@F)) -c $< -o $@
|
||||
silentoldconfig: $(obj)/conf
|
||||
$(Q)mkdir -p include/generated
|
||||
$< --$@ $(Kconfig)
|
||||
|
||||
$(obj)/%:: $(src)/%_shipped
|
||||
$(Q)cat $< > $@
|
||||
# if no path is given, then use src directory to find file
|
||||
ifdef LSMOD
|
||||
LSMOD_F := $(LSMOD)
|
||||
ifeq ($(findstring /,$(LSMOD)),)
|
||||
LSMOD_F := $(objtree)/$(LSMOD)
|
||||
endif
|
||||
endif
|
||||
|
||||
clean:
|
||||
$(Q)rm -f $(addprefix $(obj)/,$(clean-files))
|
||||
distclean: clean
|
||||
$(Q)rm -f $(addprefix $(obj)/,$(lxdialog) $(conf-objs) $(mconf-objs) $(kxgettext-objs) \
|
||||
$(hostprogs-y) $(qconf-cxxobjs) $(qconf-objs) $(gconf-objs) \
|
||||
mconf .depend)
|
||||
localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
|
||||
$(Q)mkdir -p include/generated
|
||||
$(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config
|
||||
$(Q)if [ -f .config ]; then \
|
||||
cmp -s .tmp.config .config || \
|
||||
(mv -f .config .config.old.1; \
|
||||
mv -f .tmp.config .config; \
|
||||
$(obj)/conf --silentoldconfig $(Kconfig); \
|
||||
mv -f .config.old.1 .config.old) \
|
||||
else \
|
||||
mv -f .tmp.config .config; \
|
||||
$(obj)/conf --silentoldconfig $(Kconfig); \
|
||||
fi
|
||||
$(Q)rm -f .tmp.config
|
||||
|
||||
FORCE:
|
||||
.PHONY: FORCE clean distclean
|
||||
localyesconfig: $(obj)/streamline_config.pl $(obj)/conf
|
||||
$(Q)mkdir -p include/generated
|
||||
$(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config
|
||||
$(Q)sed -i s/=m/=y/ .tmp.config
|
||||
$(Q)if [ -f .config ]; then \
|
||||
cmp -s .tmp.config .config || \
|
||||
(mv -f .config .config.old.1; \
|
||||
mv -f .tmp.config .config; \
|
||||
$(obj)/conf --silentoldconfig $(Kconfig); \
|
||||
mv -f .config.old.1 .config.old) \
|
||||
else \
|
||||
mv -f .tmp.config .config; \
|
||||
$(obj)/conf --silentoldconfig $(Kconfig); \
|
||||
fi
|
||||
$(Q)rm -f .tmp.config
|
||||
|
||||
# Create new linux.pot file
|
||||
# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
|
||||
# The symlink is used to repair a deficiency in arch/um
|
||||
update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
|
||||
$(Q)echo " GEN config"
|
||||
$(Q)xgettext --default-domain=linux \
|
||||
--add-comments --keyword=_ --keyword=N_ \
|
||||
--from-code=UTF-8 \
|
||||
--files-from=scripts/kconfig/POTFILES.in \
|
||||
--output $(obj)/config.pot
|
||||
$(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
|
||||
$(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch
|
||||
$(Q)(for i in `ls arch/*/Kconfig`; \
|
||||
do \
|
||||
echo " GEN $$i"; \
|
||||
$(obj)/kxgettext $$i \
|
||||
>> $(obj)/config.pot; \
|
||||
done )
|
||||
$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
|
||||
--output $(obj)/linux.pot
|
||||
$(Q)rm -f arch/um/Kconfig.arch
|
||||
$(Q)rm -f $(obj)/config.pot
|
||||
|
||||
PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig
|
||||
|
||||
allnoconfig allyesconfig allmodconfig alldefconfig randconfig: $(obj)/conf
|
||||
$< --$@ $(Kconfig)
|
||||
|
||||
PHONY += listnewconfig oldnoconfig savedefconfig defconfig
|
||||
|
||||
listnewconfig oldnoconfig: $(obj)/conf
|
||||
$< --$@ $(Kconfig)
|
||||
|
||||
savedefconfig: $(obj)/conf
|
||||
$< --$@=defconfig $(Kconfig)
|
||||
|
||||
defconfig: $(obj)/conf
|
||||
ifeq ($(KBUILD_DEFCONFIG),)
|
||||
$< --defconfig $(Kconfig)
|
||||
else
|
||||
@echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
|
||||
$(Q)$< --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
|
||||
endif
|
||||
|
||||
%_defconfig: $(obj)/conf
|
||||
$(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
|
||||
|
||||
# Help text used by make help
|
||||
help:
|
||||
@echo ' config - Update current config utilising a line-oriented program'
|
||||
@echo ' nconfig - Update current config utilising a ncurses menu based program'
|
||||
@echo ' menuconfig - Update current config utilising a menu based program'
|
||||
@echo ' xconfig - Update current config utilising a QT based front-end'
|
||||
@echo ' gconfig - Update current config utilising a GTK based front-end'
|
||||
@echo ' oldconfig - Update current config utilising a provided .config as base'
|
||||
@echo ' localmodconfig - Update current config disabling modules not loaded'
|
||||
@echo ' localyesconfig - Update current config converting local mods to core'
|
||||
@echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps'
|
||||
@echo ' defconfig - New config with default from ARCH supplied defconfig'
|
||||
@echo ' savedefconfig - Save current config as ./defconfig (minimal config)'
|
||||
@echo ' allnoconfig - New config where all options are answered with no'
|
||||
@echo ' allyesconfig - New config where all options are accepted with yes'
|
||||
@echo ' allmodconfig - New config selecting modules when possible'
|
||||
@echo ' alldefconfig - New config with all symbols set to default'
|
||||
@echo ' randconfig - New config with random answer to all options'
|
||||
@echo ' listnewconfig - List new options'
|
||||
@echo ' oldnoconfig - Same as silentoldconfig but set new symbols to n (unset)'
|
||||
|
||||
# lxdialog stuff
|
||||
check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
|
||||
|
||||
# Use recursively expanded variables so we do not call gcc unless
|
||||
# we really need to do so. (Do not call gcc as part of make mrproper)
|
||||
HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags)
|
||||
HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
|
||||
|
||||
HOST_EXTRACFLAGS += -DLOCALE
|
||||
|
||||
|
||||
# ===========================================================================
|
||||
# Shared Makefile for the various kconfig executables:
|
||||
# conf: Used for defconfig, oldconfig and related targets
|
||||
# nconf: Used for the nconfig target.
|
||||
# Utilizes ncurses
|
||||
# mconf: Used for the menuconfig target
|
||||
# Utilizes the lxdialog package
|
||||
# qconf: Used for the xconfig target
|
||||
# Based on QT which needs to be installed to compile it
|
||||
# gconf: Used for the gconfig target
|
||||
# Based on GTK which needs to be installed to compile it
|
||||
# object files used by all kconfig flavours
|
||||
|
||||
lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o
|
||||
lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o
|
||||
|
||||
conf-objs := conf.o zconf.tab.o
|
||||
mconf-objs := mconf.o zconf.tab.o $(lxdialog)
|
||||
nconf-objs := nconf.o zconf.tab.o nconf.gui.o
|
||||
kxgettext-objs := kxgettext.o zconf.tab.o
|
||||
|
||||
hostprogs-y := conf qconf gconf kxgettext
|
||||
|
||||
ifeq ($(MAKECMDGOALS),nconfig)
|
||||
hostprogs-y += nconf
|
||||
endif
|
||||
ifeq ($(findstring nconf,$(MAKECMDGOALS)),nconf)
|
||||
hostprogs-y += nconf
|
||||
endif
|
||||
|
||||
ifeq ($(MAKECMDGOALS),menuconfig)
|
||||
hostprogs-y += mconf
|
||||
endif
|
||||
ifeq ($(findstring mconf,$(MAKECMDGOALS)),mconf)
|
||||
hostprogs-y += mconf
|
||||
endif
|
||||
|
||||
ifeq ($(MAKECMDGOALS),xconfig)
|
||||
qconf-target := 1
|
||||
endif
|
||||
ifeq ($(findstring qconf,$(MAKECMDGOALS)),qconf)
|
||||
qconf-target := 1
|
||||
endif
|
||||
|
||||
ifeq ($(MAKECMDGOALS),gconfig)
|
||||
gconf-target := 1
|
||||
endif
|
||||
ifeq ($(findstring gconf,$(MAKECMDGOALS)),gconf)
|
||||
gconf-target := 1
|
||||
endif
|
||||
|
||||
ifeq ($(qconf-target),1)
|
||||
qconf-cxxobjs := qconf.o
|
||||
qconf-objs := kconfig_load.o zconf.tab.o
|
||||
endif
|
||||
|
||||
ifeq ($(gconf-target),1)
|
||||
gconf-objs := gconf.o kconfig_load.o zconf.tab.o
|
||||
endif
|
||||
|
||||
clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \
|
||||
.tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h
|
||||
clean-files += config.pot linux.pot
|
||||
clean-files += conf $(conf-objs)
|
||||
clean-files += mconf $(mconf-objs)
|
||||
clean-files += nconf $(nconf-objs)
|
||||
clean-files += qconf qconf.o
|
||||
clean-files += gconf gconf.o
|
||||
clean-files += kconfig_load.o zconf.tab.o
|
||||
clean-files += $(kxgettext-objs)
|
||||
|
||||
# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
|
||||
PHONY += $(obj)/dochecklxdialog
|
||||
$(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog
|
||||
$(obj)/dochecklxdialog:
|
||||
$(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES)
|
||||
|
||||
always := dochecklxdialog
|
||||
|
||||
# Add environment specific flags
|
||||
HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS))
|
||||
|
||||
# generated files seem to need this to find local include files
|
||||
HOSTCFLAGS_lex.zconf.o := -I$(src)
|
||||
HOSTCFLAGS_zconf.tab.o := -I$(src)
|
||||
|
||||
HOSTLOADLIBES_qconf = $(KC_QT_LIBS) -ldl
|
||||
HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK
|
||||
|
||||
HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` -ldl
|
||||
HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
|
||||
-D LKC_DIRECT_LINK
|
||||
|
||||
HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses
|
||||
$(obj)/qconf.o: $(obj)/.tmp_qtcheck
|
||||
|
||||
ifeq ($(qconf-target),1)
|
||||
$(obj)/.tmp_qtcheck: $(src)/Makefile
|
||||
-include $(obj)/.tmp_qtcheck
|
||||
|
||||
# QT needs some extra effort...
|
||||
$(obj)/.tmp_qtcheck:
|
||||
@set -e; echo " CHECK qt"; dir=""; pkg=""; \
|
||||
pkg-config --exists qt 2> /dev/null && pkg=qt; \
|
||||
pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \
|
||||
if [ -n "$$pkg" ]; then \
|
||||
cflags="\$$(shell pkg-config $$pkg --cflags)"; \
|
||||
libs="\$$(shell pkg-config $$pkg --libs)"; \
|
||||
moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \
|
||||
dir="$$(pkg-config $$pkg --variable=prefix)"; \
|
||||
else \
|
||||
for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \
|
||||
if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \
|
||||
done; \
|
||||
if [ -z "$$dir" ]; then \
|
||||
echo "*"; \
|
||||
echo "* Unable to find the QT3 installation. Please make sure that"; \
|
||||
echo "* the QT3 development package is correctly installed and"; \
|
||||
echo "* either install pkg-config or set the QTDIR environment"; \
|
||||
echo "* variable to the correct location."; \
|
||||
echo "*"; \
|
||||
false; \
|
||||
fi; \
|
||||
libpath=$$dir/lib; lib=qt; osdir=""; \
|
||||
$(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \
|
||||
osdir=x$$($(HOSTCXX) -print-multi-os-directory); \
|
||||
test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \
|
||||
test -f $$libpath/libqt-mt.so && lib=qt-mt; \
|
||||
cflags="-I$$dir/include"; \
|
||||
libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \
|
||||
moc="$$dir/bin/moc"; \
|
||||
fi; \
|
||||
if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \
|
||||
echo "*"; \
|
||||
echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \
|
||||
echo "*"; \
|
||||
moc="/usr/bin/moc"; \
|
||||
fi; \
|
||||
echo "KC_QT_CFLAGS=$$cflags" > $@; \
|
||||
echo "KC_QT_LIBS=$$libs" >> $@; \
|
||||
echo "KC_QT_MOC=$$moc" >> $@
|
||||
endif
|
||||
|
||||
$(obj)/gconf.o: $(obj)/.tmp_gtkcheck
|
||||
|
||||
ifeq ($(gconf-target),1)
|
||||
-include $(obj)/.tmp_gtkcheck
|
||||
|
||||
# GTK needs some extra effort, too...
|
||||
$(obj)/.tmp_gtkcheck:
|
||||
@if `pkg-config --exists gtk+-2.0 gmodule-2.0 libglade-2.0`; then \
|
||||
if `pkg-config --atleast-version=2.0.0 gtk+-2.0`; then \
|
||||
touch $@; \
|
||||
else \
|
||||
echo "*"; \
|
||||
echo "* GTK+ is present but version >= 2.0.0 is required."; \
|
||||
echo "*"; \
|
||||
false; \
|
||||
fi \
|
||||
else \
|
||||
echo "*"; \
|
||||
echo "* Unable to find the GTK+ installation. Please make sure that"; \
|
||||
echo "* the GTK+ 2.0 development package is correctly installed..."; \
|
||||
echo "* You need gtk+-2.0, glib-2.0 and libglade-2.0."; \
|
||||
echo "*"; \
|
||||
false; \
|
||||
fi
|
||||
endif
|
||||
|
||||
$(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c
|
||||
|
||||
$(obj)/kconfig_load.o: $(obj)/lkc_defs.h
|
||||
|
||||
$(obj)/qconf.o: $(obj)/qconf.moc $(obj)/lkc_defs.h
|
||||
|
||||
$(obj)/gconf.o: $(obj)/lkc_defs.h
|
||||
|
||||
$(obj)/%.moc: $(src)/%.h
|
||||
$(KC_QT_MOC) -i $< -o $@
|
||||
|
||||
$(obj)/lkc_defs.h: $(src)/lkc_proto.h
|
||||
sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
|
||||
|
||||
# Extract gconf menu items for I18N support
|
||||
$(obj)/gconf.glade.h: $(obj)/gconf.glade
|
||||
intltool-extract --type=gettext/glade $(obj)/gconf.glade
|
||||
|
||||
###
|
||||
# The following requires flex/bison/gperf
|
||||
# By default we use the _shipped versions, uncomment the following line if
|
||||
# you are modifying the flex/bison src.
|
||||
# LKC_GENPARSER := 1
|
||||
|
||||
ifdef LKC_GENPARSER
|
||||
|
||||
$(obj)/zconf.tab.c: $(src)/zconf.y
|
||||
$(obj)/lex.zconf.c: $(src)/zconf.l
|
||||
$(obj)/zconf.hash.c: $(src)/zconf.gperf
|
||||
|
||||
%.tab.c: %.y
|
||||
bison -l -b $* -p $(notdir $*) $<
|
||||
cp $@ $@_shipped
|
||||
|
||||
lex.%.c: %.l
|
||||
flex -L -P$(notdir $*) -o$@ $<
|
||||
cp $@ $@_shipped
|
||||
|
||||
%.hash.c: %.gperf
|
||||
gperf < $< > $@
|
||||
cp $@ $@_shipped
|
||||
|
||||
endif
|
||||
|
||||
53
package/config/Makefile.br
Normal file
53
package/config/Makefile.br
Normal file
@@ -0,0 +1,53 @@
|
||||
src := .
|
||||
top_srcdir=../../
|
||||
top_builddir=../../
|
||||
srctree := .
|
||||
obj ?= .
|
||||
|
||||
include Makefile
|
||||
#HOSTCFLAGS+=-Dinline="" -include foo.h
|
||||
-include $(obj)/.depend
|
||||
$(obj)/.depend: $(wildcard *.h *.c)
|
||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > $@ 2>/dev/null || :
|
||||
|
||||
__hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
|
||||
host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
|
||||
host-cmulti := $(foreach m,$(__hostprogs),\
|
||||
$(if $($(m)-cxxobjs),,$(if $($(m)-objs),$(m))))
|
||||
host-cxxmulti := $(foreach m,$(__hostprogs),\
|
||||
$(if $($(m)-cxxobjs),$(m),$(if $($(m)-objs),)))
|
||||
host-cobjs := $(addprefix $(obj)/,$(sort $(foreach m,$(__hostprogs),$($(m)-objs))))
|
||||
host-cxxobjs := $(addprefix $(obj)/,$(sort $(foreach m,$(__hostprogs),$($(m)-cxxobjs))))
|
||||
|
||||
HOST_EXTRACFLAGS += -I$(obj)
|
||||
|
||||
$(host-csingle): %: %.c
|
||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $< $(HOST_LOADLIBES) -o $(obj)/$@
|
||||
|
||||
$(host-cmulti): %: $(host-cobjs) $(host-cshlib)
|
||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs)) $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
|
||||
|
||||
$(host-cxxmulti): %: $(host-cxxobjs) $(host-cobjs) $(host-cshlib)
|
||||
$(HOSTCXX) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs) $($(@F)-cxxobjs)) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
|
||||
|
||||
$(obj)/%.o: %.c
|
||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< -o $@
|
||||
|
||||
$(obj)/%.o: $(obj)/%.c
|
||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< -o $@
|
||||
|
||||
$(obj)/%.o: %.cc
|
||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$(@F)) -c $< -o $@
|
||||
|
||||
$(obj)/%:: $(src)/%_shipped
|
||||
$(Q)cat $< > $@
|
||||
|
||||
clean:
|
||||
$(Q)rm -f $(addprefix $(obj)/,$(clean-files))
|
||||
distclean: clean
|
||||
$(Q)rm -f $(addprefix $(obj)/,$(lxdialog) $(conf-objs) $(mconf-objs) $(kxgettext-objs) \
|
||||
$(hostprogs-y) $(qconf-cxxobjs) $(qconf-objs) $(gconf-objs) \
|
||||
mconf .depend)
|
||||
|
||||
FORCE:
|
||||
.PHONY: FORCE clean distclean
|
||||
@@ -1,303 +0,0 @@
|
||||
# ===========================================================================
|
||||
# Kernel configuration targets
|
||||
# These targets are used from top-level makefile
|
||||
|
||||
PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
|
||||
|
||||
ifdef KBUILD_KCONFIG
|
||||
Kconfig := $(KBUILD_KCONFIG)
|
||||
else
|
||||
Kconfig := arch/$(SRCARCH)/Kconfig
|
||||
endif
|
||||
|
||||
xconfig: $(obj)/qconf
|
||||
$< $(Kconfig)
|
||||
|
||||
gconfig: $(obj)/gconf
|
||||
$< $(Kconfig)
|
||||
|
||||
menuconfig: $(obj)/mconf
|
||||
$< $(Kconfig)
|
||||
|
||||
config: $(obj)/conf
|
||||
$< $(Kconfig)
|
||||
|
||||
oldconfig: $(obj)/conf
|
||||
$< -o $(Kconfig)
|
||||
|
||||
silentoldconfig: $(obj)/conf
|
||||
$< -s $(Kconfig)
|
||||
|
||||
# Create new linux.pot file
|
||||
# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
|
||||
# The symlink is used to repair a deficiency in arch/um
|
||||
update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
|
||||
$(Q)echo " GEN config"
|
||||
$(Q)xgettext --default-domain=linux \
|
||||
--add-comments --keyword=_ --keyword=N_ \
|
||||
--from-code=UTF-8 \
|
||||
--files-from=scripts/kconfig/POTFILES.in \
|
||||
--output $(obj)/config.pot
|
||||
$(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
|
||||
$(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch
|
||||
$(Q)(for i in `ls arch/*/Kconfig`; \
|
||||
do \
|
||||
echo " GEN $$i"; \
|
||||
$(obj)/kxgettext $$i \
|
||||
>> $(obj)/config.pot; \
|
||||
done )
|
||||
$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
|
||||
--output $(obj)/linux.pot
|
||||
$(Q)rm -f arch/um/Kconfig.arch
|
||||
$(Q)rm -f $(obj)/config.pot
|
||||
|
||||
PHONY += randconfig allyesconfig allnoconfig allmodconfig defconfig
|
||||
|
||||
randconfig: $(obj)/conf
|
||||
$< -r $(Kconfig)
|
||||
|
||||
allyesconfig: $(obj)/conf
|
||||
$< -y $(Kconfig)
|
||||
|
||||
allnoconfig: $(obj)/conf
|
||||
$< -n $(Kconfig)
|
||||
|
||||
allmodconfig: $(obj)/conf
|
||||
$< -m $(Kconfig)
|
||||
|
||||
defconfig: $(obj)/conf
|
||||
ifeq ($(KBUILD_DEFCONFIG),)
|
||||
$< -d $(Kconfig)
|
||||
else
|
||||
@echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
|
||||
$(Q)$< -D arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
|
||||
endif
|
||||
|
||||
%_defconfig: $(obj)/conf
|
||||
$(Q)$< -D arch/$(SRCARCH)/configs/$@ $(Kconfig)
|
||||
|
||||
# Help text used by make help
|
||||
help:
|
||||
@echo ' config - Update current config utilising a line-oriented program'
|
||||
@echo ' menuconfig - Update current config utilising a menu based program'
|
||||
@echo ' xconfig - Update current config utilising a QT based front-end'
|
||||
@echo ' gconfig - Update current config utilising a GTK based front-end'
|
||||
@echo ' oldconfig - Update current config utilising a provided .config as base'
|
||||
@echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps'
|
||||
@echo ' randconfig - New config with random answer to all options'
|
||||
@echo ' defconfig - New config with default answer to all options'
|
||||
@echo ' allmodconfig - New config selecting modules when possible'
|
||||
@echo ' allyesconfig - New config where all options are accepted with yes'
|
||||
@echo ' allnoconfig - New config where all options are answered with no'
|
||||
|
||||
# lxdialog stuff
|
||||
check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
|
||||
|
||||
# Use recursively expanded variables so we do not call gcc unless
|
||||
# we really need to do so. (Do not call gcc as part of make mrproper)
|
||||
HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags)
|
||||
HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
|
||||
|
||||
HOST_EXTRACFLAGS += -DLOCALE
|
||||
|
||||
|
||||
# ===========================================================================
|
||||
# Shared Makefile for the various kconfig executables:
|
||||
# conf: Used for defconfig, oldconfig and related targets
|
||||
# mconf: Used for the menuconfig target
|
||||
# Utilizes the lxdialog package
|
||||
# qconf: Used for the xconfig target
|
||||
# Based on QT which needs to be installed to compile it
|
||||
# gconf: Used for the gconfig target
|
||||
# Based on GTK which needs to be installed to compile it
|
||||
# object files used by all kconfig flavours
|
||||
|
||||
lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o
|
||||
lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o
|
||||
|
||||
conf-objs := conf.o zconf.tab.o
|
||||
mconf-objs := mconf.o zconf.tab.o $(lxdialog)
|
||||
kxgettext-objs := kxgettext.o zconf.tab.o
|
||||
|
||||
hostprogs-y := conf qconf gconf kxgettext
|
||||
|
||||
ifeq ($(MAKECMDGOALS),menuconfig)
|
||||
hostprogs-y += mconf
|
||||
endif
|
||||
ifeq ($(findstring mconf,$(MAKECMDGOALS)),mconf)
|
||||
hostprogs-y += mconf
|
||||
endif
|
||||
|
||||
ifeq ($(MAKECMDGOALS),xconfig)
|
||||
qconf-target := 1
|
||||
endif
|
||||
ifeq ($(findstring qconf,$(MAKECMDGOALS)),qconf)
|
||||
qconf-target := 1
|
||||
endif
|
||||
|
||||
ifeq ($(MAKECMDGOALS),gconfig)
|
||||
gconf-target := 1
|
||||
endif
|
||||
ifeq ($(findstring gconf,$(MAKECMDGOALS)),gconf)
|
||||
gconf-target := 1
|
||||
endif
|
||||
|
||||
ifeq ($(qconf-target),1)
|
||||
qconf-cxxobjs := qconf.o
|
||||
qconf-objs := kconfig_load.o zconf.tab.o
|
||||
endif
|
||||
|
||||
ifeq ($(gconf-target),1)
|
||||
gconf-objs := gconf.o kconfig_load.o zconf.tab.o
|
||||
endif
|
||||
|
||||
clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \
|
||||
.tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h
|
||||
clean-files += config.pot linux.pot
|
||||
clean-files += conf $(conf-objs)
|
||||
clean-files += mconf $(mconf-objs)
|
||||
clean-files += qconf qconf.o
|
||||
clean-files += gconf gconf.o
|
||||
clean-files += kconfig_load.o zconf.tab.o
|
||||
clean-files += $(kxgettext-objs)
|
||||
|
||||
# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
|
||||
PHONY += $(obj)/dochecklxdialog
|
||||
$(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog
|
||||
$(obj)/dochecklxdialog:
|
||||
$(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES)
|
||||
|
||||
always := dochecklxdialog
|
||||
|
||||
# Add environment specific flags
|
||||
HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS))
|
||||
|
||||
# generated files seem to need this to find local include files
|
||||
HOSTCFLAGS_lex.zconf.o := -I$(src)
|
||||
HOSTCFLAGS_zconf.tab.o := -I$(src)
|
||||
|
||||
HOSTLOADLIBES_qconf = $(KC_QT_LIBS) -ldl
|
||||
HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK
|
||||
|
||||
HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` -ldl
|
||||
HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
|
||||
-D LKC_DIRECT_LINK
|
||||
|
||||
$(obj)/qconf.o: $(obj)/.tmp_qtcheck
|
||||
|
||||
ifeq ($(qconf-target),1)
|
||||
$(obj)/.tmp_qtcheck: $(src)/Makefile
|
||||
-include $(obj)/.tmp_qtcheck
|
||||
|
||||
# QT needs some extra effort...
|
||||
$(obj)/.tmp_qtcheck:
|
||||
@set -e; echo " CHECK qt"; dir=""; pkg=""; \
|
||||
pkg-config --exists qt 2> /dev/null && pkg=qt; \
|
||||
pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \
|
||||
if [ -n "$$pkg" ]; then \
|
||||
cflags="\$$(shell pkg-config $$pkg --cflags)"; \
|
||||
libs="\$$(shell pkg-config $$pkg --libs)"; \
|
||||
moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \
|
||||
dir="$$(pkg-config $$pkg --variable=prefix)"; \
|
||||
else \
|
||||
for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \
|
||||
if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \
|
||||
done; \
|
||||
if [ -z "$$dir" ]; then \
|
||||
echo "*"; \
|
||||
echo "* Unable to find the QT3 installation. Please make sure that"; \
|
||||
echo "* the QT3 development package is correctly installed and"; \
|
||||
echo "* either install pkg-config or set the QTDIR environment"; \
|
||||
echo "* variable to the correct location."; \
|
||||
echo "*"; \
|
||||
false; \
|
||||
fi; \
|
||||
libpath=$$dir/lib; lib=qt; osdir=""; \
|
||||
$(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \
|
||||
osdir=x$$($(HOSTCXX) -print-multi-os-directory); \
|
||||
test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \
|
||||
test -f $$libpath/libqt-mt.so && lib=qt-mt; \
|
||||
cflags="-I$$dir/include"; \
|
||||
libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \
|
||||
moc="$$dir/bin/moc"; \
|
||||
fi; \
|
||||
if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \
|
||||
echo "*"; \
|
||||
echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \
|
||||
echo "*"; \
|
||||
moc="/usr/bin/moc"; \
|
||||
fi; \
|
||||
echo "KC_QT_CFLAGS=$$cflags" > $@; \
|
||||
echo "KC_QT_LIBS=$$libs" >> $@; \
|
||||
echo "KC_QT_MOC=$$moc" >> $@
|
||||
endif
|
||||
|
||||
$(obj)/gconf.o: $(obj)/.tmp_gtkcheck
|
||||
|
||||
ifeq ($(gconf-target),1)
|
||||
-include $(obj)/.tmp_gtkcheck
|
||||
|
||||
# GTK needs some extra effort, too...
|
||||
$(obj)/.tmp_gtkcheck:
|
||||
@if `pkg-config --exists gtk+-2.0 gmodule-2.0 libglade-2.0`; then \
|
||||
if `pkg-config --atleast-version=2.0.0 gtk+-2.0`; then \
|
||||
touch $@; \
|
||||
else \
|
||||
echo "*"; \
|
||||
echo "* GTK+ is present but version >= 2.0.0 is required."; \
|
||||
echo "*"; \
|
||||
false; \
|
||||
fi \
|
||||
else \
|
||||
echo "*"; \
|
||||
echo "* Unable to find the GTK+ installation. Please make sure that"; \
|
||||
echo "* the GTK+ 2.0 development package is correctly installed..."; \
|
||||
echo "* You need gtk+-2.0, glib-2.0 and libglade-2.0."; \
|
||||
echo "*"; \
|
||||
false; \
|
||||
fi
|
||||
endif
|
||||
|
||||
$(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c
|
||||
|
||||
$(obj)/kconfig_load.o: $(obj)/lkc_defs.h
|
||||
|
||||
$(obj)/qconf.o: $(obj)/qconf.moc $(obj)/lkc_defs.h
|
||||
|
||||
$(obj)/gconf.o: $(obj)/lkc_defs.h
|
||||
|
||||
$(obj)/%.moc: $(src)/%.h
|
||||
$(KC_QT_MOC) -i $< -o $@
|
||||
|
||||
$(obj)/lkc_defs.h: $(src)/lkc_proto.h
|
||||
sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
|
||||
|
||||
# Extract gconf menu items for I18N support
|
||||
$(obj)/gconf.glade.h: $(obj)/gconf.glade
|
||||
intltool-extract --type=gettext/glade $(obj)/gconf.glade
|
||||
|
||||
###
|
||||
# The following requires flex/bison/gperf
|
||||
# By default we use the _shipped versions, uncomment the following line if
|
||||
# you are modifying the flex/bison src.
|
||||
# LKC_GENPARSER := 1
|
||||
|
||||
ifdef LKC_GENPARSER
|
||||
|
||||
$(obj)/zconf.tab.c: $(src)/zconf.y
|
||||
$(obj)/lex.zconf.c: $(src)/zconf.l
|
||||
$(obj)/zconf.hash.c: $(src)/zconf.gperf
|
||||
|
||||
%.tab.c: %.y
|
||||
bison -l -b $* -p $(notdir $*) $<
|
||||
cp $@ $@_shipped
|
||||
|
||||
lex.%.c: %.l
|
||||
flex -L -P$(notdir $*) -o$@ $<
|
||||
cp $@ $@_shipped
|
||||
|
||||
%.hash.c: %.gperf
|
||||
gperf < $< > $@
|
||||
cp $@ $@_shipped
|
||||
|
||||
endif
|
||||
@@ -1,16 +1,12 @@
|
||||
This is a copy of the kconfig code in the kernel (currently 2.6.24.4) tweaked
|
||||
This is a copy of the kconfig code in the kernel (currently 2.6.36-rc1) tweaked
|
||||
to suit Buildroot.
|
||||
|
||||
To update:
|
||||
cp -r /usr/src/linux/scripts/kconfig package/config.new
|
||||
cd package/config.new
|
||||
cp /usr/src/linux/Documentation/kbuild/kconfig-language.txt .
|
||||
patch -p1 < ../config/kconfig-to-buildroot2.patch
|
||||
mv Makefile Makefile.kconfig
|
||||
cp ../config/README.buildroot2 .
|
||||
cp ../config/foo.h .
|
||||
cp ../config/Makefile .
|
||||
cp ../config/kconfig-to-buildroot2.patch .
|
||||
cp -a ../config/patches ../config/README.buildroot2 .
|
||||
quilt push -a
|
||||
# Fix any conflict
|
||||
cd ..
|
||||
rm -rf config
|
||||
mv config.new config
|
||||
@@ -19,4 +15,6 @@ Then verify the toplevel targets work:
|
||||
config
|
||||
defconfig
|
||||
menuconfig
|
||||
xconfig
|
||||
gconfig
|
||||
oldconfig
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
@@ -19,16 +20,21 @@
|
||||
static void conf(struct menu *menu);
|
||||
static void check_conf(struct menu *menu);
|
||||
|
||||
enum {
|
||||
ask_all,
|
||||
ask_new,
|
||||
ask_silent,
|
||||
set_default,
|
||||
set_yes,
|
||||
set_mod,
|
||||
set_no,
|
||||
set_random
|
||||
} input_mode = ask_all;
|
||||
enum input_mode {
|
||||
oldaskconfig,
|
||||
silentoldconfig,
|
||||
oldconfig,
|
||||
allnoconfig,
|
||||
allyesconfig,
|
||||
allmodconfig,
|
||||
alldefconfig,
|
||||
randconfig,
|
||||
defconfig,
|
||||
savedefconfig,
|
||||
listnewconfig,
|
||||
oldnoconfig,
|
||||
} input_mode = oldaskconfig;
|
||||
|
||||
char *defconfig_file;
|
||||
|
||||
static int indent = 1;
|
||||
@@ -38,14 +44,14 @@ static int conf_cnt;
|
||||
static char line[128];
|
||||
static struct menu *rootEntry;
|
||||
|
||||
static char nohelp_text[] = N_("Sorry, no help available for this option yet.\n");
|
||||
|
||||
static const char *get_help(struct menu *menu)
|
||||
static void print_help(struct menu *menu)
|
||||
{
|
||||
if (menu_has_help(menu))
|
||||
return _(menu_get_help(menu));
|
||||
else
|
||||
return nohelp_text;
|
||||
struct gstr help = str_new();
|
||||
|
||||
menu_get_ext_help(menu, &help);
|
||||
|
||||
printf("\n%s\n", str_get(&help));
|
||||
str_free(&help);
|
||||
}
|
||||
|
||||
static void strip(char *str)
|
||||
@@ -93,16 +99,16 @@ static int conf_askvalue(struct symbol *sym, const char *def)
|
||||
}
|
||||
|
||||
switch (input_mode) {
|
||||
case ask_new:
|
||||
case ask_silent:
|
||||
case oldconfig:
|
||||
case silentoldconfig:
|
||||
if (sym_has_value(sym)) {
|
||||
printf("%s\n", def);
|
||||
return 0;
|
||||
}
|
||||
check_stdin();
|
||||
case ask_all:
|
||||
case oldaskconfig:
|
||||
fflush(stdout);
|
||||
fgets(line, 128, stdin);
|
||||
xfgets(line, 128, stdin);
|
||||
return 1;
|
||||
default:
|
||||
break;
|
||||
@@ -121,7 +127,7 @@ static int conf_askvalue(struct symbol *sym, const char *def)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int conf_string(struct menu *menu)
|
||||
static int conf_string(struct menu *menu)
|
||||
{
|
||||
struct symbol *sym = menu->sym;
|
||||
const char *def;
|
||||
@@ -140,7 +146,7 @@ int conf_string(struct menu *menu)
|
||||
case '?':
|
||||
/* print help */
|
||||
if (line[1] == '\n') {
|
||||
printf("\n%s\n", get_help(menu));
|
||||
print_help(menu);
|
||||
def = NULL;
|
||||
break;
|
||||
}
|
||||
@@ -156,14 +162,12 @@ int conf_string(struct menu *menu)
|
||||
static int conf_sym(struct menu *menu)
|
||||
{
|
||||
struct symbol *sym = menu->sym;
|
||||
int type;
|
||||
tristate oldval, newval;
|
||||
|
||||
while (1) {
|
||||
printf("%*s%s ", indent - 1, "", _(menu->prompt->text));
|
||||
if (sym->name)
|
||||
printf("(%s) ", sym->name);
|
||||
type = sym_get_type(sym);
|
||||
putchar('[');
|
||||
oldval = sym_get_tristate_value(sym);
|
||||
switch (oldval) {
|
||||
@@ -220,7 +224,7 @@ static int conf_sym(struct menu *menu)
|
||||
if (sym_set_tristate_value(sym, newval))
|
||||
return 0;
|
||||
help:
|
||||
printf("\n%s\n", get_help(menu));
|
||||
print_help(menu);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,11 +232,9 @@ static int conf_choice(struct menu *menu)
|
||||
{
|
||||
struct symbol *sym, *def_sym;
|
||||
struct menu *child;
|
||||
int type;
|
||||
bool is_new;
|
||||
|
||||
sym = menu->sym;
|
||||
type = sym_get_type(sym);
|
||||
is_new = !sym_has_value(sym);
|
||||
if (sym_is_changable(sym)) {
|
||||
conf_sym(menu);
|
||||
@@ -294,20 +296,20 @@ static int conf_choice(struct menu *menu)
|
||||
printf("?");
|
||||
printf("]: ");
|
||||
switch (input_mode) {
|
||||
case ask_new:
|
||||
case ask_silent:
|
||||
case oldconfig:
|
||||
case silentoldconfig:
|
||||
if (!is_new) {
|
||||
cnt = def;
|
||||
printf("%d\n", cnt);
|
||||
break;
|
||||
}
|
||||
check_stdin();
|
||||
case ask_all:
|
||||
case oldaskconfig:
|
||||
fflush(stdout);
|
||||
fgets(line, 128, stdin);
|
||||
xfgets(line, 128, stdin);
|
||||
strip(line);
|
||||
if (line[0] == '?') {
|
||||
printf("\n%s\n", get_help(menu));
|
||||
print_help(menu);
|
||||
continue;
|
||||
}
|
||||
if (!line[0])
|
||||
@@ -331,7 +333,7 @@ static int conf_choice(struct menu *menu)
|
||||
if (!child)
|
||||
continue;
|
||||
if (line[strlen(line) - 1] == '?') {
|
||||
printf("\n%s\n", get_help(child));
|
||||
print_help(child);
|
||||
continue;
|
||||
}
|
||||
sym_set_choice_value(sym, child->sym);
|
||||
@@ -360,7 +362,10 @@ static void conf(struct menu *menu)
|
||||
|
||||
switch (prop->type) {
|
||||
case P_MENU:
|
||||
if (input_mode == ask_silent && rootEntry != menu) {
|
||||
if ((input_mode == silentoldconfig ||
|
||||
input_mode == listnewconfig ||
|
||||
input_mode == oldnoconfig) &&
|
||||
rootEntry != menu) {
|
||||
check_conf(menu);
|
||||
return;
|
||||
}
|
||||
@@ -418,10 +423,16 @@ static void check_conf(struct menu *menu)
|
||||
if (sym && !sym_has_value(sym)) {
|
||||
if (sym_is_changable(sym) ||
|
||||
(sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
|
||||
if (!conf_cnt++)
|
||||
printf(_("*\n* Restart config...\n*\n"));
|
||||
rootEntry = menu_get_parent_menu(menu);
|
||||
conf(rootEntry);
|
||||
if (input_mode == listnewconfig) {
|
||||
if (sym->name && !sym_is_choice_value(sym)) {
|
||||
printf("CONFIG_%s\n", sym->name);
|
||||
}
|
||||
} else {
|
||||
if (!conf_cnt++)
|
||||
printf(_("*\n* Restart config...\n*\n"));
|
||||
rootEntry = menu_get_parent_menu(menu);
|
||||
conf(rootEntry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -429,6 +440,22 @@ static void check_conf(struct menu *menu)
|
||||
check_conf(child);
|
||||
}
|
||||
|
||||
static struct option long_opts[] = {
|
||||
{"oldaskconfig", no_argument, NULL, oldaskconfig},
|
||||
{"oldconfig", no_argument, NULL, oldconfig},
|
||||
{"silentoldconfig", no_argument, NULL, silentoldconfig},
|
||||
{"defconfig", optional_argument, NULL, defconfig},
|
||||
{"savedefconfig", required_argument, NULL, savedefconfig},
|
||||
{"allnoconfig", no_argument, NULL, allnoconfig},
|
||||
{"allyesconfig", no_argument, NULL, allyesconfig},
|
||||
{"allmodconfig", no_argument, NULL, allmodconfig},
|
||||
{"alldefconfig", no_argument, NULL, alldefconfig},
|
||||
{"randconfig", no_argument, NULL, randconfig},
|
||||
{"listnewconfig", no_argument, NULL, listnewconfig},
|
||||
{"oldnoconfig", no_argument, NULL, oldnoconfig},
|
||||
{NULL, 0, NULL, 0}
|
||||
};
|
||||
|
||||
int main(int ac, char **av)
|
||||
{
|
||||
int opt;
|
||||
@@ -439,32 +466,17 @@ int main(int ac, char **av)
|
||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||
textdomain(PACKAGE);
|
||||
|
||||
while ((opt = getopt(ac, av, "osdD:nmyrh")) != -1) {
|
||||
while ((opt = getopt_long_only(ac, av, "", long_opts, NULL)) != -1) {
|
||||
input_mode = (enum input_mode)opt;
|
||||
switch (opt) {
|
||||
case 'o':
|
||||
input_mode = ask_silent;
|
||||
break;
|
||||
case 's':
|
||||
input_mode = ask_silent;
|
||||
case silentoldconfig:
|
||||
sync_kconfig = 1;
|
||||
break;
|
||||
case 'd':
|
||||
input_mode = set_default;
|
||||
break;
|
||||
case 'D':
|
||||
input_mode = set_default;
|
||||
case defconfig:
|
||||
case savedefconfig:
|
||||
defconfig_file = optarg;
|
||||
break;
|
||||
case 'n':
|
||||
input_mode = set_no;
|
||||
break;
|
||||
case 'm':
|
||||
input_mode = set_mod;
|
||||
break;
|
||||
case 'y':
|
||||
input_mode = set_yes;
|
||||
break;
|
||||
case 'r':
|
||||
case randconfig:
|
||||
{
|
||||
struct timeval now;
|
||||
unsigned int seed;
|
||||
@@ -477,17 +489,12 @@ int main(int ac, char **av)
|
||||
|
||||
seed = (unsigned int)((now.tv_sec + 1) * (now.tv_usec + 1));
|
||||
srand(seed);
|
||||
|
||||
input_mode = set_random;
|
||||
break;
|
||||
}
|
||||
case 'h':
|
||||
printf(_("See README for usage info\n"));
|
||||
exit(0);
|
||||
break;
|
||||
default:
|
||||
case '?':
|
||||
fprintf(stderr, _("See README for usage info\n"));
|
||||
exit(1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (ac == optind) {
|
||||
@@ -500,7 +507,7 @@ int main(int ac, char **av)
|
||||
name = conf_get_configname();
|
||||
if (stat(name, &tmpstat)) {
|
||||
fprintf(stderr, _("***\n"
|
||||
"*** You have not yet configured Buildroot!\n"
|
||||
"*** You have not yet configured your Buildroot!\n"
|
||||
"*** (missing .config file \"%s\")\n"
|
||||
"***\n"
|
||||
"*** Please run some configurator (e.g. \"make oldconfig\" or\n"
|
||||
@@ -511,7 +518,7 @@ int main(int ac, char **av)
|
||||
}
|
||||
|
||||
switch (input_mode) {
|
||||
case set_default:
|
||||
case defconfig:
|
||||
if (!defconfig_file)
|
||||
defconfig_file = conf_get_default_confname();
|
||||
if (conf_read(defconfig_file)) {
|
||||
@@ -521,25 +528,32 @@ int main(int ac, char **av)
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
case ask_silent:
|
||||
case ask_all:
|
||||
case ask_new:
|
||||
case savedefconfig:
|
||||
conf_read(NULL);
|
||||
break;
|
||||
case set_no:
|
||||
case set_mod:
|
||||
case set_yes:
|
||||
case set_random:
|
||||
case silentoldconfig:
|
||||
case oldaskconfig:
|
||||
case oldconfig:
|
||||
case listnewconfig:
|
||||
case oldnoconfig:
|
||||
conf_read(NULL);
|
||||
break;
|
||||
case allnoconfig:
|
||||
case allyesconfig:
|
||||
case allmodconfig:
|
||||
case alldefconfig:
|
||||
case randconfig:
|
||||
name = getenv("KCONFIG_ALLCONFIG");
|
||||
if (name && !stat(name, &tmpstat)) {
|
||||
conf_read_simple(name, S_DEF_USER);
|
||||
break;
|
||||
}
|
||||
switch (input_mode) {
|
||||
case set_no: name = "allno.config"; break;
|
||||
case set_mod: name = "allmod.config"; break;
|
||||
case set_yes: name = "allyes.config"; break;
|
||||
case set_random: name = "allrandom.config"; break;
|
||||
case allnoconfig: name = "allno.config"; break;
|
||||
case allyesconfig: name = "allyes.config"; break;
|
||||
case allmodconfig: name = "allmod.config"; break;
|
||||
case alldefconfig: name = "alldef.config"; break;
|
||||
case randconfig: name = "allrandom.config"; break;
|
||||
default: break;
|
||||
}
|
||||
if (!stat(name, &tmpstat))
|
||||
@@ -564,33 +578,42 @@ int main(int ac, char **av)
|
||||
}
|
||||
|
||||
switch (input_mode) {
|
||||
case set_no:
|
||||
case allnoconfig:
|
||||
conf_set_all_new_symbols(def_no);
|
||||
break;
|
||||
case set_yes:
|
||||
case allyesconfig:
|
||||
conf_set_all_new_symbols(def_yes);
|
||||
break;
|
||||
case set_mod:
|
||||
case allmodconfig:
|
||||
conf_set_all_new_symbols(def_mod);
|
||||
break;
|
||||
case set_random:
|
||||
conf_set_all_new_symbols(def_random);
|
||||
break;
|
||||
case set_default:
|
||||
case alldefconfig:
|
||||
conf_set_all_new_symbols(def_default);
|
||||
break;
|
||||
case ask_new:
|
||||
case ask_all:
|
||||
case randconfig:
|
||||
conf_set_all_new_symbols(def_random);
|
||||
break;
|
||||
case defconfig:
|
||||
conf_set_all_new_symbols(def_default);
|
||||
break;
|
||||
case savedefconfig:
|
||||
break;
|
||||
case oldaskconfig:
|
||||
rootEntry = &rootmenu;
|
||||
conf(&rootmenu);
|
||||
input_mode = ask_silent;
|
||||
input_mode = silentoldconfig;
|
||||
/* fall through */
|
||||
case ask_silent:
|
||||
case oldconfig:
|
||||
case listnewconfig:
|
||||
case oldnoconfig:
|
||||
case silentoldconfig:
|
||||
/* Update until a loop caused no more changes */
|
||||
do {
|
||||
conf_cnt = 0;
|
||||
check_conf(&rootmenu);
|
||||
} while (conf_cnt);
|
||||
} while (conf_cnt &&
|
||||
(input_mode != listnewconfig &&
|
||||
input_mode != oldnoconfig));
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -606,15 +629,28 @@ int main(int ac, char **av)
|
||||
fprintf(stderr, _("\n*** Error during update of the Buildroot configuration.\n\n"));
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
} else if (input_mode == savedefconfig) {
|
||||
if (conf_write_defconfig(defconfig_file)) {
|
||||
fprintf(stderr, _("n*** Error while saving defconfig to: %s\n\n"),
|
||||
defconfig_file);
|
||||
return 1;
|
||||
}
|
||||
} else if (input_mode != listnewconfig) {
|
||||
if (conf_write(NULL)) {
|
||||
fprintf(stderr, _("\n*** Error during writing of the Buildroot configuration.\n\n"));
|
||||
exit(1);
|
||||
}
|
||||
if (conf_write_autoconf()) {
|
||||
fprintf(stderr, _("\n*** Error during update of the Buildroot configuration.\n\n"));
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
/*
|
||||
* Helper function to facilitate fgets() by Jean Sacren.
|
||||
*/
|
||||
void xfgets(str, size, in)
|
||||
char *str;
|
||||
int size;
|
||||
FILE *in;
|
||||
{
|
||||
if (fgets(str, size, in) == NULL)
|
||||
fprintf(stderr, "\nError in reading or end of file.\n");
|
||||
}
|
||||
|
||||
@@ -169,8 +169,11 @@ int conf_read_simple(const char *name, int def)
|
||||
if (in)
|
||||
goto load;
|
||||
sym_add_change_count(1);
|
||||
if (!sym_defconfig_list)
|
||||
if (!sym_defconfig_list) {
|
||||
if (modules_sym)
|
||||
sym_calc_value(modules_sym);
|
||||
return 1;
|
||||
}
|
||||
|
||||
for_all_defaults(sym_defconfig_list, prop) {
|
||||
if (expr_calc_value(prop->visible.expr) == no ||
|
||||
@@ -391,15 +394,148 @@ int conf_read(const char *name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Write a S_STRING */
|
||||
static void conf_write_string(bool headerfile, const char *name,
|
||||
const char *str, FILE *out)
|
||||
{
|
||||
int l;
|
||||
if (headerfile)
|
||||
fprintf(out, "#define %s \"", name);
|
||||
else
|
||||
fprintf(out, "%s=\"", name);
|
||||
|
||||
while (1) {
|
||||
l = strcspn(str, "\"\\");
|
||||
if (l) {
|
||||
xfwrite(str, l, 1, out);
|
||||
str += l;
|
||||
}
|
||||
if (!*str)
|
||||
break;
|
||||
fprintf(out, "\\%c", *str++);
|
||||
}
|
||||
fputs("\"\n", out);
|
||||
}
|
||||
|
||||
static void conf_write_symbol(struct symbol *sym, enum symbol_type type,
|
||||
FILE *out, bool write_no)
|
||||
{
|
||||
const char *str;
|
||||
|
||||
switch (type) {
|
||||
case S_BOOLEAN:
|
||||
case S_TRISTATE:
|
||||
switch (sym_get_tristate_value(sym)) {
|
||||
case no:
|
||||
if (write_no)
|
||||
fprintf(out, "# %s is not set\n", sym->name);
|
||||
break;
|
||||
case mod:
|
||||
fprintf(out, "%s=m\n", sym->name);
|
||||
break;
|
||||
case yes:
|
||||
fprintf(out, "%s=y\n", sym->name);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case S_STRING:
|
||||
conf_write_string(false, sym->name, sym_get_string_value(sym), out);
|
||||
break;
|
||||
case S_HEX:
|
||||
case S_INT:
|
||||
str = sym_get_string_value(sym);
|
||||
fprintf(out, "%s=%s\n", sym->name, str);
|
||||
break;
|
||||
case S_OTHER:
|
||||
case S_UNKNOWN:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Write out a minimal config.
|
||||
* All values that has default values are skipped as this is redundant.
|
||||
*/
|
||||
int conf_write_defconfig(const char *filename)
|
||||
{
|
||||
struct symbol *sym;
|
||||
struct menu *menu;
|
||||
FILE *out;
|
||||
|
||||
out = fopen(filename, "w");
|
||||
if (!out)
|
||||
return 1;
|
||||
|
||||
sym_clear_all_valid();
|
||||
|
||||
/* Traverse all menus to find all relevant symbols */
|
||||
menu = rootmenu.list;
|
||||
|
||||
while (menu != NULL)
|
||||
{
|
||||
sym = menu->sym;
|
||||
if (sym == NULL) {
|
||||
if (!menu_is_visible(menu))
|
||||
goto next_menu;
|
||||
} else if (!sym_is_choice(sym)) {
|
||||
sym_calc_value(sym);
|
||||
if (!(sym->flags & SYMBOL_WRITE))
|
||||
goto next_menu;
|
||||
sym->flags &= ~SYMBOL_WRITE;
|
||||
/* If we cannot change the symbol - skip */
|
||||
if (!sym_is_changable(sym))
|
||||
goto next_menu;
|
||||
/* If symbol equals to default value - skip */
|
||||
if (strcmp(sym_get_string_value(sym), sym_get_string_default(sym)) == 0)
|
||||
goto next_menu;
|
||||
|
||||
/*
|
||||
* If symbol is a choice value and equals to the
|
||||
* default for a choice - skip.
|
||||
* But only if value is bool and equal to "y" .
|
||||
*/
|
||||
if (sym_is_choice_value(sym)) {
|
||||
struct symbol *cs;
|
||||
struct symbol *ds;
|
||||
|
||||
cs = prop_get_symbol(sym_get_choice_prop(sym));
|
||||
ds = sym_choice_default(cs);
|
||||
if (sym == ds) {
|
||||
if ((sym->type == S_BOOLEAN) &&
|
||||
sym_get_tristate_value(sym) == yes)
|
||||
goto next_menu;
|
||||
}
|
||||
}
|
||||
conf_write_symbol(sym, sym->type, out, true);
|
||||
}
|
||||
next_menu:
|
||||
if (menu->list != NULL) {
|
||||
menu = menu->list;
|
||||
}
|
||||
else if (menu->next != NULL) {
|
||||
menu = menu->next;
|
||||
} else {
|
||||
while ((menu = menu->parent)) {
|
||||
if (menu->next != NULL) {
|
||||
menu = menu->next;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
fclose(out);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int conf_write(const char *name)
|
||||
{
|
||||
FILE *out;
|
||||
struct symbol *sym;
|
||||
struct menu *menu;
|
||||
const char *basename;
|
||||
char dirname[128], tmpname[128], newname[128];
|
||||
int type, l;
|
||||
const char *str;
|
||||
char dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1];
|
||||
enum symbol_type type;
|
||||
time_t now;
|
||||
int use_timestamp = 1;
|
||||
char *env;
|
||||
@@ -450,8 +586,10 @@ int conf_write(const char *name)
|
||||
|
||||
fprintf(out, _("#\n"
|
||||
"# Automatically generated make config: don't edit\n"
|
||||
"# Buildroot version: %s\n"
|
||||
"%s%s"
|
||||
"#\n"),
|
||||
sym_get_string_value(sym),
|
||||
use_timestamp ? "# " : "",
|
||||
use_timestamp ? ctime(&now) : "");
|
||||
|
||||
@@ -480,50 +618,11 @@ int conf_write(const char *name)
|
||||
if (modules_sym->curr.tri == no)
|
||||
type = S_BOOLEAN;
|
||||
}
|
||||
switch (type) {
|
||||
case S_BOOLEAN:
|
||||
case S_TRISTATE:
|
||||
switch (sym_get_tristate_value(sym)) {
|
||||
case no:
|
||||
fprintf(out, "# %s is not set\n", sym->name);
|
||||
break;
|
||||
case mod:
|
||||
fprintf(out, "%s=m\n", sym->name);
|
||||
break;
|
||||
case yes:
|
||||
fprintf(out, "%s=y\n", sym->name);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case S_STRING:
|
||||
str = sym_get_string_value(sym);
|
||||
fprintf(out, "%s=\"", sym->name);
|
||||
while (1) {
|
||||
l = strcspn(str, "\"\\");
|
||||
if (l) {
|
||||
fwrite(str, l, 1, out);
|
||||
str += l;
|
||||
}
|
||||
if (!*str)
|
||||
break;
|
||||
fprintf(out, "\\%c", *str++);
|
||||
}
|
||||
fputs("\"\n", out);
|
||||
break;
|
||||
case S_HEX:
|
||||
str = sym_get_string_value(sym);
|
||||
if (str[0] != '0' || (str[1] != 'x' && str[1] != 'X')) {
|
||||
fprintf(out, "%s=%s\n", sym->name, str);
|
||||
break;
|
||||
}
|
||||
case S_INT:
|
||||
str = sym_get_string_value(sym);
|
||||
fprintf(out, "%s=%s\n", sym->name, str);
|
||||
break;
|
||||
}
|
||||
/* Write config symbol to file */
|
||||
conf_write_symbol(sym, type, out, true);
|
||||
}
|
||||
|
||||
next:
|
||||
next:
|
||||
if (menu->list) {
|
||||
menu = menu->list;
|
||||
continue;
|
||||
@@ -556,10 +655,10 @@ int conf_write(const char *name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int conf_split_config(void)
|
||||
static int conf_split_config(void)
|
||||
{
|
||||
const char *name;
|
||||
char path[128];
|
||||
char path[PATH_MAX+1];
|
||||
char *opwd, *dir, *_name;
|
||||
char *s, *d, c;
|
||||
struct symbol *sym;
|
||||
@@ -572,7 +671,7 @@ int conf_split_config(void)
|
||||
opwd = malloc(256);
|
||||
_name = strdup(name);
|
||||
if (opwd == NULL || _name == NULL)
|
||||
return 1;
|
||||
return 1;
|
||||
opwd = getcwd(opwd, 256);
|
||||
dir = dirname(_name);
|
||||
if (dir == NULL) {
|
||||
@@ -688,9 +787,9 @@ int conf_write_autoconf(void)
|
||||
struct symbol *sym;
|
||||
const char *str;
|
||||
const char *name;
|
||||
FILE *out, *out_h;
|
||||
FILE *out, *tristate, *out_h;
|
||||
time_t now;
|
||||
int i, l;
|
||||
int i;
|
||||
char dir[PATH_MAX+1], buf[PATH_MAX+1];
|
||||
char *s;
|
||||
|
||||
@@ -714,10 +813,18 @@ int conf_write_autoconf(void)
|
||||
if (!out)
|
||||
return 1;
|
||||
|
||||
sprintf(buf, "%s.tmpconfig_tristate", dir);
|
||||
tristate = fopen(buf, "w");
|
||||
if (!tristate) {
|
||||
fclose(out);
|
||||
return 1;
|
||||
}
|
||||
|
||||
sprintf(buf, "%s.tmpconfig.h", dir);
|
||||
out_h = fopen(buf, "w");
|
||||
if (!out_h) {
|
||||
fclose(out);
|
||||
fclose(tristate);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -726,9 +833,14 @@ int conf_write_autoconf(void)
|
||||
time(&now);
|
||||
fprintf(out, "#\n"
|
||||
"# Automatically generated make config: don't edit\n"
|
||||
"# Buildroot version: %s\n"
|
||||
"# %s"
|
||||
"#\n",
|
||||
sym_get_string_value(sym),
|
||||
ctime(&now));
|
||||
fprintf(tristate, "#\n"
|
||||
"# Automatically generated - do not edit\n"
|
||||
"\n");
|
||||
fprintf(out_h, "/*\n"
|
||||
" * Automatically generated C config: don't edit\n"
|
||||
" * %s"
|
||||
@@ -739,6 +851,11 @@ int conf_write_autoconf(void)
|
||||
sym_calc_value(sym);
|
||||
if (!(sym->flags & SYMBOL_WRITE) || !sym->name)
|
||||
continue;
|
||||
|
||||
/* write symbol to config file */
|
||||
conf_write_symbol(sym, sym->type, out, false);
|
||||
|
||||
/* update autoconf and tristate files */
|
||||
switch (sym->type) {
|
||||
case S_BOOLEAN:
|
||||
case S_TRISTATE:
|
||||
@@ -746,45 +863,28 @@ int conf_write_autoconf(void)
|
||||
case no:
|
||||
break;
|
||||
case mod:
|
||||
fprintf(out, "%s=m\n", sym->name);
|
||||
fprintf(tristate, "%s=M\n", sym->name);
|
||||
fprintf(out_h, "#define %s_MODULE 1\n", sym->name);
|
||||
break;
|
||||
case yes:
|
||||
fprintf(out, "%s=y\n", sym->name);
|
||||
if (sym->type == S_TRISTATE)
|
||||
fprintf(tristate, "%s=Y\n",
|
||||
sym->name);
|
||||
fprintf(out_h, "#define %s 1\n", sym->name);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case S_STRING:
|
||||
str = sym_get_string_value(sym);
|
||||
fprintf(out, "%s=\"", sym->name);
|
||||
fprintf(out_h, "#define %s \"", sym->name);
|
||||
while (1) {
|
||||
l = strcspn(str, "\"\\");
|
||||
if (l) {
|
||||
fwrite(str, l, 1, out);
|
||||
fwrite(str, l, 1, out_h);
|
||||
str += l;
|
||||
}
|
||||
if (!*str)
|
||||
break;
|
||||
fprintf(out, "\\%c", *str);
|
||||
fprintf(out_h, "\\%c", *str);
|
||||
str++;
|
||||
}
|
||||
fputs("\"\n", out);
|
||||
fputs("\"\n", out_h);
|
||||
conf_write_string(true, sym->name, sym_get_string_value(sym), out_h);
|
||||
break;
|
||||
case S_HEX:
|
||||
str = sym_get_string_value(sym);
|
||||
if (str[0] != '0' || (str[1] != 'x' && str[1] != 'X')) {
|
||||
fprintf(out, "%s=%s\n", sym->name, str);
|
||||
fprintf(out_h, "#define %s 0x%s\n", sym->name, str);
|
||||
break;
|
||||
}
|
||||
case S_INT:
|
||||
str = sym_get_string_value(sym);
|
||||
fprintf(out, "%s=%s\n", sym->name, str);
|
||||
fprintf(out_h, "#define %s %s\n", sym->name, str);
|
||||
break;
|
||||
default:
|
||||
@@ -792,12 +892,19 @@ int conf_write_autoconf(void)
|
||||
}
|
||||
}
|
||||
fclose(out);
|
||||
fclose(tristate);
|
||||
fclose(out_h);
|
||||
|
||||
name = getenv("KCONFIG_AUTOHEADER");
|
||||
if (!name)
|
||||
name = "include/linux/autoconf.h";
|
||||
name = "include/generated/autoconf.h";
|
||||
sprintf(buf, "%s.tmpconfig.h", dir);
|
||||
if (rename(buf, name))
|
||||
return 1;
|
||||
name = getenv("KCONFIG_TRISTATE");
|
||||
if (!name)
|
||||
name = "include/config/tristate.conf";
|
||||
sprintf(buf, "%s.tmpconfig_tristate", dir);
|
||||
if (rename(buf, name))
|
||||
return 1;
|
||||
name = conf_get_autoconfig_name();
|
||||
@@ -839,13 +946,73 @@ void conf_set_changed_callback(void (*fn)(void))
|
||||
conf_changed_callback = fn;
|
||||
}
|
||||
|
||||
static void randomize_choice_values(struct symbol *csym)
|
||||
{
|
||||
struct property *prop;
|
||||
struct symbol *sym;
|
||||
struct expr *e;
|
||||
int cnt, def;
|
||||
|
||||
/*
|
||||
* If choice is mod then we may have more items slected
|
||||
* and if no then no-one.
|
||||
* In both cases stop.
|
||||
*/
|
||||
if (csym->curr.tri != yes)
|
||||
return;
|
||||
|
||||
prop = sym_get_choice_prop(csym);
|
||||
|
||||
/* count entries in choice block */
|
||||
cnt = 0;
|
||||
expr_list_for_each_sym(prop->expr, e, sym)
|
||||
cnt++;
|
||||
|
||||
/*
|
||||
* find a random value and set it to yes,
|
||||
* set the rest to no so we have only one set
|
||||
*/
|
||||
def = (rand() % cnt);
|
||||
|
||||
cnt = 0;
|
||||
expr_list_for_each_sym(prop->expr, e, sym) {
|
||||
if (def == cnt++) {
|
||||
sym->def[S_DEF_USER].tri = yes;
|
||||
csym->def[S_DEF_USER].val = sym;
|
||||
}
|
||||
else {
|
||||
sym->def[S_DEF_USER].tri = no;
|
||||
}
|
||||
}
|
||||
csym->flags |= SYMBOL_DEF_USER;
|
||||
/* clear VALID to get value calculated */
|
||||
csym->flags &= ~(SYMBOL_VALID);
|
||||
}
|
||||
|
||||
static void set_all_choice_values(struct symbol *csym)
|
||||
{
|
||||
struct property *prop;
|
||||
struct symbol *sym;
|
||||
struct expr *e;
|
||||
|
||||
prop = sym_get_choice_prop(csym);
|
||||
|
||||
/*
|
||||
* Set all non-assinged choice values to no
|
||||
*/
|
||||
expr_list_for_each_sym(prop->expr, e, sym) {
|
||||
if (!sym_has_value(sym))
|
||||
sym->def[S_DEF_USER].tri = no;
|
||||
}
|
||||
csym->flags |= SYMBOL_DEF_USER;
|
||||
/* clear VALID to get value calculated */
|
||||
csym->flags &= ~(SYMBOL_VALID);
|
||||
}
|
||||
|
||||
void conf_set_all_new_symbols(enum conf_def_mode mode)
|
||||
{
|
||||
struct symbol *sym, *csym;
|
||||
struct property *prop;
|
||||
struct expr *e;
|
||||
int i, cnt, def, prob = 50;
|
||||
int i, cnt, prob = 50;
|
||||
|
||||
if (mode == def_random) {
|
||||
char *endp, *env = getenv("KCONFIG_PROBABILITY");
|
||||
@@ -897,8 +1064,6 @@ void conf_set_all_new_symbols(enum conf_def_mode mode)
|
||||
|
||||
sym_clear_all_valid();
|
||||
|
||||
if (mode != def_random)
|
||||
return;
|
||||
/*
|
||||
* We have different type of choice blocks.
|
||||
* If curr.tri equal to mod then we can select several
|
||||
@@ -913,35 +1078,9 @@ void conf_set_all_new_symbols(enum conf_def_mode mode)
|
||||
continue;
|
||||
|
||||
sym_calc_value(csym);
|
||||
|
||||
if (csym->curr.tri != yes)
|
||||
continue;
|
||||
|
||||
prop = sym_get_choice_prop(csym);
|
||||
|
||||
/* count entries in choice block */
|
||||
cnt = 0;
|
||||
expr_list_for_each_sym(prop->expr, e, sym)
|
||||
cnt++;
|
||||
|
||||
/*
|
||||
* find a random value and set it to yes,
|
||||
* set the rest to no so we have only one set
|
||||
*/
|
||||
def = (rand() % cnt);
|
||||
|
||||
cnt = 0;
|
||||
expr_list_for_each_sym(prop->expr, e, sym) {
|
||||
if (def == cnt++) {
|
||||
sym->def[S_DEF_USER].tri = yes;
|
||||
csym->def[S_DEF_USER].val = sym;
|
||||
}
|
||||
else {
|
||||
sym->def[S_DEF_USER].tri = no;
|
||||
}
|
||||
}
|
||||
csym->flags |= SYMBOL_DEF_USER;
|
||||
/* clear VALID to get value calculated */
|
||||
csym->flags &= ~(SYMBOL_VALID);
|
||||
if (mode == def_random)
|
||||
randomize_choice_values(csym);
|
||||
else
|
||||
set_all_choice_values(csym);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -348,7 +348,7 @@ struct expr *expr_trans_bool(struct expr *e)
|
||||
/*
|
||||
* e1 || e2 -> ?
|
||||
*/
|
||||
struct expr *expr_join_or(struct expr *e1, struct expr *e2)
|
||||
static struct expr *expr_join_or(struct expr *e1, struct expr *e2)
|
||||
{
|
||||
struct expr *tmp;
|
||||
struct symbol *sym1, *sym2;
|
||||
@@ -412,7 +412,7 @@ struct expr *expr_join_or(struct expr *e1, struct expr *e2)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct expr *expr_join_and(struct expr *e1, struct expr *e2)
|
||||
static struct expr *expr_join_and(struct expr *e1, struct expr *e2)
|
||||
{
|
||||
struct expr *tmp;
|
||||
struct symbol *sym1, *sym2;
|
||||
@@ -1087,7 +1087,7 @@ void expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *
|
||||
|
||||
static void expr_print_file_helper(void *data, struct symbol *sym, const char *str)
|
||||
{
|
||||
fwrite(str, strlen(str), 1, data);
|
||||
xfwrite(str, strlen(str), 1, data);
|
||||
}
|
||||
|
||||
void expr_fprint(struct expr *e, FILE *out)
|
||||
@@ -1097,7 +1097,32 @@ void expr_fprint(struct expr *e, FILE *out)
|
||||
|
||||
static void expr_print_gstr_helper(void *data, struct symbol *sym, const char *str)
|
||||
{
|
||||
str_append((struct gstr*)data, str);
|
||||
struct gstr *gs = (struct gstr*)data;
|
||||
const char *sym_str = NULL;
|
||||
|
||||
if (sym)
|
||||
sym_str = sym_get_string_value(sym);
|
||||
|
||||
if (gs->max_width) {
|
||||
unsigned extra_length = strlen(str);
|
||||
const char *last_cr = strrchr(gs->s, '\n');
|
||||
unsigned last_line_length;
|
||||
|
||||
if (sym_str)
|
||||
extra_length += 4 + strlen(sym_str);
|
||||
|
||||
if (!last_cr)
|
||||
last_cr = gs->s;
|
||||
|
||||
last_line_length = strlen(gs->s) - (last_cr - gs->s);
|
||||
|
||||
if ((last_line_length + extra_length) > gs->max_width)
|
||||
str_append(gs, "\\\n");
|
||||
}
|
||||
|
||||
str_append(gs, str);
|
||||
if (sym && sym->type != S_UNKNOWN)
|
||||
str_printf(gs, " [=%s]", sym_str);
|
||||
}
|
||||
|
||||
void expr_gstr_print(struct expr *e, struct gstr *gs)
|
||||
|
||||
@@ -83,10 +83,11 @@ struct symbol {
|
||||
tristate visible;
|
||||
int flags;
|
||||
struct property *prop;
|
||||
struct expr_value dir_dep;
|
||||
struct expr_value rev_dep;
|
||||
};
|
||||
|
||||
#define for_all_symbols(i, sym) for (i = 0; i < 257; i++) for (sym = symbol_hash[i]; sym; sym = sym->next) if (sym->type != S_OTHER)
|
||||
#define for_all_symbols(i, sym) for (i = 0; i < SYMBOL_HASHSIZE; i++) for (sym = symbol_hash[i]; sym; sym = sym->next) if (sym->type != S_OTHER)
|
||||
|
||||
#define SYMBOL_CONST 0x0001 /* symbol is const */
|
||||
#define SYMBOL_CHECK 0x0008 /* used during dependency checking */
|
||||
@@ -108,8 +109,7 @@ struct symbol {
|
||||
#define SYMBOL_DEF4 0x80000 /* symbol.def[S_DEF_4] is valid */
|
||||
|
||||
#define SYMBOL_MAXLENGTH 256
|
||||
#define SYMBOL_HASHSIZE 257
|
||||
#define SYMBOL_HASHMASK 0xff
|
||||
#define SYMBOL_HASHSIZE 9973
|
||||
|
||||
/* A property represent the config options that can be associated
|
||||
* with a config "symbol".
|
||||
@@ -132,6 +132,7 @@ enum prop_type {
|
||||
P_SELECT, /* select BAR */
|
||||
P_RANGE, /* range 7..100 (for a symbol) */
|
||||
P_ENV, /* value from environment variable */
|
||||
P_SYMBOL, /* where a symbol is defined */
|
||||
};
|
||||
|
||||
struct property {
|
||||
@@ -164,6 +165,7 @@ struct menu {
|
||||
struct symbol *sym;
|
||||
struct property *prompt;
|
||||
struct expr *dep;
|
||||
struct expr *dir_dep;
|
||||
unsigned int flags;
|
||||
char *help;
|
||||
struct file *file;
|
||||
|
||||
@@ -30,13 +30,16 @@ enum {
|
||||
SINGLE_VIEW, SPLIT_VIEW, FULL_VIEW
|
||||
};
|
||||
|
||||
enum {
|
||||
OPT_NORMAL, OPT_ALL, OPT_PROMPT
|
||||
};
|
||||
|
||||
static gint view_mode = FULL_VIEW;
|
||||
static gboolean show_name = TRUE;
|
||||
static gboolean show_range = TRUE;
|
||||
static gboolean show_value = TRUE;
|
||||
static gboolean show_all = FALSE;
|
||||
static gboolean show_debug = FALSE;
|
||||
static gboolean resizeable = FALSE;
|
||||
static int opt_mode = OPT_NORMAL;
|
||||
|
||||
GtkWidget *main_wnd = NULL;
|
||||
GtkWidget *tree1_w = NULL; // left frame
|
||||
@@ -76,36 +79,7 @@ static void conf_changed(void);
|
||||
|
||||
/* Helping/Debugging Functions */
|
||||
|
||||
|
||||
const char *dbg_print_stype(int val)
|
||||
{
|
||||
static char buf[256];
|
||||
|
||||
bzero(buf, 256);
|
||||
|
||||
if (val == S_UNKNOWN)
|
||||
strcpy(buf, "unknown");
|
||||
if (val == S_BOOLEAN)
|
||||
strcpy(buf, "boolean");
|
||||
if (val == S_TRISTATE)
|
||||
strcpy(buf, "tristate");
|
||||
if (val == S_INT)
|
||||
strcpy(buf, "int");
|
||||
if (val == S_HEX)
|
||||
strcpy(buf, "hex");
|
||||
if (val == S_STRING)
|
||||
strcpy(buf, "string");
|
||||
if (val == S_OTHER)
|
||||
strcpy(buf, "other");
|
||||
|
||||
#ifdef DEBUG
|
||||
printf("%s", buf);
|
||||
#endif
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
const char *dbg_print_flags(int val)
|
||||
const char *dbg_sym_flags(int val)
|
||||
{
|
||||
static char buf[256];
|
||||
|
||||
@@ -131,40 +105,10 @@ const char *dbg_print_flags(int val)
|
||||
strcat(buf, "auto/");
|
||||
|
||||
buf[strlen(buf) - 1] = '\0';
|
||||
#ifdef DEBUG
|
||||
printf("%s", buf);
|
||||
#endif
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
const char *dbg_print_ptype(int val)
|
||||
{
|
||||
static char buf[256];
|
||||
|
||||
bzero(buf, 256);
|
||||
|
||||
if (val == P_UNKNOWN)
|
||||
strcpy(buf, "unknown");
|
||||
if (val == P_PROMPT)
|
||||
strcpy(buf, "prompt");
|
||||
if (val == P_COMMENT)
|
||||
strcpy(buf, "comment");
|
||||
if (val == P_MENU)
|
||||
strcpy(buf, "menu");
|
||||
if (val == P_DEFAULT)
|
||||
strcpy(buf, "default");
|
||||
if (val == P_CHOICE)
|
||||
strcpy(buf, "choice");
|
||||
|
||||
#ifdef DEBUG
|
||||
printf("%s", buf);
|
||||
#endif
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
void replace_button_icon(GladeXML * xml, GdkDrawable * window,
|
||||
GtkStyle * style, gchar * btn_name, gchar ** xpm)
|
||||
{
|
||||
@@ -456,19 +400,9 @@ static void text_insert_help(struct menu *menu)
|
||||
GtkTextBuffer *buffer;
|
||||
GtkTextIter start, end;
|
||||
const char *prompt = _(menu_get_prompt(menu));
|
||||
gchar *name;
|
||||
const char *help;
|
||||
struct gstr help = str_new();
|
||||
|
||||
help = menu_get_help(menu);
|
||||
|
||||
/* Gettextize if the help text not empty */
|
||||
if ((help != 0) && (help[0] != 0))
|
||||
help = _(help);
|
||||
|
||||
if (menu->sym && menu->sym->name)
|
||||
name = g_strdup_printf(menu->sym->name);
|
||||
else
|
||||
name = g_strdup("");
|
||||
menu_get_ext_help(menu, &help);
|
||||
|
||||
buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_w));
|
||||
gtk_text_buffer_get_bounds(buffer, &start, &end);
|
||||
@@ -478,14 +412,11 @@ static void text_insert_help(struct menu *menu)
|
||||
gtk_text_buffer_get_end_iter(buffer, &end);
|
||||
gtk_text_buffer_insert_with_tags(buffer, &end, prompt, -1, tag1,
|
||||
NULL);
|
||||
gtk_text_buffer_insert_at_cursor(buffer, " ", 1);
|
||||
gtk_text_buffer_get_end_iter(buffer, &end);
|
||||
gtk_text_buffer_insert_with_tags(buffer, &end, name, -1, tag1,
|
||||
NULL);
|
||||
gtk_text_buffer_insert_at_cursor(buffer, "\n\n", 2);
|
||||
gtk_text_buffer_get_end_iter(buffer, &end);
|
||||
gtk_text_buffer_insert_with_tags(buffer, &end, help, -1, tag2,
|
||||
gtk_text_buffer_insert_with_tags(buffer, &end, str_get(&help), -1, tag2,
|
||||
NULL);
|
||||
str_free(&help);
|
||||
}
|
||||
|
||||
|
||||
@@ -710,20 +641,29 @@ void on_show_data1_activate(GtkMenuItem * menuitem, gpointer user_data)
|
||||
|
||||
|
||||
void
|
||||
on_show_all_options1_activate(GtkMenuItem * menuitem, gpointer user_data)
|
||||
on_set_option_mode1_activate(GtkMenuItem *menuitem, gpointer user_data)
|
||||
{
|
||||
show_all = GTK_CHECK_MENU_ITEM(menuitem)->active;
|
||||
|
||||
opt_mode = OPT_NORMAL;
|
||||
gtk_tree_store_clear(tree2);
|
||||
display_tree(&rootmenu); // instead of update_tree to speed-up
|
||||
display_tree(&rootmenu); /* instead of update_tree to speed-up */
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_show_debug_info1_activate(GtkMenuItem * menuitem, gpointer user_data)
|
||||
on_set_option_mode2_activate(GtkMenuItem *menuitem, gpointer user_data)
|
||||
{
|
||||
show_debug = GTK_CHECK_MENU_ITEM(menuitem)->active;
|
||||
update_tree(&rootmenu, NULL);
|
||||
opt_mode = OPT_ALL;
|
||||
gtk_tree_store_clear(tree2);
|
||||
display_tree(&rootmenu); /* instead of update_tree to speed-up */
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_set_option_mode3_activate(GtkMenuItem *menuitem, gpointer user_data)
|
||||
{
|
||||
opt_mode = OPT_PROMPT;
|
||||
gtk_tree_store_clear(tree2);
|
||||
display_tree(&rootmenu); /* instead of update_tree to speed-up */
|
||||
}
|
||||
|
||||
|
||||
@@ -1174,9 +1114,12 @@ static gchar **fill_row(struct menu *menu)
|
||||
|
||||
row[COL_OPTION] =
|
||||
g_strdup_printf("%s %s", _(menu_get_prompt(menu)),
|
||||
sym && sym_has_value(sym) ? "(NEW)" : "");
|
||||
sym && !sym_has_value(sym) ? "(NEW)" : "");
|
||||
|
||||
if (show_all && !menu_is_visible(menu))
|
||||
if (opt_mode == OPT_ALL && !menu_is_visible(menu))
|
||||
row[COL_COLOR] = g_strdup("DarkGray");
|
||||
else if (opt_mode == OPT_PROMPT &&
|
||||
menu_has_prompt(menu) && !menu_is_visible(menu))
|
||||
row[COL_COLOR] = g_strdup("DarkGray");
|
||||
else
|
||||
row[COL_COLOR] = g_strdup("Black");
|
||||
@@ -1399,16 +1342,20 @@ static void update_tree(struct menu *src, GtkTreeIter * dst)
|
||||
menu2 ? menu_get_prompt(menu2) : "nil");
|
||||
#endif
|
||||
|
||||
if (!menu_is_visible(child1) && !show_all) { // remove node
|
||||
if ((opt_mode == OPT_NORMAL && !menu_is_visible(child1)) ||
|
||||
(opt_mode == OPT_PROMPT && !menu_has_prompt(child1)) ||
|
||||
(opt_mode == OPT_ALL && !menu_get_prompt(child1))) {
|
||||
|
||||
/* remove node */
|
||||
if (gtktree_iter_find_node(dst, menu1) != NULL) {
|
||||
memcpy(&tmp, child2, sizeof(GtkTreeIter));
|
||||
valid = gtk_tree_model_iter_next(model2,
|
||||
child2);
|
||||
gtk_tree_store_remove(tree2, &tmp);
|
||||
if (!valid)
|
||||
return; // next parent
|
||||
return; /* next parent */
|
||||
else
|
||||
goto reparse; // next child
|
||||
goto reparse; /* next child */
|
||||
} else
|
||||
continue;
|
||||
}
|
||||
@@ -1477,17 +1424,19 @@ static void display_tree(struct menu *menu)
|
||||
&& (tree == tree2))
|
||||
continue;
|
||||
|
||||
if (menu_is_visible(child) || show_all)
|
||||
if ((opt_mode == OPT_NORMAL && menu_is_visible(child)) ||
|
||||
(opt_mode == OPT_PROMPT && menu_has_prompt(child)) ||
|
||||
(opt_mode == OPT_ALL && menu_get_prompt(child)))
|
||||
place_node(child, fill_row(child));
|
||||
#ifdef DEBUG
|
||||
printf("%*c%s: ", indent, ' ', menu_get_prompt(child));
|
||||
printf("%s", child->flags & MENU_ROOT ? "rootmenu | " : "");
|
||||
dbg_print_ptype(ptype);
|
||||
printf("%s", prop_get_type_name(ptype));
|
||||
printf(" | ");
|
||||
if (sym) {
|
||||
dbg_print_stype(sym->type);
|
||||
printf("%s", sym_type_name(sym->type));
|
||||
printf(" | ");
|
||||
dbg_print_flags(sym->flags);
|
||||
printf("%s", dbg_sym_flags(sym->flags));
|
||||
printf("\n");
|
||||
} else
|
||||
printf("\n");
|
||||
|
||||
@@ -190,26 +190,40 @@
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkCheckMenuItem" id="show_all_options1">
|
||||
<widget class="GtkRadioMenuItem" id="set_option_mode1">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Show normal options</property>
|
||||
<property name="label" translatable="yes">Show normal options</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<signal name="activate" handler="on_set_option_mode1_activate"/>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkRadioMenuItem" id="set_option_mode2">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Show all options</property>
|
||||
<property name="label" translatable="yes">Show all _options</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">False</property>
|
||||
<signal name="activate" handler="on_show_all_options1_activate"/>
|
||||
<property name="group">set_option_mode1</property>
|
||||
<signal name="activate" handler="on_set_option_mode2_activate"/>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkCheckMenuItem" id="show_debug_info1">
|
||||
<widget class="GtkRadioMenuItem" id="set_option_mode3">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Show masked options</property>
|
||||
<property name="label" translatable="yes">Show _debug info</property>
|
||||
<property name="tooltip" translatable="yes">Show all options with prompts</property>
|
||||
<property name="label" translatable="yes">Show all prompt options</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">False</property>
|
||||
<signal name="activate" handler="on_show_debug_info1_activate"/>
|
||||
<property name="group">set_option_mode1</property>
|
||||
<signal name="activate" handler="on_set_option_mode3_activate"/>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
@@ -547,7 +561,7 @@
|
||||
<property name="headers_visible">True</property>
|
||||
<property name="rules_hint">False</property>
|
||||
<property name="reorderable">False</property>
|
||||
<property name="enable_search">True</property>
|
||||
<property name="enable_search">False</property>
|
||||
<signal name="cursor_changed" handler="on_treeview2_cursor_changed" last_modification_time="Sun, 12 Jan 2003 15:58:22 GMT"/>
|
||||
<signal name="button_press_event" handler="on_treeview1_button_press_event" last_modification_time="Sun, 12 Jan 2003 16:03:52 GMT"/>
|
||||
<signal name="key_press_event" handler="on_treeview2_key_press_event" last_modification_time="Sun, 12 Jan 2003 16:11:44 GMT"/>
|
||||
@@ -582,7 +596,7 @@
|
||||
<property name="headers_visible">True</property>
|
||||
<property name="rules_hint">False</property>
|
||||
<property name="reorderable">False</property>
|
||||
<property name="enable_search">True</property>
|
||||
<property name="enable_search">False</property>
|
||||
<signal name="cursor_changed" handler="on_treeview2_cursor_changed" last_modification_time="Sun, 12 Jan 2003 15:57:55 GMT"/>
|
||||
<signal name="button_press_event" handler="on_treeview2_button_press_event" last_modification_time="Sun, 12 Jan 2003 15:57:58 GMT"/>
|
||||
<signal name="key_press_event" handler="on_treeview2_key_press_event" last_modification_time="Sun, 12 Jan 2003 15:58:01 GMT"/>
|
||||
|
||||
@@ -1,379 +0,0 @@
|
||||
Introduction
|
||||
------------
|
||||
|
||||
The configuration database is a collection of configuration options
|
||||
organized in a tree structure:
|
||||
|
||||
+- Code maturity level options
|
||||
| +- Prompt for development and/or incomplete code/drivers
|
||||
+- General setup
|
||||
| +- Networking support
|
||||
| +- System V IPC
|
||||
| +- BSD Process Accounting
|
||||
| +- Sysctl support
|
||||
+- Loadable module support
|
||||
| +- Enable loadable module support
|
||||
| +- Set version information on all module symbols
|
||||
| +- Kernel module loader
|
||||
+- ...
|
||||
|
||||
Every entry has its own dependencies. These dependencies are used
|
||||
to determine the visibility of an entry. Any child entry is only
|
||||
visible if its parent entry is also visible.
|
||||
|
||||
Menu entries
|
||||
------------
|
||||
|
||||
Most entries define a config option; all other entries help to organize
|
||||
them. A single configuration option is defined like this:
|
||||
|
||||
config MODVERSIONS
|
||||
bool "Set version information on all module symbols"
|
||||
depends on MODULES
|
||||
help
|
||||
Usually, modules have to be recompiled whenever you switch to a new
|
||||
kernel. ...
|
||||
|
||||
Every line starts with a key word and can be followed by multiple
|
||||
arguments. "config" starts a new config entry. The following lines
|
||||
define attributes for this config option. Attributes can be the type of
|
||||
the config option, input prompt, dependencies, help text and default
|
||||
values. A config option can be defined multiple times with the same
|
||||
name, but every definition can have only a single input prompt and the
|
||||
type must not conflict.
|
||||
|
||||
Menu attributes
|
||||
---------------
|
||||
|
||||
A menu entry can have a number of attributes. Not all of them are
|
||||
applicable everywhere (see syntax).
|
||||
|
||||
- type definition: "bool"/"tristate"/"string"/"hex"/"int"
|
||||
Every config option must have a type. There are only two basic types:
|
||||
tristate and string; the other types are based on these two. The type
|
||||
definition optionally accepts an input prompt, so these two examples
|
||||
are equivalent:
|
||||
|
||||
bool "Networking support"
|
||||
and
|
||||
bool
|
||||
prompt "Networking support"
|
||||
|
||||
- input prompt: "prompt" <prompt> ["if" <expr>]
|
||||
Every menu entry can have at most one prompt, which is used to display
|
||||
to the user. Optionally dependencies only for this prompt can be added
|
||||
with "if".
|
||||
|
||||
- default value: "default" <expr> ["if" <expr>]
|
||||
A config option can have any number of default values. If multiple
|
||||
default values are visible, only the first defined one is active.
|
||||
Default values are not limited to the menu entry where they are
|
||||
defined. This means the default can be defined somewhere else or be
|
||||
overridden by an earlier definition.
|
||||
The default value is only assigned to the config symbol if no other
|
||||
value was set by the user (via the input prompt above). If an input
|
||||
prompt is visible the default value is presented to the user and can
|
||||
be overridden by him.
|
||||
Optionally, dependencies only for this default value can be added with
|
||||
"if".
|
||||
|
||||
- type definition + default value:
|
||||
"def_bool"/"def_tristate" <expr> ["if" <expr>]
|
||||
This is a shorthand notation for a type definition plus a value.
|
||||
Optionally dependencies for this default value can be added with "if".
|
||||
|
||||
- dependencies: "depends on" <expr>
|
||||
This defines a dependency for this menu entry. If multiple
|
||||
dependencies are defined, they are connected with '&&'. Dependencies
|
||||
are applied to all other options within this menu entry (which also
|
||||
accept an "if" expression), so these two examples are equivalent:
|
||||
|
||||
bool "foo" if BAR
|
||||
default y if BAR
|
||||
and
|
||||
depends on BAR
|
||||
bool "foo"
|
||||
default y
|
||||
|
||||
- reverse dependencies: "select" <symbol> ["if" <expr>]
|
||||
While normal dependencies reduce the upper limit of a symbol (see
|
||||
below), reverse dependencies can be used to force a lower limit of
|
||||
another symbol. The value of the current menu symbol is used as the
|
||||
minimal value <symbol> can be set to. If <symbol> is selected multiple
|
||||
times, the limit is set to the largest selection.
|
||||
Reverse dependencies can only be used with boolean or tristate
|
||||
symbols.
|
||||
Note:
|
||||
select should be used with care. select will force
|
||||
a symbol to a value without visiting the dependencies.
|
||||
By abusing select you are able to select a symbol FOO even
|
||||
if FOO depends on BAR that is not set.
|
||||
In general use select only for non-visible symbols
|
||||
(no prompts anywhere) and for symbols with no dependencies.
|
||||
That will limit the usefulness but on the other hand avoid
|
||||
the illegal configurations all over.
|
||||
kconfig should one day warn about such things.
|
||||
|
||||
- numerical ranges: "range" <symbol> <symbol> ["if" <expr>]
|
||||
This allows to limit the range of possible input values for int
|
||||
and hex symbols. The user can only input a value which is larger than
|
||||
or equal to the first symbol and smaller than or equal to the second
|
||||
symbol.
|
||||
|
||||
- help text: "help" or "---help---"
|
||||
This defines a help text. The end of the help text is determined by
|
||||
the indentation level, this means it ends at the first line which has
|
||||
a smaller indentation than the first line of the help text.
|
||||
"---help---" and "help" do not differ in behaviour, "---help---" is
|
||||
used to help visually separate configuration logic from help within
|
||||
the file as an aid to developers.
|
||||
|
||||
- misc options: "option" <symbol>[=<value>]
|
||||
Various less common options can be defined via this option syntax,
|
||||
which can modify the behaviour of the menu entry and its config
|
||||
symbol. These options are currently possible:
|
||||
|
||||
- "defconfig_list"
|
||||
This declares a list of default entries which can be used when
|
||||
looking for the default configuration (which is used when the main
|
||||
.config doesn't exists yet.)
|
||||
|
||||
- "modules"
|
||||
This declares the symbol to be used as the MODULES symbol, which
|
||||
enables the third modular state for all config symbols.
|
||||
|
||||
- "env"=<value>
|
||||
This imports the environment variable into Kconfig. It behaves like
|
||||
a default, except that the value comes from the environment, this
|
||||
also means that the behaviour when mixing it with normal defaults is
|
||||
undefined at this point. The symbol is currently not exported back
|
||||
to the build environment (if this is desired, it can be done via
|
||||
another symbol).
|
||||
|
||||
Menu dependencies
|
||||
-----------------
|
||||
|
||||
Dependencies define the visibility of a menu entry and can also reduce
|
||||
the input range of tristate symbols. The tristate logic used in the
|
||||
expressions uses one more state than normal boolean logic to express the
|
||||
module state. Dependency expressions have the following syntax:
|
||||
|
||||
<expr> ::= <symbol> (1)
|
||||
<symbol> '=' <symbol> (2)
|
||||
<symbol> '!=' <symbol> (3)
|
||||
'(' <expr> ')' (4)
|
||||
'!' <expr> (5)
|
||||
<expr> '&&' <expr> (6)
|
||||
<expr> '||' <expr> (7)
|
||||
|
||||
Expressions are listed in decreasing order of precedence.
|
||||
|
||||
(1) Convert the symbol into an expression. Boolean and tristate symbols
|
||||
are simply converted into the respective expression values. All
|
||||
other symbol types result in 'n'.
|
||||
(2) If the values of both symbols are equal, it returns 'y',
|
||||
otherwise 'n'.
|
||||
(3) If the values of both symbols are equal, it returns 'n',
|
||||
otherwise 'y'.
|
||||
(4) Returns the value of the expression. Used to override precedence.
|
||||
(5) Returns the result of (2-/expr/).
|
||||
(6) Returns the result of min(/expr/, /expr/).
|
||||
(7) Returns the result of max(/expr/, /expr/).
|
||||
|
||||
An expression can have a value of 'n', 'm' or 'y' (or 0, 1, 2
|
||||
respectively for calculations). A menu entry becomes visible when it's
|
||||
expression evaluates to 'm' or 'y'.
|
||||
|
||||
There are two types of symbols: constant and non-constant symbols.
|
||||
Non-constant symbols are the most common ones and are defined with the
|
||||
'config' statement. Non-constant symbols consist entirely of alphanumeric
|
||||
characters or underscores.
|
||||
Constant symbols are only part of expressions. Constant symbols are
|
||||
always surrounded by single or double quotes. Within the quote, any
|
||||
other character is allowed and the quotes can be escaped using '\'.
|
||||
|
||||
Menu structure
|
||||
--------------
|
||||
|
||||
The position of a menu entry in the tree is determined in two ways. First
|
||||
it can be specified explicitly:
|
||||
|
||||
menu "Network device support"
|
||||
depends on NET
|
||||
|
||||
config NETDEVICES
|
||||
...
|
||||
|
||||
endmenu
|
||||
|
||||
All entries within the "menu" ... "endmenu" block become a submenu of
|
||||
"Network device support". All subentries inherit the dependencies from
|
||||
the menu entry, e.g. this means the dependency "NET" is added to the
|
||||
dependency list of the config option NETDEVICES.
|
||||
|
||||
The other way to generate the menu structure is done by analyzing the
|
||||
dependencies. If a menu entry somehow depends on the previous entry, it
|
||||
can be made a submenu of it. First, the previous (parent) symbol must
|
||||
be part of the dependency list and then one of these two conditions
|
||||
must be true:
|
||||
- the child entry must become invisible, if the parent is set to 'n'
|
||||
- the child entry must only be visible, if the parent is visible
|
||||
|
||||
config MODULES
|
||||
bool "Enable loadable module support"
|
||||
|
||||
config MODVERSIONS
|
||||
bool "Set version information on all module symbols"
|
||||
depends on MODULES
|
||||
|
||||
comment "module support disabled"
|
||||
depends on !MODULES
|
||||
|
||||
MODVERSIONS directly depends on MODULES, this means it's only visible if
|
||||
MODULES is different from 'n'. The comment on the other hand is always
|
||||
visible when MODULES is visible (the (empty) dependency of MODULES is
|
||||
also part of the comment dependencies).
|
||||
|
||||
|
||||
Kconfig syntax
|
||||
--------------
|
||||
|
||||
The configuration file describes a series of menu entries, where every
|
||||
line starts with a keyword (except help texts). The following keywords
|
||||
end a menu entry:
|
||||
- config
|
||||
- menuconfig
|
||||
- choice/endchoice
|
||||
- comment
|
||||
- menu/endmenu
|
||||
- if/endif
|
||||
- source
|
||||
The first five also start the definition of a menu entry.
|
||||
|
||||
config:
|
||||
|
||||
"config" <symbol>
|
||||
<config options>
|
||||
|
||||
This defines a config symbol <symbol> and accepts any of above
|
||||
attributes as options.
|
||||
|
||||
menuconfig:
|
||||
"menuconfig" <symbol>
|
||||
<config options>
|
||||
|
||||
This is similar to the simple config entry above, but it also gives a
|
||||
hint to front ends, that all suboptions should be displayed as a
|
||||
separate list of options.
|
||||
|
||||
choices:
|
||||
|
||||
"choice"
|
||||
<choice options>
|
||||
<choice block>
|
||||
"endchoice"
|
||||
|
||||
This defines a choice group and accepts any of the above attributes as
|
||||
options. A choice can only be of type bool or tristate, while a boolean
|
||||
choice only allows a single config entry to be selected, a tristate
|
||||
choice also allows any number of config entries to be set to 'm'. This
|
||||
can be used if multiple drivers for a single hardware exists and only a
|
||||
single driver can be compiled/loaded into the kernel, but all drivers
|
||||
can be compiled as modules.
|
||||
A choice accepts another option "optional", which allows to set the
|
||||
choice to 'n' and no entry needs to be selected.
|
||||
|
||||
comment:
|
||||
|
||||
"comment" <prompt>
|
||||
<comment options>
|
||||
|
||||
This defines a comment which is displayed to the user during the
|
||||
configuration process and is also echoed to the output files. The only
|
||||
possible options are dependencies.
|
||||
|
||||
menu:
|
||||
|
||||
"menu" <prompt>
|
||||
<menu options>
|
||||
<menu block>
|
||||
"endmenu"
|
||||
|
||||
This defines a menu block, see "Menu structure" above for more
|
||||
information. The only possible options are dependencies.
|
||||
|
||||
if:
|
||||
|
||||
"if" <expr>
|
||||
<if block>
|
||||
"endif"
|
||||
|
||||
This defines an if block. The dependency expression <expr> is appended
|
||||
to all enclosed menu entries.
|
||||
|
||||
source:
|
||||
|
||||
"source" <prompt>
|
||||
|
||||
This reads the specified configuration file. This file is always parsed.
|
||||
|
||||
mainmenu:
|
||||
|
||||
"mainmenu" <prompt>
|
||||
|
||||
This sets the config program's title bar if the config program chooses
|
||||
to use it.
|
||||
|
||||
|
||||
Kconfig hints
|
||||
-------------
|
||||
This is a collection of Kconfig tips, most of which aren't obvious at
|
||||
first glance and most of which have become idioms in several Kconfig
|
||||
files.
|
||||
|
||||
Adding common features and make the usage configurable
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
It is a common idiom to implement a feature/functionality that are
|
||||
relevant for some architectures but not all.
|
||||
The recommended way to do so is to use a config variable named HAVE_*
|
||||
that is defined in a common Kconfig file and selected by the relevant
|
||||
architectures.
|
||||
An example is the generic IOMAP functionality.
|
||||
|
||||
We would in lib/Kconfig see:
|
||||
|
||||
# Generic IOMAP is used to ...
|
||||
config HAVE_GENERIC_IOMAP
|
||||
|
||||
config GENERIC_IOMAP
|
||||
depends on HAVE_GENERIC_IOMAP && FOO
|
||||
|
||||
And in lib/Makefile we would see:
|
||||
obj-$(CONFIG_GENERIC_IOMAP) += iomap.o
|
||||
|
||||
For each architecture using the generic IOMAP functionality we would see:
|
||||
|
||||
config X86
|
||||
select ...
|
||||
select HAVE_GENERIC_IOMAP
|
||||
select ...
|
||||
|
||||
Note: we use the existing config option and avoid creating a new
|
||||
config variable to select HAVE_GENERIC_IOMAP.
|
||||
|
||||
Note: the use of the internal config variable HAVE_GENERIC_IOMAP, it is
|
||||
introduced to overcome the limitation of select which will force a
|
||||
config option to 'y' no matter the dependencies.
|
||||
The dependencies are moved to the symbol GENERIC_IOMAP and we avoid the
|
||||
situation where select forces a symbol equals to 'y'.
|
||||
|
||||
Build as module only
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
To restrict a component build to module-only, qualify its config symbol
|
||||
with "depends on m". E.g.:
|
||||
|
||||
config FOO
|
||||
depends on BAR && m
|
||||
|
||||
limits FOO to module (=m) or disabled (=n).
|
||||
|
||||
@@ -1,917 +0,0 @@
|
||||
---
|
||||
Makefile | 7 +++
|
||||
README.buildroot2 | 22 ++++++++++
|
||||
conf.c | 17 ++++----
|
||||
confdata.c | 101 ++++++++++++++++++++++++++------------------------
|
||||
expr.c | 42 ++++++++++----------
|
||||
gconf.c | 4 -
|
||||
gconf.glade | 2
|
||||
mconf.c | 39 +++++++++----------
|
||||
qconf.cc | 5 +-
|
||||
util.c | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++-
|
||||
zconf.tab.c_shipped | 2
|
||||
zconf.y | 2
|
||||
12 files changed, 244 insertions(+), 104 deletions(-)
|
||||
|
||||
Index: config/Makefile
|
||||
===================================================================
|
||||
--- config.orig/Makefile
|
||||
+++ config/Makefile
|
||||
@@ -124,10 +124,21 @@
|
||||
ifeq ($(MAKECMDGOALS),menuconfig)
|
||||
hostprogs-y += mconf
|
||||
endif
|
||||
+ifeq ($(findstring mconf,$(MAKECMDGOALS)),mconf)
|
||||
+ hostprogs-y += mconf
|
||||
+endif
|
||||
|
||||
ifeq ($(MAKECMDGOALS),xconfig)
|
||||
qconf-target := 1
|
||||
endif
|
||||
+ifeq ($(findstring qconf,$(MAKECMDGOALS)),qconf)
|
||||
+ qconf-target := 1
|
||||
+endif
|
||||
+
|
||||
ifeq ($(MAKECMDGOALS),gconfig)
|
||||
gconf-target := 1
|
||||
endif
|
||||
+ifeq ($(findstring gconf,$(MAKECMDGOALS)),gconf)
|
||||
+ gconf-target := 1
|
||||
+endif
|
||||
+
|
||||
Index: config/README.buildroot2
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ config/README.buildroot2
|
||||
@@ -0,0 +1,22 @@
|
||||
+This is a copy of the kconfig code in the kernel (currently 2.6.24.4) tweaked
|
||||
+to suit Buildroot.
|
||||
+
|
||||
+To update:
|
||||
+ cp -r /usr/src/linux/scripts/kconfig package/config.new
|
||||
+ cd package/config.new
|
||||
+ cp /usr/src/linux/Documentation/kbuild/kconfig-language.txt .
|
||||
+ patch -p1 < ../config/kconfig-to-buildroot2.patch
|
||||
+ mv Makefile Makefile.kconfig
|
||||
+ cp ../config/README.buildroot2 .
|
||||
+ cp ../config/foo.h .
|
||||
+ cp ../config/Makefile .
|
||||
+ cp ../config/kconfig-to-buildroot2.patch .
|
||||
+ cd ..
|
||||
+ rm -rf config
|
||||
+ mv config.new config
|
||||
+
|
||||
+Then verify the toplevel targets work:
|
||||
+ config
|
||||
+ defconfig
|
||||
+ menuconfig
|
||||
+ oldconfig
|
||||
Index: config/conf.c
|
||||
===================================================================
|
||||
--- config.orig/conf.c
|
||||
+++ config/conf.c
|
||||
@@ -496,13 +496,12 @@
|
||||
}
|
||||
name = av[optind];
|
||||
conf_parse(name);
|
||||
- //zconfdump(stdout);
|
||||
if (sync_kconfig) {
|
||||
name = conf_get_configname();
|
||||
if (stat(name, &tmpstat)) {
|
||||
fprintf(stderr, _("***\n"
|
||||
- "*** You have not yet configured your kernel!\n"
|
||||
- "*** (missing kernel config file \"%s\")\n"
|
||||
+ "*** You have not yet configured Buildroot!\n"
|
||||
+ "*** (missing .config file \"%s\")\n"
|
||||
"***\n"
|
||||
"*** Please run some configurator (e.g. \"make oldconfig\" or\n"
|
||||
"*** \"make menuconfig\" or \"make xconfig\").\n"
|
||||
@@ -557,7 +556,7 @@
|
||||
name = getenv("KCONFIG_NOSILENTUPDATE");
|
||||
if (name && *name) {
|
||||
fprintf(stderr,
|
||||
- _("\n*** Kernel configuration requires explicit update.\n\n"));
|
||||
+ _("\n*** Buildroot configuration requires explicit update.\n\n"));
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -600,18 +599,22 @@
|
||||
* All other commands are only used to generate a config.
|
||||
*/
|
||||
if (conf_get_changed() && conf_write(NULL)) {
|
||||
- fprintf(stderr, _("\n*** Error during writing of the kernel configuration.\n\n"));
|
||||
+ fprintf(stderr, _("\n*** Error during writing of the Buildroot configuration.\n\n"));
|
||||
exit(1);
|
||||
}
|
||||
if (conf_write_autoconf()) {
|
||||
- fprintf(stderr, _("\n*** Error during update of the kernel configuration.\n\n"));
|
||||
+ fprintf(stderr, _("\n*** Error during update of the Buildroot configuration.\n\n"));
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
if (conf_write(NULL)) {
|
||||
- fprintf(stderr, _("\n*** Error during writing of the kernel configuration.\n\n"));
|
||||
+ fprintf(stderr, _("\n*** Error during writing of the Buildroot configuration.\n\n"));
|
||||
exit(1);
|
||||
}
|
||||
+ if (conf_write_autoconf()) {
|
||||
+ fprintf(stderr, _("\n*** Error during update of the Buildroot configuration.\n\n"));
|
||||
+ return 1;
|
||||
+ }
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Index: config/confdata.c
|
||||
===================================================================
|
||||
--- config.orig/confdata.c
|
||||
+++ config/confdata.c
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
+#include <libgen.h>
|
||||
|
||||
#define LKC_DIRECT_LINK
|
||||
#include "lkc.h"
|
||||
@@ -21,7 +22,7 @@
|
||||
static const char *conf_filename;
|
||||
static int conf_lineno, conf_warnings, conf_unsaved;
|
||||
|
||||
-const char conf_defname[] = "arch/$ARCH/defconfig";
|
||||
+const char conf_defname[] = ".defconfig";
|
||||
|
||||
static void conf_warning(const char *fmt, ...)
|
||||
{
|
||||
@@ -36,16 +37,14 @@
|
||||
|
||||
const char *conf_get_configname(void)
|
||||
{
|
||||
- char *name = getenv("KCONFIG_CONFIG");
|
||||
+ char *name = getenv("BUILDROOT_CONFIG");
|
||||
|
||||
return name ? name : ".config";
|
||||
}
|
||||
|
||||
const char *conf_get_autoconfig_name(void)
|
||||
{
|
||||
- char *name = getenv("KCONFIG_AUTOCONFIG");
|
||||
-
|
||||
- return name ? name : "include/config/auto.conf";
|
||||
+ return getenv("KCONFIG_AUTOCONFIG");
|
||||
}
|
||||
|
||||
static char *conf_expand_value(const char *in)
|
||||
@@ -219,22 +218,22 @@
|
||||
sym = NULL;
|
||||
switch (line[0]) {
|
||||
case '#':
|
||||
- if (memcmp(line + 2, "CONFIG_", 7))
|
||||
+ if (line[1]!=' ')
|
||||
continue;
|
||||
- p = strchr(line + 9, ' ');
|
||||
+ p = strchr(line + 2, ' ');
|
||||
if (!p)
|
||||
continue;
|
||||
*p++ = 0;
|
||||
if (strncmp(p, "is not set", 10))
|
||||
continue;
|
||||
if (def == S_DEF_USER) {
|
||||
- sym = sym_find(line + 9);
|
||||
+ sym = sym_find(line + 2);
|
||||
if (!sym) {
|
||||
sym_add_change_count(1);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
- sym = sym_lookup(line + 9, 0);
|
||||
+ sym = sym_lookup(line + 2, 0);
|
||||
if (sym->type == S_UNKNOWN)
|
||||
sym->type = S_BOOLEAN;
|
||||
}
|
||||
@@ -251,12 +250,8 @@
|
||||
;
|
||||
}
|
||||
break;
|
||||
- case 'C':
|
||||
- if (memcmp(line, "CONFIG_", 7)) {
|
||||
- conf_warning("unexpected data");
|
||||
- continue;
|
||||
- }
|
||||
- p = strchr(line + 7, '=');
|
||||
+ case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z':
|
||||
+ p = strchr(line, '=');
|
||||
if (!p)
|
||||
continue;
|
||||
*p++ = 0;
|
||||
@@ -267,13 +262,13 @@
|
||||
*p2 = 0;
|
||||
}
|
||||
if (def == S_DEF_USER) {
|
||||
- sym = sym_find(line + 7);
|
||||
+ sym = sym_find(line);
|
||||
if (!sym) {
|
||||
sym_add_change_count(1);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
- sym = sym_lookup(line + 7, 0);
|
||||
+ sym = sym_lookup(line, 0);
|
||||
if (sym->type == S_UNKNOWN)
|
||||
sym->type = S_OTHER;
|
||||
}
|
||||
@@ -443,7 +438,7 @@
|
||||
if (!out)
|
||||
return 1;
|
||||
|
||||
- sym = sym_lookup("KERNELVERSION", 0);
|
||||
+ sym = sym_lookup("BR2_VERSION", 0);
|
||||
sym_calc_value(sym);
|
||||
time(&now);
|
||||
env = getenv("KCONFIG_NOTIMESTAMP");
|
||||
@@ -452,10 +447,8 @@
|
||||
|
||||
fprintf(out, _("#\n"
|
||||
"# Automatically generated make config: don't edit\n"
|
||||
- "# Linux kernel version: %s\n"
|
||||
"%s%s"
|
||||
"#\n"),
|
||||
- sym_get_string_value(sym),
|
||||
use_timestamp ? "# " : "",
|
||||
use_timestamp ? ctime(&now) : "");
|
||||
|
||||
@@ -489,19 +482,19 @@
|
||||
case S_TRISTATE:
|
||||
switch (sym_get_tristate_value(sym)) {
|
||||
case no:
|
||||
- fprintf(out, "# CONFIG_%s is not set\n", sym->name);
|
||||
+ fprintf(out, "# %s is not set\n", sym->name);
|
||||
break;
|
||||
case mod:
|
||||
- fprintf(out, "CONFIG_%s=m\n", sym->name);
|
||||
+ fprintf(out, "%s=m\n", sym->name);
|
||||
break;
|
||||
case yes:
|
||||
- fprintf(out, "CONFIG_%s=y\n", sym->name);
|
||||
+ fprintf(out, "%s=y\n", sym->name);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case S_STRING:
|
||||
str = sym_get_string_value(sym);
|
||||
- fprintf(out, "CONFIG_%s=\"", sym->name);
|
||||
+ fprintf(out, "%s=\"", sym->name);
|
||||
while (1) {
|
||||
l = strcspn(str, "\"\\");
|
||||
if (l) {
|
||||
@@ -517,12 +510,12 @@
|
||||
case S_HEX:
|
||||
str = sym_get_string_value(sym);
|
||||
if (str[0] != '0' || (str[1] != 'x' && str[1] != 'X')) {
|
||||
- fprintf(out, "CONFIG_%s=%s\n", sym->name, str);
|
||||
+ fprintf(out, "%s=%s\n", sym->name, str);
|
||||
break;
|
||||
}
|
||||
case S_INT:
|
||||
str = sym_get_string_value(sym);
|
||||
- fprintf(out, "CONFIG_%s=%s\n", sym->name, str);
|
||||
+ fprintf(out, "%s=%s\n", sym->name, str);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -564,6 +557,7 @@
|
||||
{
|
||||
const char *name;
|
||||
char path[128];
|
||||
+ char *opwd, *dir, *_name;
|
||||
char *s, *d, c;
|
||||
struct symbol *sym;
|
||||
struct stat sb;
|
||||
@@ -572,8 +566,20 @@
|
||||
name = conf_get_autoconfig_name();
|
||||
conf_read_simple(name, S_DEF_AUTO);
|
||||
|
||||
- if (chdir("include/config"))
|
||||
+ opwd = malloc(256);
|
||||
+ _name = strdup(name);
|
||||
+ if (opwd == NULL || _name == NULL)
|
||||
return 1;
|
||||
+ opwd = getcwd(opwd, 256);
|
||||
+ dir = dirname(_name);
|
||||
+ if (dir == NULL) {
|
||||
+ res = 1;
|
||||
+ goto err;
|
||||
+ }
|
||||
+ if (chdir(dir)) {
|
||||
+ res = 1;
|
||||
+ goto err;
|
||||
+ }
|
||||
|
||||
res = 0;
|
||||
for_all_symbols(i, sym) {
|
||||
@@ -666,9 +672,11 @@
|
||||
close(fd);
|
||||
}
|
||||
out:
|
||||
- if (chdir("../.."))
|
||||
- return 1;
|
||||
-
|
||||
+ if (chdir(opwd))
|
||||
+ res = 1;
|
||||
+err:
|
||||
+ free(opwd);
|
||||
+ free(_name);
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -683,7 +691,7 @@
|
||||
|
||||
sym_clear_all_valid();
|
||||
|
||||
- file_write_dep("include/config/auto.conf.cmd");
|
||||
+ file_write_dep(".config.cmd");
|
||||
|
||||
if (conf_split_config())
|
||||
return 1;
|
||||
@@ -698,22 +706,19 @@
|
||||
return 1;
|
||||
}
|
||||
|
||||
- sym = sym_lookup("KERNELVERSION", 0);
|
||||
+ sym = sym_lookup("BR2_VERSION", 0);
|
||||
sym_calc_value(sym);
|
||||
time(&now);
|
||||
fprintf(out, "#\n"
|
||||
"# Automatically generated make config: don't edit\n"
|
||||
- "# Linux kernel version: %s\n"
|
||||
"# %s"
|
||||
"#\n",
|
||||
- sym_get_string_value(sym), ctime(&now));
|
||||
+ ctime(&now));
|
||||
fprintf(out_h, "/*\n"
|
||||
" * Automatically generated C config: don't edit\n"
|
||||
- " * Linux kernel version: %s\n"
|
||||
" * %s"
|
||||
- " */\n"
|
||||
- "#define AUTOCONF_INCLUDED\n",
|
||||
- sym_get_string_value(sym), ctime(&now));
|
||||
+ " */\n",
|
||||
+ ctime(&now));
|
||||
|
||||
for_all_symbols(i, sym) {
|
||||
sym_calc_value(sym);
|
||||
@@ -726,19 +731,19 @@
|
||||
case no:
|
||||
break;
|
||||
case mod:
|
||||
- fprintf(out, "CONFIG_%s=m\n", sym->name);
|
||||
- fprintf(out_h, "#define CONFIG_%s_MODULE 1\n", sym->name);
|
||||
+ fprintf(out, "%s=m\n", sym->name);
|
||||
+ fprintf(out_h, "#define %s_MODULE 1\n", sym->name);
|
||||
break;
|
||||
case yes:
|
||||
- fprintf(out, "CONFIG_%s=y\n", sym->name);
|
||||
- fprintf(out_h, "#define CONFIG_%s 1\n", sym->name);
|
||||
+ fprintf(out, "%s=y\n", sym->name);
|
||||
+ fprintf(out_h, "#define %s 1\n", sym->name);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case S_STRING:
|
||||
str = sym_get_string_value(sym);
|
||||
- fprintf(out, "CONFIG_%s=\"", sym->name);
|
||||
- fprintf(out_h, "#define CONFIG_%s \"", sym->name);
|
||||
+ fprintf(out, "%s=\"", sym->name);
|
||||
+ fprintf(out_h, "#define %s \"", sym->name);
|
||||
while (1) {
|
||||
l = strcspn(str, "\"\\");
|
||||
if (l) {
|
||||
@@ -758,14 +763,14 @@
|
||||
case S_HEX:
|
||||
str = sym_get_string_value(sym);
|
||||
if (str[0] != '0' || (str[1] != 'x' && str[1] != 'X')) {
|
||||
- fprintf(out, "CONFIG_%s=%s\n", sym->name, str);
|
||||
- fprintf(out_h, "#define CONFIG_%s 0x%s\n", sym->name, str);
|
||||
+ fprintf(out, "%s=%s\n", sym->name, str);
|
||||
+ fprintf(out_h, "#define %s 0x%s\n", sym->name, str);
|
||||
break;
|
||||
}
|
||||
case S_INT:
|
||||
str = sym_get_string_value(sym);
|
||||
- fprintf(out, "CONFIG_%s=%s\n", sym->name, str);
|
||||
- fprintf(out_h, "#define CONFIG_%s %s\n", sym->name, str);
|
||||
+ fprintf(out, "%s=%s\n", sym->name, str);
|
||||
+ fprintf(out_h, "#define %s %s\n", sym->name, str);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
Index: config/expr.c
|
||||
===================================================================
|
||||
--- config.orig/expr.c
|
||||
+++ config/expr.c
|
||||
@@ -331,7 +331,7 @@
|
||||
e->right.expr = expr_trans_bool(e->right.expr);
|
||||
break;
|
||||
case E_UNEQUAL:
|
||||
- // FOO!=n -> FOO
|
||||
+ /* FOO!=n -> FOO */
|
||||
if (e->left.sym->type == S_TRISTATE) {
|
||||
if (e->right.sym == &symbol_no) {
|
||||
e->type = E_SYMBOL;
|
||||
@@ -380,19 +380,19 @@
|
||||
if (e1->type == E_EQUAL && e2->type == E_EQUAL &&
|
||||
((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_mod) ||
|
||||
(e1->right.sym == &symbol_mod && e2->right.sym == &symbol_yes))) {
|
||||
- // (a='y') || (a='m') -> (a!='n')
|
||||
+ /* (a='y') || (a='m') -> (a!='n') */
|
||||
return expr_alloc_comp(E_UNEQUAL, sym1, &symbol_no);
|
||||
}
|
||||
if (e1->type == E_EQUAL && e2->type == E_EQUAL &&
|
||||
((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_no) ||
|
||||
(e1->right.sym == &symbol_no && e2->right.sym == &symbol_yes))) {
|
||||
- // (a='y') || (a='n') -> (a!='m')
|
||||
+ /* (a='y') || (a='n') -> (a!='m') */
|
||||
return expr_alloc_comp(E_UNEQUAL, sym1, &symbol_mod);
|
||||
}
|
||||
if (e1->type == E_EQUAL && e2->type == E_EQUAL &&
|
||||
((e1->right.sym == &symbol_mod && e2->right.sym == &symbol_no) ||
|
||||
(e1->right.sym == &symbol_no && e2->right.sym == &symbol_mod))) {
|
||||
- // (a='m') || (a='n') -> (a!='y')
|
||||
+ /* (a='m') || (a='n') -> (a!='y') */
|
||||
return expr_alloc_comp(E_UNEQUAL, sym1, &symbol_yes);
|
||||
}
|
||||
}
|
||||
@@ -443,29 +443,29 @@
|
||||
|
||||
if ((e1->type == E_SYMBOL && e2->type == E_EQUAL && e2->right.sym == &symbol_yes) ||
|
||||
(e2->type == E_SYMBOL && e1->type == E_EQUAL && e1->right.sym == &symbol_yes))
|
||||
- // (a) && (a='y') -> (a='y')
|
||||
+ /* (a) && (a='y') -> (a='y') */
|
||||
return expr_alloc_comp(E_EQUAL, sym1, &symbol_yes);
|
||||
|
||||
if ((e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_no) ||
|
||||
(e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_no))
|
||||
- // (a) && (a!='n') -> (a)
|
||||
+ /* (a) && (a!='n') -> (a) */
|
||||
return expr_alloc_symbol(sym1);
|
||||
|
||||
if ((e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_mod) ||
|
||||
(e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_mod))
|
||||
- // (a) && (a!='m') -> (a='y')
|
||||
+ /* (a) && (a!='m') -> (a='y') */
|
||||
return expr_alloc_comp(E_EQUAL, sym1, &symbol_yes);
|
||||
|
||||
if (sym1->type == S_TRISTATE) {
|
||||
if (e1->type == E_EQUAL && e2->type == E_UNEQUAL) {
|
||||
- // (a='b') && (a!='c') -> 'b'='c' ? 'n' : a='b'
|
||||
+ /* (a='b') && (a!='c') -> 'b'='c' ? 'n' : a='b' */
|
||||
sym2 = e1->right.sym;
|
||||
if ((e2->right.sym->flags & SYMBOL_CONST) && (sym2->flags & SYMBOL_CONST))
|
||||
return sym2 != e2->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2)
|
||||
: expr_alloc_symbol(&symbol_no);
|
||||
}
|
||||
if (e1->type == E_UNEQUAL && e2->type == E_EQUAL) {
|
||||
- // (a='b') && (a!='c') -> 'b'='c' ? 'n' : a='b'
|
||||
+ /* (a='b') && (a!='c') -> 'b'='c' ? 'n' : a='b' */
|
||||
sym2 = e2->right.sym;
|
||||
if ((e1->right.sym->flags & SYMBOL_CONST) && (sym2->flags & SYMBOL_CONST))
|
||||
return sym2 != e1->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2)
|
||||
@@ -474,19 +474,19 @@
|
||||
if (e1->type == E_UNEQUAL && e2->type == E_UNEQUAL &&
|
||||
((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_no) ||
|
||||
(e1->right.sym == &symbol_no && e2->right.sym == &symbol_yes)))
|
||||
- // (a!='y') && (a!='n') -> (a='m')
|
||||
+ /* (a!='y') && (a!='n') -> (a='m') */
|
||||
return expr_alloc_comp(E_EQUAL, sym1, &symbol_mod);
|
||||
|
||||
if (e1->type == E_UNEQUAL && e2->type == E_UNEQUAL &&
|
||||
((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_mod) ||
|
||||
(e1->right.sym == &symbol_mod && e2->right.sym == &symbol_yes)))
|
||||
- // (a!='y') && (a!='m') -> (a='n')
|
||||
+ /* (a!='y') && (a!='m') -> (a='n') */
|
||||
return expr_alloc_comp(E_EQUAL, sym1, &symbol_no);
|
||||
|
||||
if (e1->type == E_UNEQUAL && e2->type == E_UNEQUAL &&
|
||||
((e1->right.sym == &symbol_mod && e2->right.sym == &symbol_no) ||
|
||||
(e1->right.sym == &symbol_no && e2->right.sym == &symbol_mod)))
|
||||
- // (a!='m') && (a!='n') -> (a='m')
|
||||
+ /* (a!='m') && (a!='n') -> (a='m') */
|
||||
return expr_alloc_comp(E_EQUAL, sym1, &symbol_yes);
|
||||
|
||||
if ((e1->type == E_SYMBOL && e2->type == E_EQUAL && e2->right.sym == &symbol_mod) ||
|
||||
@@ -579,7 +579,7 @@
|
||||
switch (e1->type) {
|
||||
case E_OR:
|
||||
expr_eliminate_dups2(e1->type, &e1, &e1);
|
||||
- // (FOO || BAR) && (!FOO && !BAR) -> n
|
||||
+ /* (FOO || BAR) && (!FOO && !BAR) -> n */
|
||||
tmp1 = expr_transform(expr_alloc_one(E_NOT, expr_copy(e1)));
|
||||
tmp2 = expr_copy(e2);
|
||||
tmp = expr_extract_eq_and(&tmp1, &tmp2);
|
||||
@@ -594,7 +594,7 @@
|
||||
break;
|
||||
case E_AND:
|
||||
expr_eliminate_dups2(e1->type, &e1, &e1);
|
||||
- // (FOO && BAR) || (!FOO || !BAR) -> y
|
||||
+ /* (FOO && BAR) || (!FOO || !BAR) -> y */
|
||||
tmp1 = expr_transform(expr_alloc_one(E_NOT, expr_copy(e1)));
|
||||
tmp2 = expr_copy(e2);
|
||||
tmp = expr_extract_eq_or(&tmp1, &tmp2);
|
||||
@@ -703,7 +703,7 @@
|
||||
case E_NOT:
|
||||
switch (e->left.expr->type) {
|
||||
case E_NOT:
|
||||
- // !!a -> a
|
||||
+ /* !!a -> a */
|
||||
tmp = e->left.expr->left.expr;
|
||||
free(e->left.expr);
|
||||
free(e);
|
||||
@@ -712,14 +712,14 @@
|
||||
break;
|
||||
case E_EQUAL:
|
||||
case E_UNEQUAL:
|
||||
- // !a='x' -> a!='x'
|
||||
+ /* !a='x' -> a!='x' */
|
||||
tmp = e->left.expr;
|
||||
free(e);
|
||||
e = tmp;
|
||||
e->type = e->type == E_EQUAL ? E_UNEQUAL : E_EQUAL;
|
||||
break;
|
||||
case E_OR:
|
||||
- // !(a || b) -> !a && !b
|
||||
+ /* !(a || b) -> !a && !b */
|
||||
tmp = e->left.expr;
|
||||
e->type = E_AND;
|
||||
e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr);
|
||||
@@ -728,7 +728,7 @@
|
||||
e = expr_transform(e);
|
||||
break;
|
||||
case E_AND:
|
||||
- // !(a && b) -> !a || !b
|
||||
+ /* !(a && b) -> !a || !b */
|
||||
tmp = e->left.expr;
|
||||
e->type = E_OR;
|
||||
e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr);
|
||||
@@ -738,7 +738,7 @@
|
||||
break;
|
||||
case E_SYMBOL:
|
||||
if (e->left.expr->left.sym == &symbol_yes) {
|
||||
- // !'y' -> 'n'
|
||||
+ /* !'y' -> 'n' */
|
||||
tmp = e->left.expr;
|
||||
free(e);
|
||||
e = tmp;
|
||||
@@ -747,7 +747,7 @@
|
||||
break;
|
||||
}
|
||||
if (e->left.expr->left.sym == &symbol_mod) {
|
||||
- // !'m' -> 'm'
|
||||
+ /* !'m' -> 'm' */
|
||||
tmp = e->left.expr;
|
||||
free(e);
|
||||
e = tmp;
|
||||
@@ -756,7 +756,7 @@
|
||||
break;
|
||||
}
|
||||
if (e->left.expr->left.sym == &symbol_no) {
|
||||
- // !'n' -> 'y'
|
||||
+ /* !'n' -> 'y' */
|
||||
tmp = e->left.expr;
|
||||
free(e);
|
||||
e = tmp;
|
||||
Index: config/gconf.c
|
||||
===================================================================
|
||||
--- config.orig/gconf.c
|
||||
+++ config/gconf.c
|
||||
@@ -266,8 +266,8 @@
|
||||
/*"style", PANGO_STYLE_OBLIQUE, */
|
||||
NULL);
|
||||
|
||||
- sprintf(title, _("Linux Kernel v%s Configuration"),
|
||||
- getenv("KERNELVERSION"));
|
||||
+ sprintf(title, _("Buildroot v%s Configuration"),
|
||||
+ getenv("BR2_VERSION"));
|
||||
gtk_window_set_title(GTK_WINDOW(main_wnd), title);
|
||||
|
||||
gtk_widget_show(main_wnd);
|
||||
Index: config/gconf.glade
|
||||
===================================================================
|
||||
--- config.orig/gconf.glade
|
||||
+++ config/gconf.glade
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<widget class="GtkWindow" id="window1">
|
||||
<property name="visible">True</property>
|
||||
- <property name="title" translatable="yes">Gtk Kernel Configurator</property>
|
||||
+ <property name="title" translatable="yes">Gtk Buildroot Configurator</property>
|
||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||
<property name="window_position">GTK_WIN_POS_NONE</property>
|
||||
<property name="modal">False</property>
|
||||
Index: config/mconf.c
|
||||
===================================================================
|
||||
--- config.orig/mconf.c
|
||||
+++ config/mconf.c
|
||||
@@ -25,10 +25,9 @@
|
||||
static const char mconf_readme[] = N_(
|
||||
"Overview\n"
|
||||
"--------\n"
|
||||
-"Some kernel features may be built directly into the kernel.\n"
|
||||
-"Some may be made into loadable runtime modules. Some features\n"
|
||||
+"Some features may be built directly into Buildroot. Some features\n"
|
||||
"may be completely removed altogether. There are also certain\n"
|
||||
-"kernel parameters which are not really features, but must be\n"
|
||||
+"parameters which are not really features, but must be\n"
|
||||
"entered in as decimal or hexadecimal numbers or possibly text.\n"
|
||||
"\n"
|
||||
"Menu items beginning with following braces represent features that\n"
|
||||
@@ -115,7 +114,7 @@
|
||||
"-----------------------------\n"
|
||||
"Menuconfig supports the use of alternate configuration files for\n"
|
||||
"those who, for various reasons, find it necessary to switch\n"
|
||||
-"between different kernel configurations.\n"
|
||||
+"between different configurations.\n"
|
||||
"\n"
|
||||
"At the end of the main menu you will find two options. One is\n"
|
||||
"for saving the current configuration to a file of your choosing.\n"
|
||||
@@ -148,7 +147,7 @@
|
||||
"\n"
|
||||
"Optional personality available\n"
|
||||
"------------------------------\n"
|
||||
-"If you prefer to have all of the kernel options listed in a single\n"
|
||||
+"If you prefer to have all of the options listed in a single\n"
|
||||
"menu, rather than the default multimenu hierarchy, run the menuconfig\n"
|
||||
"with MENUCONFIG_MODE environment variable set to single_menu. Example:\n"
|
||||
"\n"
|
||||
@@ -178,9 +177,9 @@
|
||||
"Arrow keys navigate the menu. "
|
||||
"<Enter> selects submenus --->. "
|
||||
"Highlighted letters are hotkeys. "
|
||||
- "Pressing <Y> includes, <N> excludes, <M> modularizes features. "
|
||||
+ "Pressing <Y> selectes a feature, while <N> will exclude a feature. "
|
||||
"Press <Esc><Esc> to exit, <?> for Help, </> for Search. "
|
||||
- "Legend: [*] built-in [ ] excluded <M> module < > module capable"),
|
||||
+ "Legend: [*] feature is selected [ ] feature is excluded"),
|
||||
radiolist_instructions[] = N_(
|
||||
"Use the arrow keys to navigate this window or "
|
||||
"press the hotkey of the item you wish to select "
|
||||
@@ -200,18 +199,18 @@
|
||||
"This feature depends on another which has been configured as a module.\n"
|
||||
"As a result, this feature will be built as a module."),
|
||||
nohelp_text[] = N_(
|
||||
- "There is no help available for this kernel option.\n"),
|
||||
+ "There is no help available for this option.\n"),
|
||||
load_config_text[] = N_(
|
||||
"Enter the name of the configuration file you wish to load. "
|
||||
"Accept the name shown to restore the configuration you "
|
||||
"last retrieved. Leave blank to abort."),
|
||||
load_config_help[] = N_(
|
||||
"\n"
|
||||
- "For various reasons, one may wish to keep several different kernel\n"
|
||||
+ "For various reasons, one may wish to keep several different Buildroot\n"
|
||||
"configurations available on a single machine.\n"
|
||||
"\n"
|
||||
"If you have saved a previous configuration in a file other than the\n"
|
||||
- "kernel's default, entering the name of the file here will allow you\n"
|
||||
+ "Buildroot's default, entering the name of the file here will allow you\n"
|
||||
"to modify that configuration.\n"
|
||||
"\n"
|
||||
"If you are uncertain, then you have probably never used alternate\n"
|
||||
@@ -221,7 +220,7 @@
|
||||
"as an alternate. Leave blank to abort."),
|
||||
save_config_help[] = N_(
|
||||
"\n"
|
||||
- "For various reasons, one may wish to keep different kernel\n"
|
||||
+ "For various reasons, one may wish to keep different Buildroot\n"
|
||||
"configurations available on a single machine.\n"
|
||||
"\n"
|
||||
"Entering a file name here will allow you to later retrieve, modify\n"
|
||||
@@ -364,10 +363,10 @@
|
||||
int size;
|
||||
struct symbol *sym;
|
||||
|
||||
- sym = sym_lookup("KERNELVERSION", 0);
|
||||
+ sym = sym_lookup("BR2_VERSION", 0);
|
||||
sym_calc_value(sym);
|
||||
size = snprintf(menu_backtitle, sizeof(menu_backtitle),
|
||||
- _("%s - Linux Kernel v%s Configuration"),
|
||||
+ _("%s - buildroot v%s Configuration"),
|
||||
config_filename, sym_get_string_value(sym));
|
||||
if (size >= sizeof(menu_backtitle))
|
||||
menu_backtitle[sizeof(menu_backtitle)-1] = '\0';
|
||||
@@ -902,7 +901,7 @@
|
||||
if (conf_get_changed())
|
||||
res = dialog_yesno(NULL,
|
||||
_("Do you wish to save your "
|
||||
- "new kernel configuration?\n"
|
||||
+ "new Buildroot configuration?\n"
|
||||
"<ESC><ESC> to continue."),
|
||||
6, 60);
|
||||
else
|
||||
@@ -914,23 +913,23 @@
|
||||
case 0:
|
||||
if (conf_write(filename)) {
|
||||
fprintf(stderr, _("\n\n"
|
||||
- "Error during writing of the kernel configuration.\n"
|
||||
- "Your kernel configuration changes were NOT saved."
|
||||
+ "Error during writing of the Buildroot configuration.\n"
|
||||
+ "Your Buildroot configuration changes were NOT saved."
|
||||
"\n\n"));
|
||||
return 1;
|
||||
}
|
||||
case -1:
|
||||
printf(_("\n\n"
|
||||
- "*** End of Linux kernel configuration.\n"
|
||||
- "*** Execute 'make' to build the kernel or try 'make help'."
|
||||
+ "*** End of Buildroot configuration.\n"
|
||||
+ "*** Execute 'make' to build Buildroot or try 'make help'."
|
||||
"\n\n"));
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, _("\n\n"
|
||||
- "Your kernel configuration changes were NOT saved."
|
||||
+ "Your Buildroot configuration changes were NOT saved."
|
||||
"\n\n"));
|
||||
}
|
||||
|
||||
- return 0;
|
||||
+ return conf_write_autoconf();
|
||||
}
|
||||
|
||||
Index: config/qconf.cc
|
||||
===================================================================
|
||||
--- config.orig/qconf.cc
|
||||
+++ config/qconf.cc
|
||||
@@ -1277,8 +1277,7 @@
|
||||
char title[256];
|
||||
|
||||
QDesktopWidget *d = configApp->desktop();
|
||||
- snprintf(title, sizeof(title), _("Linux Kernel v%s Configuration"),
|
||||
- getenv("KERNELVERSION"));
|
||||
+ snprintf(title, sizeof(title), _("Buildroot Configuration"));
|
||||
setCaption(title);
|
||||
|
||||
width = configSettings->readNumEntry("/window width", d->width() - 64);
|
||||
@@ -1612,6 +1611,7 @@
|
||||
{
|
||||
if (!conf_get_changed()) {
|
||||
e->accept();
|
||||
+ conf_write_autoconf();
|
||||
return;
|
||||
}
|
||||
QMessageBox mb("qconf", _("Save configuration?"), QMessageBox::Warning,
|
||||
@@ -1622,6 +1622,7 @@
|
||||
switch (mb.exec()) {
|
||||
case QMessageBox::Yes:
|
||||
conf_write(NULL);
|
||||
+ conf_write_autoconf();
|
||||
case QMessageBox::No:
|
||||
e->accept();
|
||||
break;
|
||||
Index: config/util.c
|
||||
===================================================================
|
||||
--- config.orig/util.c
|
||||
+++ config/util.c
|
||||
@@ -26,6 +26,109 @@
|
||||
return file;
|
||||
}
|
||||
|
||||
+static char* br2_symbol_printer(const char * const in)
|
||||
+{
|
||||
+ ssize_t i, j, len = strlen(in);
|
||||
+ char *ret;
|
||||
+ if (len < 1)
|
||||
+ return NULL;
|
||||
+ ret = malloc(len);
|
||||
+ if (!ret) {
|
||||
+ printf("Out of memory!");
|
||||
+ exit(1);
|
||||
+ }
|
||||
+ memset(ret, 0, len);
|
||||
+ i = j = 0;
|
||||
+ if (strncmp("BR2_", in, 4) == 0)
|
||||
+ i += 4;
|
||||
+ if (strncmp("PACKAGE_", in + i, 8) == 0)
|
||||
+ i += 8;
|
||||
+ else if (strncmp("TARGET_", in + i, 7) == 0)
|
||||
+ i += 7;
|
||||
+ while (i <= len)
|
||||
+ ret[j++] = tolower(in[i++]);
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
+/* write dependencies of the infividual config-symbols */
|
||||
+static int write_make_deps(const char *name)
|
||||
+{
|
||||
+ struct menu *menu;
|
||||
+ struct symbol *sym;
|
||||
+ struct property *prop, *p;
|
||||
+ unsigned done;
|
||||
+ const char * const name_tmp = "..make.deps.tmp";
|
||||
+ FILE *out;
|
||||
+ if (!name)
|
||||
+ name = ".auto.deps";
|
||||
+ out = fopen(name_tmp, "w");
|
||||
+ if (!out)
|
||||
+ return 1;
|
||||
+ fprintf(out, "# ATTENTION! This does not handle 'depends', just 'select'! \n"
|
||||
+ "# See package/config/util.c write_make_deps()\n#\n");
|
||||
+ menu = &rootmenu;//rootmenu.list;
|
||||
+ while (menu) {
|
||||
+ sym = menu->sym;
|
||||
+ if (!sym) {
|
||||
+ if (!menu_is_visible(menu))
|
||||
+ goto next;
|
||||
+ } else if (!(sym->flags & SYMBOL_CHOICE)) {
|
||||
+ sym_calc_value(sym);
|
||||
+ if (sym->type == S_BOOLEAN
|
||||
+ && sym_get_tristate_value(sym) != no) {
|
||||
+ done = 0;
|
||||
+ for_all_prompts(sym, prop) {
|
||||
+ struct expr *e;
|
||||
+//printf("\nname=%s\n", sym->name);
|
||||
+ for_all_properties(sym, p, P_SELECT) {
|
||||
+ e = p->expr;
|
||||
+ if (e && e->left.sym->name) {
|
||||
+ if (!done) {
|
||||
+ fprintf(out, "%s: $(BASE_TARGETS)", br2_symbol_printer(sym->name));
|
||||
+ done = 1;
|
||||
+ }
|
||||
+//printf("SELECTS %s\n",e->left.sym->name);
|
||||
+ fprintf(out, " %s",br2_symbol_printer(e->left.sym->name));
|
||||
+ }
|
||||
+ }
|
||||
+ if (done)
|
||||
+ fprintf(out, "\n");
|
||||
+#if 0
|
||||
+ e = sym->rev_dep.expr;
|
||||
+ if (e && e->type == E_SYMBOL
|
||||
+ && e->left.sym->name) {
|
||||
+ fprintf(out, "%s: %s", br2_symbol_printer(e->left.sym->name),
|
||||
+ br2_symbol_printer(sym->name));
|
||||
+printf("%s is Selected BY: %s", sym->name, e->left.sym->name);
|
||||
+ }
|
||||
+#endif
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+next:
|
||||
+ if (menu->list) {
|
||||
+ menu = menu->list;
|
||||
+ continue;
|
||||
+ }
|
||||
+ if (menu->next)
|
||||
+ menu = menu->next;
|
||||
+ else while ((menu = menu->parent)) {
|
||||
+ if (menu->next) {
|
||||
+ menu = menu->next;
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ fclose(out);
|
||||
+ rename(name_tmp, name);
|
||||
+ printf(_("#\n"
|
||||
+ "# make dependencies written to %s\n"
|
||||
+ "# ATTENTION buildroot devels!\n"
|
||||
+ "# See top of this file before playing with this auto-preprequisites!\n"
|
||||
+ "#\n"), name);
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
/* write a dependency file as used by kbuild to track dependencies */
|
||||
int file_write_dep(const char *name)
|
||||
{
|
||||
@@ -68,7 +171,7 @@
|
||||
fprintf(out, "\n$(deps_config): ;\n");
|
||||
fclose(out);
|
||||
rename("..config.tmp", name);
|
||||
- return 0;
|
||||
+ return write_make_deps(NULL);
|
||||
}
|
||||
|
||||
|
||||
Index: config/zconf.tab.c_shipped
|
||||
===================================================================
|
||||
--- config.orig/zconf.tab.c_shipped
|
||||
+++ config/zconf.tab.c_shipped
|
||||
@@ -2259,7 +2259,7 @@
|
||||
modules_sym = sym_lookup(NULL, 0);
|
||||
modules_sym->type = S_BOOLEAN;
|
||||
modules_sym->flags |= SYMBOL_AUTO;
|
||||
- rootmenu.prompt = menu_add_prompt(P_MENU, "Linux Kernel Configuration", NULL);
|
||||
+ rootmenu.prompt = menu_add_prompt(P_MENU, "Buildroot Configuration", NULL);
|
||||
|
||||
#if YYDEBUG
|
||||
if (getenv("ZCONF_DEBUG"))
|
||||
Index: config/zconf.y
|
||||
===================================================================
|
||||
--- config.orig/zconf.y
|
||||
+++ config/zconf.y
|
||||
@@ -476,7 +476,7 @@
|
||||
modules_sym = sym_lookup(NULL, 0);
|
||||
modules_sym->type = S_BOOLEAN;
|
||||
modules_sym->flags |= SYMBOL_AUTO;
|
||||
- rootmenu.prompt = menu_add_prompt(P_MENU, "Linux Kernel Configuration", NULL);
|
||||
+ rootmenu.prompt = menu_add_prompt(P_MENU, "Buildroot Configuration", NULL);
|
||||
|
||||
#if YYDEBUG
|
||||
if (getenv("ZCONF_DEBUG"))
|
||||
@@ -166,7 +166,7 @@ static int message__add(const char *msg, char *option, char *file, int lineno)
|
||||
return rc;
|
||||
}
|
||||
|
||||
void menu_build_message_list(struct menu *menu)
|
||||
static void menu_build_message_list(struct menu *menu)
|
||||
{
|
||||
struct menu *child;
|
||||
|
||||
@@ -211,7 +211,7 @@ static void message__print_gettext_msgid_msgstr(struct message *self)
|
||||
"msgstr \"\"\n", self->msg);
|
||||
}
|
||||
|
||||
void menu__xgettext(void)
|
||||
static void menu__xgettext(void)
|
||||
{
|
||||
struct message *m = message__list;
|
||||
|
||||
|
||||
@@ -160,7 +160,15 @@ typedef unsigned int flex_uint32_t;
|
||||
|
||||
/* Size of default input buffer. */
|
||||
#ifndef YY_BUF_SIZE
|
||||
#ifdef __ia64__
|
||||
/* On IA-64, the buffer size is 16k, not 8k.
|
||||
* Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
|
||||
* Ditto for the __ia64__ case accordingly.
|
||||
*/
|
||||
#define YY_BUF_SIZE 32768
|
||||
#else
|
||||
#define YY_BUF_SIZE 16384
|
||||
#endif /* __ia64__ */
|
||||
#endif
|
||||
|
||||
/* The state buf must be large enough to hold one state per character in the main buffer.
|
||||
@@ -802,7 +810,7 @@ static int last_ts, first_ts;
|
||||
static void zconf_endhelp(void);
|
||||
static void zconf_endfile(void);
|
||||
|
||||
void new_string(void)
|
||||
static void new_string(void)
|
||||
{
|
||||
text = malloc(START_STRSIZE);
|
||||
text_asize = START_STRSIZE;
|
||||
@@ -810,7 +818,7 @@ void new_string(void)
|
||||
*text = 0;
|
||||
}
|
||||
|
||||
void append_string(const char *str, int size)
|
||||
static void append_string(const char *str, int size)
|
||||
{
|
||||
int new_size = text_size + size + 1;
|
||||
if (new_size > text_asize) {
|
||||
@@ -824,7 +832,7 @@ void append_string(const char *str, int size)
|
||||
text[text_size] = 0;
|
||||
}
|
||||
|
||||
void alloc_string(const char *str, int size)
|
||||
static void alloc_string(const char *str, int size)
|
||||
{
|
||||
text = malloc(size + 1);
|
||||
memcpy(text, str, size);
|
||||
@@ -914,7 +922,12 @@ static int input (void );
|
||||
|
||||
/* Amount of stuff to slurp up with each read. */
|
||||
#ifndef YY_READ_BUF_SIZE
|
||||
#ifdef __ia64__
|
||||
/* On IA-64, the buffer size is 16k, not 8k */
|
||||
#define YY_READ_BUF_SIZE 16384
|
||||
#else
|
||||
#define YY_READ_BUF_SIZE 8192
|
||||
#endif /* __ia64__ */
|
||||
#endif
|
||||
|
||||
/* Copy whatever the last rule matched to the standard output. */
|
||||
@@ -922,7 +935,7 @@ static int input (void );
|
||||
/* This used to be an fputs(), but since the string might contain NUL's,
|
||||
* we now use fwrite().
|
||||
*/
|
||||
#define ECHO fwrite( zconftext, zconfleng, 1, zconfout )
|
||||
#define ECHO do { if (fwrite( zconftext, zconfleng, 1, zconfout )) {} } while (0)
|
||||
#endif
|
||||
|
||||
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
|
||||
@@ -2060,8 +2073,8 @@ YY_BUFFER_STATE zconf_scan_string (yyconst char * yystr )
|
||||
|
||||
/** Setup the input buffer state to scan the given bytes. The next call to zconflex() will
|
||||
* scan from a @e copy of @a bytes.
|
||||
* @param bytes the byte buffer to scan
|
||||
* @param len the number of bytes in the buffer pointed to by @a bytes.
|
||||
* @param yybytes the byte buffer to scan
|
||||
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
|
||||
*
|
||||
* @return the newly allocated buffer state object.
|
||||
*/
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user