Skip to content

Commit

Permalink
delta-agc032a: revise files to run redfish and ptest
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzoie committed Aug 5, 2021
1 parent 32315f8 commit 5d971f3
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 750 deletions.
1 change: 1 addition & 0 deletions meta-delta/meta-agc032a/conf/machine/agc032a.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \
kernel-module-i2c \
"

MACHINE_FEATURES += "compute-rest"
SERIAL_CONSOLES += "115200;ttyS4"
EXTRA_IMAGE_FEATURES_append = " image-meta "
FW_ENV_CONFIG_FILE = "fw_env.config.64k"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
PTEST_ENABLED="0"
# Copyright 2014-present Facebook. All Rights Reserved.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in a file named COPYING; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI += "file://aggregate-sensor-conf.json \
"

Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,5 @@ IMAGE_INSTALL += " \
weutil-dhcp-id \
"

IMAGE_INSTALL_remove += "libaggregate-sensor-ptest"

SERIAL_CONSOLES += "115200;ttyS4"
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/usr/bin/env python
#
# Copyright 2014-present Facebook. All Rights Reserved.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in a file named COPYING; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA
#

import os

from aiohttp.web import Application
from compute_rest_shim import RestShim
from node_bios import (
get_node_bios,
get_node_bios_boot_order_trunk,
get_node_bios_postcode_trunk,
get_node_bios_plat_info_trunk,
get_node_bios_boot_mode,
get_node_bios_clear_cmos,
get_node_bios_force_boot_setup,
get_node_bios_boot_order,
)
from node_bmc import get_node_bmc
from node_config import get_node_config
from node_fans import get_node_fans
from node_fruid import get_node_fruid
from node_logs import get_node_logs
from node_mezz import get_node_mezz
from node_sensors import get_node_sensors
from node_server import get_node_server
from node_spb import get_node_spb
from rest_pal_legacy import pal_is_fru_prsnt, pal_get_num_slots

# Initialize Platform specific Resource Tree
def setup_board_routes(app: Application, write_enabled: bool):
pass
111 changes: 0 additions & 111 deletions meta-delta/meta-agc032a/recipes-utils/rest-api/files/plat_tree.py

This file was deleted.

0 comments on commit 5d971f3

Please sign in to comment.