/usr/share/kernel-package/rules is in kernel-package 13.018+nmu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | #! /usr/bin/make -f
############################ -*- Mode: Makefile -*- ###########################
## debian.rules ---
## Author : Manoj Srivastava ( srivasta@pilgrim.umass.edu )
## Created On : Sat Apr 27 06:36:31 1996
## Created On Node : melkor.pilgrim.umass.edu
## Last Modified By : Manoj Srivastava
## Last Modified On : Thu Oct 9 14:17:29 2008
## Last Machine Used: anzu.internal.golden-gryphon.com
## Update Count : 974
## Status : Unknown, Use with caution!
## HISTORY :
## Description :
## arch-tag: aa70d4e5-79bf-405c-95ec-5fa9f7ae7b69
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
###############################################################################
# The version of kernel-package this belongs to
kpkg_version := 13.018+nmu1
CROSS_COMPILE ?=
ifneq ($(CROSS_COMPILE),-)
OBJCOPY = $(CROSS_COMPILE)objcopy
OBJDUMP = $(CROSS_COMPILE)objdump
else
OBJCOPY = objcopy
OBJDUMP = objdump
endif
export OBJCOPY OBJDUMP CROSS_COMPILE
# Where the package libs are stored
LIBLOC :=/usr/share/kernel-package
define which_debdir
DEBDIR=$(shell if test -f ./debian/ruleset/kernel_version.mk; then echo ./debian; \
else echo $(LIBLOC); fi)
endef
define deb_rule
$(eval $(which_debdir))
run_command=$(MAKE) -f $(DEBDIR)/rules
ifeq ($(strip $(int_am_root)),)
root_run_command=$(ROOT_CMD) $(MAKE) -f $(DEBDIR)/rules
else
root_run_command=$(MAKE) -f $(DEBDIR)/rules
endif
endef
# determine the architecture for package building
$(eval $(which_debdir))
include $(DEBDIR)/ruleset/common/archvars.mk
# Set variables with information extracted from control and changelog files
include $(DEBDIR)/ruleset/common/pkgvars.mk
# Install commands
include $(DEBDIR)/ruleset/common/install_cmds.mk
# we use debconf
include $(DEBDIR)/ruleset/common/debconf.mk
# Do the local variable setting here (includes kernel-pkg.conf config files)
include $(DEBDIR)/ruleset/local-vars.mk
# export variables
export root_cmd FLAVOUR INT_SUBARCH APPEND_TO_VERSION UNSIGN_CHANGELOG \
UNSIGN_SOURCE ROOT_CMD MODULE_LOC EXTRAVERSION ALL_PATCH_DIR \
ALL_PATCH_APPLY ALL_PATCH_UNPATCH DIR_PATCH_UNPATCH \
DIR_PATCH_APPLY VERSIONED_PATCH_DIR VERSIONED_ALL_PATCH_UNPATCH \
VERSIONED_ALL_PATCH_APPLY VERSIONED_DIR_PATCH_UNPATCH \
VERSIONED_DIR_PATCH_APPLY KPKG_SELECTED_MODULES CONCURRENCY_LEVEL\
kpkg_version
all:
$(eval $(which_debdir))
@echo nothing to be done.
$(eval $(which_debdir))
include $(DEBDIR)/ruleset/common/targets.mk
include $(DEBDIR)/ruleset/local.mk
test:
$(eval $(which_debdir))
echo version: $(version)
echo KERNELRELEASE: $(KERNELRELEASE)
echo KPKG_ARCH: $(KPKG_ARCH)
echo $(DEB_BUILD_ARCH)
echo $(DEB_BUILD_GNU_CPU)
echo $(DEB_BUILD_GNU_TYPE)
echo $(DEB_HOST_ARCH)
echo $(DEB_HOST_GNU_CPU)
echo $(DEB_HOST_GNU_SYSTEM)
echo $(DEB_HOST_GNU_TYPE)
echo $(DEB_BUILD_GNU_SYSTEM)
#Local variables:
#mode: makefile
#End:
|