summaryrefslogtreecommitdiffstats
path: root/scripts/make-agl-xds.sh
blob: 5cb80485028a547f76ea20d361727769e7176822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# Get SDK path
sdk_id=$1 # first arg must be XDS_SDK_ID
shift 1
long_sdkpath=$(xds-cli sdks get $sdk_id | grep Path)
sdkpath=${long_sdkpath:4}

# Build
/opt/AGL/bin/xds-cli exec --config xds-project.conf --			\
	CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y			\
	CONFIG_AVIRT_AP_DUMMY=m						\
	CONFIG_AVIRT_AP_LOOPBACK=m					\
	make -C $sdkpath/sysroots/aarch64-agl-linux/usr/src/kernel M=$(pwd) $@
="c"># Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ########################################################################### CMAKE_MINIMUM_REQUIRED(VERSION 3.3) include(${CMAKE_CURRENT_SOURCE_DIR}/conf.d/config.cmake)