demistifying make *clean targets, fix some clean targets issues
SVN-Revision: 272v19.07.3_mercusys_ac12_duma
parent
2572b0e67f
commit
aad0c0841c
@ -0,0 +1,29 @@
|
|||||||
|
This is the buildsystem for the OpenWrt Linux Distribution
|
||||||
|
It is a modified uClibc buildroot2.
|
||||||
|
|
||||||
|
Please use "make menuconfig" to configure your appreciated
|
||||||
|
configuration for the toolchain and firmware.
|
||||||
|
|
||||||
|
Simply running 'make' will build your firmware and a tarball
|
||||||
|
of kernel modules. It will download all sources, build the
|
||||||
|
cross-compile toolchain, the kernel and all choosen applications.
|
||||||
|
|
||||||
|
You can use flash.sh for remotely updating your embedded system
|
||||||
|
via tftp.
|
||||||
|
|
||||||
|
|
||||||
|
There are some cleanup targets we would like to explain.
|
||||||
|
"make clean" will only clean the firmware images and the root
|
||||||
|
filesystem. "make dirclean" will remove the extracted kernel source
|
||||||
|
and all exctracted software. (busybox,bridge-utils,..), but will
|
||||||
|
preserve your toolchain. (compiler,linker,..)
|
||||||
|
"make distclean" will remove everything, including the toolchain,
|
||||||
|
all downloaded source code archives and your firmware configuration.
|
||||||
|
You can cleanup separate directories by using "make application-dirclean"
|
||||||
|
and rebuild the firmware with "make".
|
||||||
|
|
||||||
|
Be happy..
|
||||||
|
Your OpenWRT Project
|
||||||
|
http://www.openwrt.org
|
||||||
|
|
||||||
|
|
@ -1,17 +1,20 @@
|
|||||||
# Default target skeleton stuff, may be overridden
|
# Default target skeleton stuff, may be overridden
|
||||||
|
DIST=openwrt
|
||||||
TARGET_SKELETON=target/default/skel.tar.gz
|
TARGET_SKELETON=target/default/skel.tar.gz
|
||||||
TARGET_SKEL_DIR=target/default/target_skeleton
|
TARGET_SKEL_DIR=target/default/target_skeleton
|
||||||
|
|
||||||
include target/device/Makefile.in
|
include target/device/Makefile.in
|
||||||
|
|
||||||
openwrt-linux.trx: openwrt-trx
|
$(DIST)-linux.trx: openwrt-trx
|
||||||
PATH=$(TARGET_PATH) trx -o openwrt-linux.trx $(LINUX_DIR)/$(LINUX_BINLOC) $(IMAGE).$(ROOTFS)
|
PATH=$(TARGET_PATH) trx -o $(DIST)-linux.trx $(LINUX_DIR)/$(LINUX_BINLOC) $(IMAGE).$(ROOTFS)
|
||||||
|
|
||||||
openwrt-gs-code.bin: openwrt-addpattern openwrt-linux.trx
|
$(DIST)-gs-code.bin: openwrt-addpattern $(DIST)-linux.trx
|
||||||
PATH=$(TARGET_PATH) addpattern -2 -i openwrt-linux.trx -o openwrt-gs-code.bin -g
|
PATH=$(TARGET_PATH) addpattern -2 -i $(DIST)-linux.trx -o $(DIST)-gs-code.bin -g
|
||||||
|
|
||||||
openwrt-g-code.bin: openwrt-gs-code.bin
|
$(DIST)-g-code.bin: $(DIST)-gs-code.bin
|
||||||
sed -e "1s,^W54S,W54G," < openwrt-gs-code.bin > openwrt-g-code.bin
|
sed -e "1s,^W54S,W54G," < $(DIST)-gs-code.bin > $(DIST)-g-code.bin
|
||||||
|
|
||||||
openwrt-image: openwrt openwrt-g-code.bin
|
openwrt-image: openwrt $(DIST)-g-code.bin
|
||||||
|
|
||||||
|
$(DIST)-image-clean:
|
||||||
|
@-rm $(DIST)-* 2>/dev/null
|
||||||
|
Loading…
Reference in New Issue