source: trunk/arch/octeon/erlite/arch-deliver.mk @ 903

Last change on this file since 903 was 903, checked in by amain, 3 years ago

native: octeon erlite install

File size: 3.1 KB
RevLine 
[903]1# DebWrt - Debian on Embedded devices
2#
3# Copyright (C) 2017 Johan van Zoomeren <amain@debwrt.net>
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18-include $(SRC_DIR)/install/version.info
19
20openwrt/deliver: \
21  openwrt/deliver/show \
22  openwrt/deliver/clean \
23  openwrt/deliver/image \
24  openwrt/deliver/kernel-headers \
25  openwrt/deliver/kernel-modules \
26  openwrt/deliver/config\
27  openwrt/deliver/install-sh
28  # end openwrt/deliver:
29
30openwrt/deliver/show:
31        @echo
32        @echo OPENWRT_LINUX_VERSION=$(OPENWRT_LINUX_VERSION)
33        @echo OPENWRT_LINUX_UNAME_VERSION=$(OPENWRT_LINUX_UNAME_VERSION)
34        @echo
35
36openwrt/deliver/image:
37        mkdir -p $(INSTALL_DIR_OPENWRT)
38        cp $(SRC_DIR)/install/vmlinux.64 $(INSTALL_DIR_OPENWRT)/$(TARGET_IMAGE_NAME_64)
39        md5sum $(INSTALL_DIR_OPENWRT)/$(TARGET_IMAGE_NAME_64) \
40          | awk '{print $$1}' \
41          >$(INSTALL_DIR_OPENWRT)/$(TARGET_IMAGE_NAME_64).md5
42
43openwrt/deliver/kernel-modules:
44        rm -rf $(INSTALL_DIR_OPENWRT_MODULES)
45        mkdir -p $(INSTALL_DIR_OPENWRT_MODULES)
46        cp -ra $(SRC_DIR)/install/lib $(INSTALL_DIR_OPENWRT_MODULES)
47        rm -f $(INSTALL_DIR_OPENWRT_MODULES)/lib/modules/$(OPENWRT_LINUX_UNAME_VERSION)/build
48        rm -f $(INSTALL_DIR_OPENWRT_MODULES)/lib/modules/$(OPENWRT_LINUX_UNAME_VERSION)/source
49        PATH="/sbin:/bin:/usr/sbin:/usr/bin" depmod -a -b $(INSTALL_DIR_OPENWRT_MODULES) $(OPENWRT_LINUX_UNAME_VERSION)
50        echo $(TARGET) >$(INSTALL_DIR_OPENWRT_MODULES)/lib/modules/debwrt.target
51        echo $(SUB_TARGET) >$(INSTALL_DIR_OPENWRT_MODULES)/lib/modules/debwrt.subtarget
52        tar czf $(INSTALL_DIR_OPENWRT)/$(MODULES_TAR_GZ) -C $(INSTALL_DIR_OPENWRT_MODULES) .
53
54openwrt/deliver/kernel-headers:
55        rm -rf $(INSTALL_DIR_OPENWRT_HEADERS)
56        mkdir -p $(INSTALL_DIR_OPENWRT_HEADERS)
57        mkdir -p $(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-$(OPENWRT_LINUX_UNAME_VERSION)
58        cp -ra $(SRC_DIR)/install/include $(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-$(OPENWRT_LINUX_UNAME_VERSION)
59        cp $(SRC_DIR)/kernel/.config $(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-$(OPENWRT_LINUX_UNAME_VERSION)
60        tar czf $(INSTALL_DIR_OPENWRT)/$(HEADERS_TAR_GZ) -C $(INSTALL_DIR_OPENWRT_HEADERS) .
61
62openwrt/deliver/config:
63        cp $(TOPDIR)/.config $(INSTALL_DIR_OPENWRT)/config-debwrt
64        cp $(SRC_DIR)/kernel/.config $(INSTALL_DIR_OPENWRT)/config-kernel-$(OPENWRT_LINUX_VERSION)
65        echo "$(UBNT_VERSION)" > $(INSTALL_DIR_OPENWRT)/ubiquiti-version
66        $(SCRIPT_GET_SVN_REVISION) $(TOPDIR) > $(INSTALL_DIR_OPENWRT)/debwrt-svn-revision
67
68openwrt/deliver/install-sh:
69        cp openwrt/install.sh $(INSTALL_DIR_OPENWRT)
70
71openwrt/deliver/clean:
72        rm -rf $(INSTALL_DIR_OPENWRT)
73
Note: See TracBrowser for help on using the repository browser.