2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 6070 2007-01-10 21:21:59Z nbd $
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
11 include $(INCLUDE_DIR
)/host.mk
13 PKG_OS
:=$(shell uname
-s
)
14 PKG_CPU
:=$(shell uname
-m | sed
"s/ //g")
16 IB_NAME
:=OpenWrt-ImageBuilder-
$(BOARD
)-$(KERNEL
)-for-
$(PKG_OS
)-$(PKG_CPU
)
17 IB_BUILD_DIR
:=$(BUILD_DIR
)/$(IB_NAME
)
21 $(BIN_DIR
)/$(IB_NAME
).
tar.bz2
: clean
22 rm -rf
$(IB_BUILD_DIR
)
23 mkdir
-p
$(IB_BUILD_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
) $(IB_BUILD_DIR
)/staging_dir_
$(ARCH
)/bin
$(IB_BUILD_DIR
)/target
/linux
25 $(INCLUDE_DIR
) $(SCRIPT_DIR
) $(PACKAGE_DIR
) \
26 $(TOPDIR
)/rules.mk
$(TOPDIR
)/.config \
27 $(INCLUDE_DIR
)/target.mk \
28 $(TMP_DIR
)/.packageinfo \
29 $(TMP_DIR
)/.targetinfo \
32 $(CP
) $(TOOLCHAIN_DIR
)/bin
/* $(IB_BUILD_DIR
)/staging_dir_
$(ARCH
)/bin
33 $(CP
) $(TOPDIR
)/target
/linux
/* $(IB_BUILD_DIR
)/target
/linux
34 rm -rf
$(IB_BUILD_DIR
)/target
/linux
/*/patches
35 -cp
$(BUILD_DIR
)/linux-
$(KERNEL
)-$(BOARD
)/* $(IB_BUILD_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
) # don't copy subdirectories here
36 find
$(IB_BUILD_DIR
) -name .svn |
$(XARGS
) rm -rf
37 find
$(IB_BUILD_DIR
) -name CVS |
$(XARGS
) rm -rf
39 tar cfj
$@
$(IB_NAME
); \
44 compile
: $(BIN_DIR
)/$(IB_NAME
).
tar.bz2
48 rm -rf
$(IB_BUILD_DIR
) $(BIN_DIR
)/$(IB_NAME
).
tar.bz2
This page took 0.039583 seconds and 5 git commands to generate.