source: branches/contrib/debian/package-host/debwrt-kernel-headers/build.mk @ 635

Last change on this file since 635 was 635, checked in by ehem, 6 years ago

Get these include lines straightened out. The entire make system for
DebWRT is always based on being in the root directory, never the
subdirectories.

File size: 2.2 KB
Line 
1# DebWrt - Debian on Embedded devices
2#
3# Copyright (C) 2010 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
19include debian/package-host/shared.mk
20
21
22debian/package-host/debwrt-kernel-headers/all: openwrt/deliver/check
23
24debian/package-host/debwrt-kernel-headers/deliver: debian/package-host/debwrt-kernel-headers/build
25        mkdir -p $(INSTALL_DIR_DEBIAN_PACKAGES)
26        cp -rav $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers/*.deb $(INSTALL_DIR_DEBIAN_PACKAGES)
27        #cp -rav $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers/*.tar.gz $(INSTALL_DIR_DEBIAN_PACKAGES)
28        cp -rav $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers/*.changes $(INSTALL_DIR_DEBIAN_PACKAGES)
29        #cp -rav $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers/*.dsc $(INSTALL_DIR_DEBIAN_PACKAGES)
30        touch $@
31
32debian/package-host/debwrt-kernel-headers/prepare: debian/buildenv/create
33
34debian/package-host/debwrt-kernel-headers/prepare:
35        rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers
36        mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers
37        cp -ar $(DEBIAN_PACKAGES_DIR)/debwrt-kernel-headers/debian   $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers
38        cp -ar $(DEBIAN_PACKAGES_DIR)/debwrt-kernel-headers/build.sh  $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers
39        if [ -f $(INSTALL_DIR)/$(HEADERS_TAR_GZ) ]; then \
40                cp $(INSTALL_DIR)/$(HEADERS_TAR_GZ) $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers; \
41        else \
42                echo "E: please build OpenWrt first - we will be needing the kernel headers" ;\
43                echo "E: Can't locate $(INSTALL_DIR)/$(HEADERS_TAR_GZ)" ;\
44                exit 1 ;\
45        fi
46        touch $@
47
48debian/package-host/debwrt-kernel-headers/all: debian/package-host/debwrt-kernel-headers/chrootinstall
49
Note: See TracBrowser for help on using the repository browser.