Ignore:
Timestamp:
Feb 2, 2010, 12:22:21 AM (13 years ago)
Author:
amain
Message:

Add OpenWrt checkout, patch and menuconfig.
Add general support for shell scripts and make functions
Set DebWrt RELEASE and REVISION

Location:
debwrt/trunk/openwrt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • debwrt/trunk/openwrt

    • Property svn:ignore set to
      checkout
      patch
  • debwrt/trunk/openwrt/openwrt.mk

    r1 r2  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
     18OPENWRT_PATCHES_DIR=$(TOPDIR)/openwrt/patches
    1819
     20openwrt/all: openwrt/deliver
     21openwrt/deliver: openwrt/build
     22openwrt/build: openwrt/prepare
     23openwrt/prepare: openwrt/checkout openwrt/patch openwrt/merge-config openwrt/link-download
     24openwrt/merge-config: openwrt/checkout openwrt/patch
     25
     26openwrt/link-download: openwrt/checkout
     27        cd $(OPENWRT_BUILD_DIR) && if [ -d $(OPENWRT_DOWNLOAD_DIR) -a ! -e dl ]; then ln -snf $(OPENWRT_DOWNLOAD_DIR) dl; fi
     28
     29openwrt/patch: openwrt/checkout
     30        patch -d $(OPENWRT_BUILD_DIR) -p 0 -N < $(OPENWRT_PATCHES_DIR)/001_disable_all_openwrt_packages
     31        patch -d $(OPENWRT_BUILD_DIR) -p 0 -N < $(OPENWRT_PATCHES_DIR)/002_install_kernel_modules_and_merge_debwrt_config
     32        #patch -d $(OPENWRT_BUILD_DIR) -p 0 -N < $(OPENWRT_PATCHES_DIR)/003_set_kernel_version
     33        patch -d $(OPENWRT_BUILD_DIR) -p 0 -N < $(OPENWRT_PATCHES_DIR)/004_save_environment_variables
     34        touch $@
     35
     36openwrt/checkout:
     37        rm -rf $(OPENWRT_BUILD_DIR)
     38        mkdir -p $(OPENWRT_BUILD_DIR)
     39ifeq ($(IS_OPENWRT_TRUNK),y)
     40        cd $(OPENWRT_BUILD_DIR) && svn co svn://svn.openwrt.org/openwrt/trunk/ .
     41else
     42        cd $(OPENWRT_BUILD_DIR) && svn co -r $(OPENWRT_REVISION) svn://svn.openwrt.org/openwrt/trunk/ .
     43endif
     44        touch $@
     45
     46openwrt/menuconfig: openwrt/prepare
     47        $(SCRIPT_CLEAN_EXEC) $(MAKE) -C $(OPENWRT_BUILD_DIR) menuconfig
     48
     49openwrt/clean:
     50        rm -rf $(OPENWRT_BUILD_DIR)
     51        rm -f openwrt/checkout
     52        rm -f openwrt/patch
     53
Note: See TracChangeset for help on using the changeset viewer.