Changeset de798fc in clfs-embedded
- Timestamp:
- Jan 26, 2009, 8:57:10 AM (16 years ago)
- Branches:
- master
- Children:
- d72d615
- Parents:
- 3a3ba13
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/busybox.xml
r3a3ba13 rde798fc 35 35 <screen os="p2"><userinput>patch -Np1 -i ../&busybox-branch_update-patch;</userinput></screen> 36 36 37 <para os="a">C reate the default configuration:</para>37 <para os="a">Copy the Busybox config file from where you downloaded it::</para> 38 38 39 <screen os="b"><userinput> make defconfig</userinput></screen>39 <screen os="b"><userinput>cp ${CLFS}/sources/busybox-&busybox-version;.config .config</userinput></screen> 40 40 41 41 <note os="c"> 42 42 <para>Below we are just telling Busybox to use the default configuration of 43 uClibc. For those for more adventureous, you can use make menuconfig, and43 Busybox. For those for more adventureous, you can use make menuconfig, and 44 44 do a more custom build of your Busybox.</para> 45 45 </note> 46 46 47 <para os="d">We will need to edit the configuration file, to make sure everything gets 48 compiled:</para> 47 <para os="d">Now we will take our configuration we just created, and make Busybox use it:</para> 49 48 50 <screen os="e"><userinput>BUSYBOX_OPTIONS="CONFIG_DMALLOC CONFIG_BUILD_AT_ONCE CONFIG_BUILD_LIBBUSYBOX 51 CONFIG_FEATURE_SH_IS_NONE CONFIG_LOCALE_SUPPORT CONFIG_TFTP CONFIG_FTPGET 52 CONFIG_FTPPUT CONFIG_IPCALC CONFIG_TFTP CONFIG_HUSH CONFIG_LASH 53 CONFIG_MSH CONFIG_INETD CONFIG_DPKG CONFIG_RPM2CPIO CONFIG_RPM 54 CONFIG_FOLD CONFIG_LOGNAME CONFIG_OD CONFIG_CRONTAB CONFIG_UUDECODE 55 CONFIG_UUENCODE CONFIG_SULOGIN CONFIG_DC CONFIG_DEBUG_YANK_SUSv2 56 CONFIG_DEBUG_INIT CONFIG_DEBUG_CROND_OPTION CONFIG_FEATURE_UDHCP_DEBUG 57 CONFIG_TASKSET CONFIG_CHATTR CONFIG_FSCK CONFIG_LSATTR CONFIG_CHPST 58 CONFIG_SETUIDGID CONFIG_ENVUIDGID CONFIG_ENVDIR CONFIG_SOFTLIMIT 59 CONFIG_FEATURE_2_4_MODULES" 60 for config in $BUSYBOX_OPTIONS; do 61 cp .config{,.orig} 62 sed -e "s:${config}=y:${config}=n:" .config.orig > .config 63 done 64 BUSYBOX_OPTIONS="CONFIG_FEATURE_SH_IS_ASH CONFIG_FEATURE_TRACEROUTE_VERBOSE 65 CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE" 66 for config in $BUSYBOX_OPTIONS; do 67 cp .config{,.orig} 68 sed -e "s:# ${config} is not set:${config}=y:" .config.orig > .config 69 done</userinput></screen> 49 <screen os="e"><userinput>make oldconfig</userinput></screen> 70 50 71 51 <para os="f">Compile the package:</para> 72 52 73 <screen os="g"><userinput>make ARCH=${CLFS_ARCH} C ROSS_COMPILE="${CLFS_TARGET}-" CFLAGS="${BUILD}"</userinput></screen>53 <screen os="g"><userinput>make ARCH=${CLFS_ARCH} CC="${CC} ${BUILD}" CROSS_COMPILE="${CLFS_TARGET}-"</userinput></screen> 74 54 75 55 <para os="h">Install the package:</para> 76 56 77 <screen os="i"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE="${CLFS_TARGET}-" CFLAGS="${BUILD}" \78 CONFIG_PREFIX="${CLFS}"install</userinput></screen>57 <screen os="i"><userinput>make make ARCH=${CLFS_ARCH} CC="${CC} ${BUILD}" CROSS_COMPILE="${CLFS_TARGET}-" \ 58 CONFIG_PREFIX=${IMAGE_DIR} install</userinput></screen> 79 59 80 60 <para os="j">If your going to build your kernel with modules, you will need to make
Note:
See TracChangeset
for help on using the changeset viewer.