diff options
Diffstat (limited to 'meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch')
-rw-r--r-- | meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch | 175 |
1 files changed, 175 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch b/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch new file mode 100644 index 000000000..b7d9ad5bb --- /dev/null +++ b/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch | |||
@@ -0,0 +1,175 @@ | |||
1 | From 177abf68e5ac5f82c6261af63528f8b6160bca0f Mon Sep 17 00:00:00 2001 | ||
2 | From: Alex Kiernan <alex.kiernan@gmail.com> | ||
3 | Date: Tue, 6 Dec 2022 13:28:31 +0000 | ||
4 | Subject: [PATCH] make: Add top-level Makefile | ||
5 | |||
6 | Simple top level Makefile that just delegates to mDNSPosix. | ||
7 | |||
8 | Upstream-Status: Inappropriate [oe-specific] | ||
9 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | ||
10 | --- | ||
11 | Makefile | 154 +------------------------------------------------------ | ||
12 | 1 file changed, 2 insertions(+), 152 deletions(-) | ||
13 | |||
14 | diff --git a/Makefile b/Makefile | ||
15 | index 8b6fa77..feb6ac6 100644 | ||
16 | --- a/Makefile | ||
17 | +++ b/Makefile | ||
18 | @@ -1,152 +1,2 @@ | ||
19 | -# | ||
20 | -# Copyright (c) 2003-2018 Apple Inc. All rights reserved. | ||
21 | -# | ||
22 | -# Top level makefile for Build & Integration (B&I). | ||
23 | -# | ||
24 | -# This file is used to facilitate checking the mDNSResponder project directly from git and submitting to B&I at Apple. | ||
25 | -# | ||
26 | -# The various platform directories contain makefiles or projects specific to that platform. | ||
27 | -# | ||
28 | -# B&I builds must respect the following target: | ||
29 | -# install: | ||
30 | -# installsrc: | ||
31 | -# installhdrs: | ||
32 | -# installapi: | ||
33 | -# clean: | ||
34 | -# | ||
35 | - | ||
36 | -include $(MAKEFILEPATH)/pb_makefiles/platform.make | ||
37 | - | ||
38 | -MVERS = "mDNSResponder-1310.140.1" | ||
39 | - | ||
40 | -VER = | ||
41 | -ifneq ($(strip $(GCC_VERSION)),) | ||
42 | - VER = -- GCC_VERSION=$(GCC_VERSION) | ||
43 | -endif | ||
44 | -echo "VER = $(VER)" | ||
45 | - | ||
46 | -projectdir := $(SRCROOT)/mDNSMacOSX | ||
47 | -buildsettings := OBJROOT=$(OBJROOT) SYMROOT=$(SYMROOT) DSTROOT=$(DSTROOT) MVERS=$(MVERS) SDKROOT=$(SDKROOT) | ||
48 | - | ||
49 | -.PHONY: install installSome installEmpty installExtras SystemLibraries installhdrs installapi installsrc java clean | ||
50 | - | ||
51 | -# Sanitizer support | ||
52 | -# Disable Sanitizer instrumentation in LibSystem contributors. See rdar://problem/29952210. | ||
53 | -UNSUPPORTED_SANITIZER_PROJECTS := mDNSResponderSystemLibraries mDNSResponderSystemLibraries_Sim | ||
54 | -PROJECT_SUPPORTS_SANITIZERS := 1 | ||
55 | -ifneq ($(words $(filter $(UNSUPPORTED_SANITIZER_PROJECTS), $(RC_ProjectName))), 0) | ||
56 | - PROJECT_SUPPORTS_SANITIZERS := 0 | ||
57 | -endif | ||
58 | -ifeq ($(RC_ENABLE_ADDRESS_SANITIZATION),1) | ||
59 | - ifeq ($(PROJECT_SUPPORTS_SANITIZERS),1) | ||
60 | - $(info Enabling Address Sanitizer) | ||
61 | - buildsettings += -enableAddressSanitizer YES | ||
62 | - else | ||
63 | - $(warning WARNING: Address Sanitizer not supported for project $(RC_ProjectName)) | ||
64 | - endif | ||
65 | -endif | ||
66 | -ifeq ($(RC_ENABLE_THREAD_SANITIZATION),1) | ||
67 | - ifeq ($(PROJECT_SUPPORTS_SANITIZERS),1) | ||
68 | - $(info Enabling Thread Sanitizer) | ||
69 | - buildsettings += -enableThreadSanitizer YES | ||
70 | - else | ||
71 | - $(warning WARNING: Thread Sanitizer not supported for project $(RC_ProjectName)) | ||
72 | - endif | ||
73 | -endif | ||
74 | -ifeq ($(RC_ENABLE_UNDEFINED_BEHAVIOR_SANITIZATION),1) | ||
75 | - ifeq ($(PROJECT_SUPPORTS_SANITIZERS),1) | ||
76 | - $(info Enabling Undefined Behavior Sanitizer) | ||
77 | - buildsettings += -enableUndefinedBehaviorSanitizer YES | ||
78 | - else | ||
79 | - $(warning WARNING: Undefined Behavior Sanitizer not supported for project $(RC_ProjectName)) | ||
80 | - endif | ||
81 | -endif | ||
82 | - | ||
83 | -# B&I install build targets | ||
84 | -# | ||
85 | -# For the mDNSResponder build alias, the make target used by B&I depends on the platform: | ||
86 | -# | ||
87 | -# Platform Make Target | ||
88 | -# -------- ----------- | ||
89 | -# osx install | ||
90 | -# ios installSome | ||
91 | -# atv installSome | ||
92 | -# watch installSome | ||
93 | -# | ||
94 | -# For the mDNSResponderSystemLibraries and mDNSResponderSystemLibraries_sim build aliases, B&I uses the SystemLibraries | ||
95 | -# target for all platforms. | ||
96 | - | ||
97 | -install: | ||
98 | -ifeq ($(RC_ProjectName), mDNSResponderServices) | ||
99 | -ifeq ($(RC_PROJECT_COMPILATION_PLATFORM), osx) | ||
100 | - cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Services-macOS' $(VER) | ||
101 | -else | ||
102 | - cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Services' $(VER) | ||
103 | -endif | ||
104 | -else ifeq ($(RC_ProjectName), mDNSResponderServices_Sim) | ||
105 | - mkdir -p $(DSTROOT)/AppleInternal | ||
106 | -else | ||
107 | - cd '$(projectdir)'; xcodebuild install $(buildsettings) $(VER) | ||
108 | -endif | ||
109 | - | ||
110 | -installSome: | ||
111 | - cd '$(projectdir)'; xcodebuild install $(buildsettings) $(VER) | ||
112 | - | ||
113 | -installEmpty: | ||
114 | - mkdir -p $(DSTROOT)/AppleInternal | ||
115 | - | ||
116 | -installExtras: | ||
117 | -ifeq ($(RC_PROJECT_COMPILATION_PLATFORM), osx) | ||
118 | - cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Extras-macOS' $(VER) | ||
119 | -else ifeq ($(RC_PROJECT_COMPILATION_PLATFORM), ios) | ||
120 | - cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Extras-iOS' $(VER) | ||
121 | -else ifeq ($(RC_PROJECT_COMPILATION_PLATFORM), atv) | ||
122 | - cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Extras-tvOS' $(VER) | ||
123 | -else | ||
124 | - cd '$(projectdir)'; xcodebuild install $(buildsettings) -target 'Build Extras' $(VER) | ||
125 | -endif | ||
126 | - | ||
127 | -SystemLibraries: | ||
128 | - cd '$(projectdir)'; xcodebuild install $(buildsettings) -target SystemLibraries $(VER) | ||
129 | - | ||
130 | -# B&I installhdrs build targets | ||
131 | - | ||
132 | -installhdrs:: | ||
133 | -ifeq ($(RC_ProjectName), mDNSResponderServices) | ||
134 | -ifeq ($(RC_PROJECT_COMPILATION_PLATFORM), osx) | ||
135 | - cd '$(projectdir)'; xcodebuild installhdrs $(buildsettings) -target 'Build Services-macOS' $(VER) | ||
136 | -else | ||
137 | - cd '$(projectdir)'; xcodebuild installhdrs $(buildsettings) -target 'Build Services' $(VER) | ||
138 | -endif | ||
139 | -else ifeq ($(RC_ProjectName), mDNSResponderServices_Sim) | ||
140 | - mkdir -p $(DSTROOT)/AppleInternal | ||
141 | -else ifneq ($(findstring SystemLibraries,$(RC_ProjectName)),) | ||
142 | - cd '$(projectdir)'; xcodebuild installhdrs $(buildsettings) -target SystemLibraries $(VER) | ||
143 | -endif | ||
144 | - | ||
145 | -# B&I installapi build targets | ||
146 | - | ||
147 | -installapi: | ||
148 | -ifeq ($(RC_ProjectName), mDNSResponderServices) | ||
149 | -ifeq ($(RC_PROJECT_COMPILATION_PLATFORM), osx) | ||
150 | - cd '$(projectdir)'; xcodebuild installapi $(buildsettings) -target 'Build Services-macOS' $(VER) | ||
151 | -else | ||
152 | - cd '$(projectdir)'; xcodebuild installapi $(buildsettings) -target 'Build Services' $(VER) | ||
153 | -endif | ||
154 | -else ifeq ($(RC_ProjectName), mDNSResponderServices_Sim) | ||
155 | - mkdir -p $(DSTROOT)/AppleInternal | ||
156 | -else ifneq ($(findstring SystemLibraries,$(RC_ProjectName)),) | ||
157 | - cd '$(projectdir)'; xcodebuild installapi $(buildsettings) -target SystemLibrariesDynamic $(VER) | ||
158 | -endif | ||
159 | - | ||
160 | -# Misc. targets | ||
161 | - | ||
162 | -installsrc: | ||
163 | - ditto . '$(SRCROOT)' | ||
164 | - rm -rf '$(SRCROOT)/mDNSWindows' '$(SRCROOT)/Clients/FirefoxExtension' | ||
165 | - | ||
166 | -java: | ||
167 | - cd '$(projectdir)'; xcodebuild install $(buildsettings) -target libjdns_sd.jnilib $(VER) | ||
168 | - | ||
169 | -clean:: | ||
170 | - echo clean | ||
171 | +all clean: | ||
172 | + cd mDNSPosix && $(MAKE) $@ | ||
173 | -- | ||
174 | 2.38.1 | ||
175 | |||