source: branches/contrib/debian/debian.mk @ 666

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

Enabln the kernel build targets in the standard configuration. The
makefile has been present for a while, now include it so the targets can
be invoked in an unmodified environment.

File size: 1.7 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
18DEBIAN_BUILD_METHOD:=sudo
19SUROOT:=sudo
20CHROOT:=chroot
21
22# add - onto this? (consistency between these macros)
23chroot_root=$(SUROOT) $(CHROOT) $(1)
24# add -c onto chroot_user? (consistency between these macros)
25chroot_user=$(SUROOT) $(CHROOT) $(1) su - $(USER)
26
27ifeq (0,1)
28# hopefully something along these lines will work to make use of fakeroot...
29# the main issue is: http://bugs.debian.org/650234
30DEBIAN_BUILD_METHOD:=fake
31FAKEROOT_DB:=$(DEBIAN_BUILD_DIR).fakeroot.perms
32
33SUROOT:=fakeroot -i $(FAKEROOT_DB) -s $(FAKEROOT_DB)
34CHROOT:=fakechroot chroot
35
36chroot_root=$(SUROOT) $(CHROOT) $(1)
37chroot_user=$(CHROOT) $(1)
38endif
39
40export SUROOT CHROOT
41
42include $(TOPDIR)/debian/buildenv/debian.mk
43include $(TOPDIR)/debian/linux-image/linux-image.mk
44include $(TOPDIR)/debian/package-build/package-build.mk
45include $(TOPDIR)/debian/package-host/package-host.mk
46include $(TOPDIR)/debian/rootfs/debian.mk
47
48debian/all: 
49
50debian/clean: debian/package-build/clean debian/package-host/clean debian/buildenv/clean debian/rootfs/clean
51
52.PHONY: debian/all \
53        debian/clean
54
Note: See TracBrowser for help on using the repository browser.