diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-08-31 06:25:51 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-09-06 07:44:12 -0400 |
commit | ff075f6ee795a590b244d70a90cc312ba1f2d83d (patch) | |
tree | a617790bdbfdeef960665ba0242e1f0c93e5301a /meta-phosphor/common/recipes-phosphor/webui/phosphor-webui.bb | |
parent | 3e4da38c127bb7e7641adc2fc41f4c33744cb918 (diff) | |
download | talos-openbmc-ff075f6ee795a590b244d70a90cc312ba1f2d83d.tar.gz talos-openbmc-ff075f6ee795a590b244d70a90cc312ba1f2d83d.zip |
meta-phosphor: Move layer content from common/
Adopt a more conventional directory hierarchy. meta-phosphor is still
a _long_ way from suitable for hosting on yoctoproject.org but things
like this don't help.
(From meta-phosphor rev: 471cfcefa74b8c7ceb704cb670e6d915cf27c63b)
Change-Id: I3f106b2f6cdc6cec734be28a6090800546f362eb
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/webui/phosphor-webui.bb')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/webui/phosphor-webui.bb | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/webui/phosphor-webui.bb b/meta-phosphor/common/recipes-phosphor/webui/phosphor-webui.bb deleted file mode 100644 index 5ec201f63..000000000 --- a/meta-phosphor/common/recipes-phosphor/webui/phosphor-webui.bb +++ /dev/null @@ -1,45 +0,0 @@ -# This recipe requires online access to build, as it uses NPM for dependency -# management and resolution. - -LICENSE = "Apache-2.0" -SRC_URI = "git://github.com/openbmc/phosphor-webui.git" -LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" -SRCREV = "e364faa0314c8c98a31260bf69df78a104b106a1" -S = "${WORKDIR}/git" - -DEPENDS_prepend = "nodejs-native " - -# allarch is required because the files this recipe produces (html and -# javascript) are valid for any target, regardless of architecture. The allarch -# class removes your compiler definitions, as it assumes that anything that -# requires a compiler is platform specific. Unfortunately, one of the build -# tools uses libsass for compiling the css templates, and it needs a compiler to -# build the library that it then uses to compress the scss into normal css. -# Enabling allarch, then re-adding the compiler flags was the best of the bad -# options - -inherit allarch - -export CXX = "${BUILD_CXX}" -export CC = "${BUILD_CC}" -export CFLAGS = "${BUILD_CFLAGS}" -export CPPFLAGS = "${BUILD_CPPFLAGS}" -export CXXFLAGS = "${BUILD_CXXFLAGS}" - -FILES_${PN} += "${datadir}/www/*" - -do_compile () { - cd ${S} - rm -rf node_modules - npm --loglevel info --proxy=${HTTP_PROXY} --https-proxy=${HTTPS_PROXY} install - npm run-script build -} - -do_install () { - # create directory structure - install -d ${D}${datadir}/www - cp -r ${S}/dist/** ${D}${datadir}/www - find ${D}${datadir}/www -type f -exec chmod a=r,u+w '{}' + - find ${D}${datadir}/www -type d -exec chmod a=rx,u+w '{}' + -} - |