1
1
#
2
- # Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to
2
+ # Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to
3
3
# Broadcom Limited and/or its subsidiaries.
4
- #
4
+ #
5
5
# Broadcom Switch Software License
6
- #
7
- # This license governs the use of the accompanying Broadcom software. Your
8
- # use of the software indicates your acceptance of the terms and conditions
9
- # of this license. If you do not agree to the terms and conditions of this
6
+ #
7
+ # This license governs the use of the accompanying Broadcom software. Your
8
+ # use of the software indicates your acceptance of the terms and conditions
9
+ # of this license. If you do not agree to the terms and conditions of this
10
10
# license, do not use the software.
11
11
# 1. Definitions
12
12
# "Licensor" means any person or entity that distributes its Work.
13
- # "Software" means the original work of authorship made available under
13
+ # "Software" means the original work of authorship made available under
14
14
# this license.
15
- # "Work" means the Software and any additions to or derivative works of
15
+ # "Work" means the Software and any additions to or derivative works of
16
16
# the Software that are made available under this license.
17
- # The terms "reproduce," "reproduction," "derivative works," and
17
+ # The terms "reproduce," "reproduction," "derivative works," and
18
18
# "distribution" have the meaning as provided under U.S. copyright law.
19
- # Works, including the Software, are "made available" under this license
20
- # by including in or with the Work either (a) a copyright notice
21
- # referencing the applicability of this license to the Work, or (b) a copy
19
+ # Works, including the Software, are "made available" under this license
20
+ # by including in or with the Work either (a) a copyright notice
21
+ # referencing the applicability of this license to the Work, or (b) a copy
22
22
# of this license.
23
23
# 2. Grant of Copyright License
24
- # Subject to the terms and conditions of this license, each Licensor
25
- # grants to you a perpetual, worldwide, non-exclusive, and royalty-free
26
- # copyright license to reproduce, prepare derivative works of, publicly
27
- # display, publicly perform, sublicense and distribute its Work and any
24
+ # Subject to the terms and conditions of this license, each Licensor
25
+ # grants to you a perpetual, worldwide, non-exclusive, and royalty-free
26
+ # copyright license to reproduce, prepare derivative works of, publicly
27
+ # display, publicly perform, sublicense and distribute its Work and any
28
28
# resulting derivative works in any form.
29
29
# 3. Grant of Patent License
30
- # Subject to the terms and conditions of this license, each Licensor
31
- # grants to you a perpetual, worldwide, non-exclusive, and royalty-free
32
- # patent license to make, have made, use, offer to sell, sell, import, and
33
- # otherwise transfer its Work, in whole or in part. This patent license
34
- # applies only to the patent claims licensable by Licensor that would be
35
- # infringed by Licensor's Work (or portion thereof) individually and
30
+ # Subject to the terms and conditions of this license, each Licensor
31
+ # grants to you a perpetual, worldwide, non-exclusive, and royalty-free
32
+ # patent license to make, have made, use, offer to sell, sell, import, and
33
+ # otherwise transfer its Work, in whole or in part. This patent license
34
+ # applies only to the patent claims licensable by Licensor that would be
35
+ # infringed by Licensor's Work (or portion thereof) individually and
36
36
# excluding any combinations with any other materials or technology.
37
- # If you institute patent litigation against any Licensor (including a
38
- # cross-claim or counterclaim in a lawsuit) to enforce any patents that
39
- # you allege are infringed by any Work, then your patent license from such
40
- # Licensor to the Work shall terminate as of the date such litigation is
37
+ # If you institute patent litigation against any Licensor (including a
38
+ # cross-claim or counterclaim in a lawsuit) to enforce any patents that
39
+ # you allege are infringed by any Work, then your patent license from such
40
+ # Licensor to the Work shall terminate as of the date such litigation is
41
41
# filed.
42
42
# 4. Redistribution
43
- # You may reproduce or distribute the Work only if (a) you do so under
44
- # this License, (b) you include a complete copy of this License with your
45
- # distribution, and (c) you retain without modification any copyright,
43
+ # You may reproduce or distribute the Work only if (a) you do so under
44
+ # this License, (b) you include a complete copy of this License with your
45
+ # distribution, and (c) you retain without modification any copyright,
46
46
# patent, trademark, or attribution notices that are present in the Work.
47
47
# 5. Derivative Works
48
- # You may specify that additional or different terms apply to the use,
49
- # reproduction, and distribution of your derivative works of the Work
50
- # ("Your Terms") only if (a) Your Terms provide that the limitations of
51
- # Section 7 apply to your derivative works, and (b) you identify the
52
- # specific derivative works that are subject to Your Terms.
53
- # Notwithstanding Your Terms, this license (including the redistribution
48
+ # You may specify that additional or different terms apply to the use,
49
+ # reproduction, and distribution of your derivative works of the Work
50
+ # ("Your Terms") only if (a) Your Terms provide that the limitations of
51
+ # Section 7 apply to your derivative works, and (b) you identify the
52
+ # specific derivative works that are subject to Your Terms.
53
+ # Notwithstanding Your Terms, this license (including the redistribution
54
54
# requirements in Section 4) will continue to apply to the Work itself.
55
55
# 6. Trademarks
56
- # This license does not grant any rights to use any Licensor's or its
57
- # affiliates' names, logos, or trademarks, except as necessary to
56
+ # This license does not grant any rights to use any Licensor's or its
57
+ # affiliates' names, logos, or trademarks, except as necessary to
58
58
# reproduce the notices described in this license.
59
59
# 7. Limitations
60
- # Platform. The Work and any derivative works thereof may only be used, or
60
+ # Platform. The Work and any derivative works thereof may only be used, or
61
61
# intended for use, with a Broadcom switch integrated circuit.
62
- # No Reverse Engineering. You will not use the Work to disassemble,
63
- # reverse engineer, decompile, or attempt to ascertain the underlying
62
+ # No Reverse Engineering. You will not use the Work to disassemble,
63
+ # reverse engineer, decompile, or attempt to ascertain the underlying
64
64
# technology of a Broadcom switch integrated circuit.
65
65
# 8. Termination
66
- # If you violate any term of this license, then your rights under this
67
- # license (including the license grants of Sections 2 and 3) will
66
+ # If you violate any term of this license, then your rights under this
67
+ # license (including the license grants of Sections 2 and 3) will
68
68
# terminate immediately.
69
69
# 9. Disclaimer of Warranty
70
- # THE WORK IS PROVIDED "AS IS" WITHOUT WARRANTIES OR CONDITIONS OF ANY
71
- # KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OR CONDITIONS OF
72
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR
73
- # NON-INFRINGEMENT. YOU BEAR THE RISK OF UNDERTAKING ANY ACTIVITIES UNDER
74
- # THIS LICENSE. SOME STATES' CONSUMER LAWS DO NOT ALLOW EXCLUSION OF AN
70
+ # THE WORK IS PROVIDED "AS IS" WITHOUT WARRANTIES OR CONDITIONS OF ANY
71
+ # KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OR CONDITIONS OF
72
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR
73
+ # NON-INFRINGEMENT. YOU BEAR THE RISK OF UNDERTAKING ANY ACTIVITIES UNDER
74
+ # THIS LICENSE. SOME STATES' CONSUMER LAWS DO NOT ALLOW EXCLUSION OF AN
75
75
# IMPLIED WARRANTY, SO THIS DISCLAIMER MAY NOT APPLY TO YOU.
76
76
# 10. Limitation of Liability
77
- # EXCEPT AS PROHIBITED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO LEGAL
78
- # THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE
79
- # SHALL ANY LICENSOR BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,
80
- # INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF
81
- # OR RELATED TO THIS LICENSE, THE USE OR INABILITY TO USE THE WORK
82
- # (INCLUDING BUT NOT LIMITED TO LOSS OF GOODWILL, BUSINESS INTERRUPTION,
83
- # LOST PROFITS OR DATA, COMPUTER FAILURE OR MALFUNCTION, OR ANY OTHER
84
- # COMMERCIAL DAMAGES OR LOSSES), EVEN IF THE LICENSOR HAS BEEN ADVISED OF
77
+ # EXCEPT AS PROHIBITED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO LEGAL
78
+ # THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE
79
+ # SHALL ANY LICENSOR BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,
80
+ # INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF
81
+ # OR RELATED TO THIS LICENSE, THE USE OR INABILITY TO USE THE WORK
82
+ # (INCLUDING BUT NOT LIMITED TO LOSS OF GOODWILL, BUSINESS INTERRUPTION,
83
+ # LOST PROFITS OR DATA, COMPUTER FAILURE OR MALFUNCTION, OR ANY OTHER
84
+ # COMMERCIAL DAMAGES OR LOSSES), EVEN IF THE LICENSOR HAS BEEN ADVISED OF
85
85
# THE POSSIBILITY OF SUCH DAMAGES.
86
- #
87
- #
86
+ #
87
+ #
88
88
#
89
89
# Tool chain and platform settings for cross-compiling the SDK for the
90
90
# Broadcom XLR CPU board.
99
99
# Broadcom settings for TOOLCHAIN_DIR and KDIR
100
100
-include $(SDK ) /INTERNAL/appl/make/xlr_linux_broadcom.mk
101
101
102
- # Too chain directories
102
+ # Tool chain directories
103
103
TOOLCHAIN_BIN_DIR = $(TOOLCHAIN_DIR ) /bin
104
104
LIBRARY_PATH = $(TOOLCHAIN_DIR ) /lib:$(TOOLCHAIN_DIR ) /lib64
105
- TARGET_ARCHITECTURE = x86_64-fedora-linux-gnu
105
+ TARGET_ARCHITECTURE ? = x86_64-fedora-linux-gnu
106
106
107
107
# Add tools to system PATH
108
108
TOOL_PATH := $(TOOLCHAIN_BIN_DIR ) :$(TOOL_PATH )
@@ -112,12 +112,12 @@ override PATH := $(TOOL_PATH):$(PATH)
112
112
export TOOLCHAIN_BIN_DIR LIBRARY_PATH
113
113
114
114
# Tools prefix
115
- CROSS_COMPILE = $(TARGET_ARCHITECTURE ) -
115
+ CROSS_COMPILE ? = $(TARGET_ARCHITECTURE ) -
116
116
117
117
# Build tools
118
- CC = $(CROSS_COMPILE ) gcc
119
- LD = $(CROSS_COMPILE ) ld
120
- AR = $(CROSS_COMPILE ) ar
118
+ CC ? = $(CROSS_COMPILE ) gcc
119
+ LD ? = $(CROSS_COMPILE ) ld
120
+ AR ? = $(CROSS_COMPILE ) ar
121
121
122
122
# Architecture is required for building kernel modules
123
123
export ARCH =x86_64
0 commit comments