blob: 13eebfe4e2c56f364cbd38a92969263ed33c94a2 [file] [log] [blame]
Chris Sosa6039a402012-03-26 15:13:40 -07001# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5all: devserver
6
7devserver:
8 @echo "Preparing devserver modules."
9
10install:
11 mkdir -p "${DESTDIR}/usr/bin"
12 mkdir -p "${DESTDIR}/usr/lib/devserver"
Richard Barnette79f629b2018-06-07 16:12:20 -070013 mkdir -p "${DESTDIR}/usr/lib/devserver/dut-scripts"
Chris Sosa6039a402012-03-26 15:13:40 -070014 install -m 0755 host/start_devserver "${DESTDIR}/usr/bin"
Mike Frysingera7f08bc2019-08-27 15:16:33 -040015 install -m 0755 devserver.py strip_package.py "${DESTDIR}/usr/lib/devserver"
Chris Sosa6039a402012-03-26 15:13:40 -070016 install -m 0644 \
Dan Shi72b16132015-10-08 12:10:33 -070017 android_build.py \
Chris Sosa507cee02013-02-17 19:29:41 -080018 artifact_info.py \
Chris Sosa6039a402012-03-26 15:13:40 -070019 autoupdate.py \
Chris Sosa52148582012-11-15 15:35:58 -080020 autoupdate_lib.py \
Gilad Arnoldc65330c2012-09-20 15:17:48 -070021 build_artifact.py \
22 build_util.py \
23 builder.py \
Gilad Arnold11fbef42014-02-10 11:04:13 -080024 cherrypy_ext.py \
Gilad Arnoldc65330c2012-09-20 15:17:48 -070025 common_util.py \
xixuan52c2fba2016-05-20 17:02:48 -070026 cros_update.py \
27 cros_update_logging.py \
28 cros_update_progress.py \
joychen3cb228e2013-06-12 12:13:13 -070029 devserver_constants.py \
Congbin Guo4132a272019-08-20 12:32:14 -070030 devserver_exceptions.py \
Chris Sosa6039a402012-03-26 15:13:40 -070031 downloader.py \
Keith Haddoweb8e6612019-08-20 15:14:19 -070032 health_checker.py \
Gilad Arnoldc65330c2012-09-20 15:17:48 -070033 log_util.py \
Dan Shi4eab38a2015-12-01 00:09:08 -080034 retry.py \
xixuancf58dd32016-08-24 13:57:06 -070035 setup_chromite.py \
joychen3cb228e2013-06-12 12:13:13 -070036 xbuddy.py \
joychen562699a2013-08-13 15:22:14 -070037 xbuddy_config.ini\
Chris Sosa6039a402012-03-26 15:13:40 -070038 "${DESTDIR}/usr/lib/devserver"
39
Chris Sosa5b8b5eb2012-03-27 11:15:27 -070040 install -m 0755 stateful_update "${DESTDIR}/usr/bin"
41
Richard Barnette79f629b2018-06-07 16:12:20 -070042 # The content in /var/lib is only meaningful for installation in
43 # a chroot, not for Moblab.
Chris Sosa6039a402012-03-26 15:13:40 -070044 mkdir -m0777 -p "${DESTDIR}/var/lib/devserver"
45 mkdir -m0777 -p "${DESTDIR}/var/lib/devserver/static"
46 mkdir -m0777 -p "${DESTDIR}/var/lib/devserver/static/cache"
Richard Barnette79f629b2018-06-07 16:12:20 -070047
48 # The dut-scripts content is only used when installed on Moblab.
49 # Mode 0644 for these files because they're for serving to DUTs
50 # over HTTP, not for local execution.
51 install -m 0644 stateful_update \
52 "${DESTDIR}/usr/lib/devserver/dut-scripts"
53 install -m 0644 quick-provision/quick-provision \
54 "${DESTDIR}/usr/lib/devserver/dut-scripts"
Chris Sosa6039a402012-03-26 15:13:40 -070055
56.PHONY: all devserver install