]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/strip
suricata: Change midstream policy to "pass-flow"
[ipfire-2.x.git] / lfs / strip
CommitLineData
edd536b6 1###############################################################################
edd536b6 2# #
70df8302 3# IPFire.org - A linux based firewall #
bc38ca3b 4# Copyright (C) 2007-2022 IPFire Team <info@ipfire.org> #
70df8302
MT
5# #
6# This program is free software: you can redistribute it and/or modify #
edd536b6 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
edd536b6
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
edd536b6
MT
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
edd536b6
MT
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
27VER = ipfire
28
29THISAPP = strip
30TARGET = $(DIR_INFO)/$(THISAPP)
31
32###############################################################################
33# Top-level Rules
34###############################################################################
35
36install : $(TARGET)
37
38check :
39
40download :
41
9a7e4d85 42b2 :
edd536b6
MT
43
44###############################################################################
45# Installation Details
46###############################################################################
47
48$(TARGET) :
19054331
MT
49ifeq "$(TOOLCHAIN)" "1"
50 # Strip everything in the toolchain
d79715db
MT
51 $(DIR_SRC)/src/stripper $(TOOLS_DIR) \
52 --strip="$(TOOLS_DIR)/$(CROSSTARGET)/bin/strip" \
53 --ignore-errors \
54 --exclude=$(TOOLS_DIR)/$(CROSSTARGET)
19054331 55else
1580ba11
MT
56 # Don't strip VDR binaries, because they use a weird plugin system
57 # which does not work when unneeded symbols get stripped from
58 # /usr/sbin/vdr.
19054331 59 $(DIR_SRC)/src/stripper / \
a9fd8519 60 --exclude=$(TOOLS_DIR) \
1432531a 61 --exclude=$(QEMU_TARGET_HELPER) \
bc38ca3b 62 --exclude=/lib/firmware/qcom/sc8280xp/LENOVO/21BX \
a9fd8519 63 --exclude=/tmp \
bc38ca3b 64 --exclude=/usr/lib/go \
a9fd8519
MT
65 --exclude=/usr/lib/vdr \
66 --exclude=/usr/sbin/vdr \
16b6a6fd
AF
67 --exclude=/usr/bin/cargo \
68 --exclude=/usr/bin/rustdoc \
69 --exclude=/usr/bin/rustc \
70 --exclude=/usr/libexec/rust-analyzer-proc-macro-srv \
71 --exclude=/usr/libexec/cargo-credential-1password \
bc38ca3b
PM
72 --exclude=/usr/src \
73 --exclude=/var/tmp
19054331 74endif