Coder Social home page Coder Social logo

leo357449107 / k3screenctrl_build Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lwz322/k3screenctrl_build

0.0 0.0 0.0 37 KB

build k3screenctrl via source and support luci-app-k3screenctrl

License: GNU General Public License v3.0

Makefile 35.15% Shell 64.85%

k3screenctrl_build's Introduction

编译K3的屏幕控制组件

使用OpenWrt Snapshot源码编译lwz322/k3screenctrl使用的编译文件,在这里添加了luci-app-k3screenctrl的config文件/file/k3screenctrl,具体的介绍可以参考上面的链接

因为配套的相关程序的更新,与其他作者的k3screenctrl以及luci-app不兼容

Leo357449107: 添加了心知天气公钥签名验证的支持,在填写了公钥的情况下使用签名验证方式认证(V3)。 TODO: 心知天气API v4

k3screenctrl_build

build k3screenctrl via OpenWrt Snapshot source and support luci-app-k3screenctrl

考察K3的DENPENDS

看了文档和官方的./targe/linux/image/Makefile以及coolsnowwolf/lede下的提交记录,官方文档有对DEPENDS的说明

Dependency Types

Various types of dependencies can be specified, which require a bit of explanation for their differences. More documentation is available at Using Dependencies

+ Package will depend on package and will select it when selected.
Package will depend on package and will be invisible until is selected.
@FOO Package depends on the config symbol CONFIG_FOO and will be invisible unless CONFIG_FOO is set. This usually used for depending on certain Linux versions or targets, e.g. @TARGET_foo will make a package only available for target foo. You can also use boolean expressions for complex dependencies, e.g. @(!TARGET_foo&&!TARGET_bar) will make the package unavailable for foo and bar.
+FOO: Package will depend on if CONFIG_FOO is set, and will select when it is selected itself. The typical use case would be if there compile time options for this package toggling features that depend on external libraries. :!: Note that the + replaces the @. :!: There is limited support for boolean operators here compared to the @ type above. Negation ! is only supported to negate the whole condition. Parentheses are ignored, so use them only for readability. Like C, && has a higher precedence than ||. So +(YYY||FOO&&BAR):package will select package if CONFIG_YYY is set or if both CONFIG_FOO and CONFIG_BAR are set.
@FOO: Package will depend on if CONFIG_FOO is set, and will be invisible until is selected when CONFIG_FOO is set.

Some typical config symbols for (conditional) dependencies are:

TARGET_ Target is selected
TARGET__ If the target has subtargets, subtarget is selected. If not, profile is selected. This is in addition to TARGET_
TARGET_ Target with subtarget and profile is selected.
LINUX_3_X Linux version used is 3.x.*
LINUX_2_6_X Linux version used is 2.6.x.* (:1: only used for backfire and earlier)
LINUX_2_4 Linux version is 2.4 (:!: only used in backfire and earlier, and only for target brcm-2.4)
USE_UCLIBC, USE_GLIBC, USE_EGLIBC To (not) depend on a certain libc.
BROKEN Package doesn't build or work, and should only be visible if “Show broken targets/packages” is selected. Prevents the package from failing builds by accidentally selecting it.
IPV6 IPv6 support in packages is selected.

Note that the syntax above applies to the DEPENDS field only.

用官方代码的master,19.07.4,19.07.3,以及coolsnowwolf/lede测试了下

master 19.07.4 lean/lede older
image/Makefile phicomm_k3 phicomm-k3 phicomm-k3 phicomm-k3
menuconfig bcm53xx引入subtarget 引入subtarget
k3screenctrl/Makefile generic_DEVICE_phicomm_k3 DEVICE_phicomm-k3 generic_DEVICE_phicomm-k3 DEVICE_phicomm-k3

考虑到用lede安装这个分支的k3screenctrl的人也挺多的,还是照顾兼容性吧,所以综合下上面几种情况写成

DEPENDS:=@(TARGET_bcm53xx_generic_DEVICE_phicomm_k3||TARGET_bcm53xx_generic_DEVICE_phicomm-k3||TARGET_bcm53xx_DEVICE_phicomm-k3)

k3screenctrl_build's People

Contributors

cnsilvan avatar lwz322 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.