Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Compare revisions
6af96a88ad2557cedeed18e4556d3116842f586d to experimental
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
firmware/gluon
Select target project
No results found
experimental
Select Git revision
Swap
Target
0x4A6F/gluon
Select target project
firmware/gluon
0x4A6F/gluon
patrick/gluon
3 results
6af96a88ad2557cedeed18e4556d3116842f586d
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
package/gluon-wireless-encryption-wpa3/Makefile
+19
-0
19 additions, 0 deletions
package/gluon-wireless-encryption-wpa3/Makefile
package/gluon.mk
+129
-0
129 additions, 0 deletions
package/gluon.mk
package/libbatadv/Makefile
+68
-0
68 additions, 0 deletions
package/libbatadv/Makefile
with
216 additions
and
0 deletions
Some changes are not shown.
For a faster browsing experience, only
3 of 843+
files are shown.
package/gluon-wireless-encryption-wpa3/Makefile
0 → 100644
View file @
02fd2d04
include
$(TOPDIR)/rules.mk
PKG_NAME
:=
gluon-wireless-encryption-wpa3
include
../gluon.mk
define
Package/gluon-wireless-encryption-wpa3
DEPENDS
:=
+hostapd-mbedtls
TITLE
:=
Package
for
supporting WPA3 encrypted wireless networks
endef
define
Package/gluon-wireless-encryption-wpa3/install
$(INSTALL_DIR)
$(1)/lib/gluon/features
touch
$(1)/lib/gluon/features/wpa2
touch
$(1)/lib/gluon/features/wpa3
endef
$(
eval
$(
call BuildPackageGluon,gluon-wireless-encryption-wpa3
))
This diff is collapsed.
Click to expand it.
package/gluon.mk
0 → 100644
View file @
02fd2d04
GLUON_MK
:=
$(
abspath
$(
lastword
$(
MAKEFILE_LIST
)))
PKG_FILE_DEPENDS
+=
$(
GLUON_MK
)
PKG_VERSION
?=
1
PKG_BUILD_DEPENDS
+=
luasrcdiet/host
ifneq
($(wildcard ./luasrc/.),)
PKG_CONFIG_DEPENDS
+=
CONFIG_GLUON_MINIFY
endif
ifneq
($(wildcard ./src/respondd.c),)
PKG_BUILD_DEPENDS
+=
respondd
endif
include
$(INCLUDE_DIR)/package.mk
# Annoyingly, make's shell function replaces all newlines with spaces, so we have to do some escaping work. Yuck.
shell-escape
=
$(
shell
$(
1
)
|
sed
-ne
'1h; 1!H; $$ {g; s/@/@1/g; s/\n/@2/g; p
}
'
)
shell-unescape
=
$(
subst @1,@,
$(
subst @2,
$(
newline
)
,
$(
1
)))
shell-verbatim
=
$(
call shell-unescape,
$(
call shell-escape,
$(
1
)))
define
GluonCheckSite
[ -z "$$STAGING_DIR_HOSTPKG" ] || PATH="$$STAGING_DIR_HOSTPKG/bin
:
$$PATH"
lua
"$$IPKG_INSTROOT/lib/gluon/check-site.lua"
<<
'END__GLUON__CHECK__SITE'
$(
call
shell-verbatim,cat
'
$(
1
)
'
)
END__GLUON__CHECK__SITE
endef
GLUON_SUPPORTED_LANGS
:=
de fr
GLUON_LANG_de
:=
German
GLUON_LANG_fr
:=
French
GLUON_I18N_CONFIG
:=
$(
foreach lang,
$(
GLUON_SUPPORTED_LANGS
)
,CONFIG_GLUON_WEB_LANG_
$(
lang
))
GLUON_ENABLED_LANGS
:=
en
$(
foreach lang,
$(
GLUON_SUPPORTED_LANGS
)
,
$(
if
$(
CONFIG_GLUON_WEB_LANG_
$(
lang
))
,
$(
lang
)))
ifneq
($(wildcard ./i18n/.),)
PKG_BUILD_DEPENDS
+=
gluon-web/host
PKG_CONFIG_DEPENDS
+=
$(
GLUON_I18N_CONFIG
)
endif
define
GluonBuildI18N
mkdir
-p
$$(PKG_BUILD_DIR)/i18n
for
lang
in
$$(GLUON_ENABLED_LANGS);
do
\
if
[
-e
$(1)/$$$$lang.po
];
then
\
rm
-f
$$(PKG_BUILD_DIR)/i18n/$$$$lang.lmo;
\
gluon-po2lmo
$(1)/$$$$lang.po
$$(PKG_BUILD_DIR)/i18n/$$$$lang.lmo;
\
fi;
\
done
endef
define
GluonInstallI18N
$$(INSTALL_DIR)
$(1)/lib/gluon/web/i18n
for
lang
in
$$(GLUON_ENABLED_LANGS);
do
\
if
[
-e
$$(PKG_BUILD_DIR)/i18n/$$$$lang.lmo
];
then
\
$$(INSTALL_DATA)
$$(PKG_BUILD_DIR)/i18n/$$$$lang.lmo
$(1)/lib/gluon/web/i18n/$(PKG_NAME).$$$$lang.lmo;
\
fi;
\
done
endef
define
GluonSrcDiet
rm
-rf
$(2)
$(CP)
$(1)
$(2)
ifdef
CONFIG_GLUON_MINIFY
# Use cp + rm instead of mv to preserve destination permissions
set
-e;
$(FIND)
$(2)
-type
f
|
while
read
src;
do
\
echo
"Minifying $$$$src..."
;
\
luasrcdiet
--noopt-binequiv
-o
"$$$$src.tmp"
"$$$$src"
;
\
cp
"$$$$src.tmp"
"$$$$src"
;
\
rm
"$$$$src.tmp"
;
\
done
endif
endef
define
Gluon/Build/Compile
$(
if
$(
wildcard ./src/Makefile ./src/CMakeLists.txt
)
,
$(
Build/Compile/Default
)
)
$(
if
$(
wildcard ./luasrc/.
)
,
$(
call GluonSrcDiet,luasrc,
$(
PKG_BUILD_DIR
)
/luadest/
)
)
$(
if
$(
wildcard ./i18n/.
)
,
$(
call GluonBuildI18N,i18n
)
)
endef
define
Gluon/Build/Install
$(
if
$(
findstring
$(
PKG_INSTALL
)
,1
)
,
$(
CP
)
$(
PKG_INSTALL_DIR
)
/.
$(
1
)
/
)
$(
if
$(
wildcard ./files/.
)
,
$(
CP
)
./files/.
$(
1
)
/
)
$(
if
$(
wildcard ./luasrc/.
)
,
$(
CP
)
$(
PKG_BUILD_DIR
)
/luadest/.
$(
1
)
/
)
$(
if
$(
wildcard ./src/respondd.c
)
,
$(
INSTALL_DIR
)
$(
1
)
/usr/lib/respondd
$(
CP
)
$(
PKG_BUILD_DIR
)
/respondd.so
$(
1
)
/usr/lib/respondd/
$(
PKG_NAME
)
.so
)
$(
if
$(
wildcard ./i18n/.
)
,
$(
GluonInstallI18N
)
)
endef
Build/
Compile
=
$(
call Gluon/Build/Compile
)
define
BuildPackageGluon
define Package/$(1)
:
=
SECTION
:=
gluon
CATEGORY
:=
Gluon
$$(Package/$(1))
endef
Package/$(1)/
install
?=
$$(
Gluon/Build/Install
)
ifneq
($(wildcard check_site.lua),)
define
Package/$(1)/postinst
#!/bin/sh
$
$(
call
GluonCheckSite,check_site.lua
)
endef
endif
$
$(
eval
$$(
call BuildPackage,
$(
1
)))
endef
This diff is collapsed.
Click to expand it.
package/libbatadv/Makefile
0 → 100644
View file @
02fd2d04
# SPDX-License-Identifier: MIT
#
# batman-adv helpers functions library
#
# Copyright (c) 2017, Sven Eckelmann <sven@narfation.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
include
$(TOPDIR)/rules.mk
PKG_NAME
:=
libbatadv
PKG_VERSION
:=
1
PKG_LICENSE
:=
MIT
PKG_INSTALL
:=
1
include
$(INCLUDE_DIR)/package.mk
define
Package/libbatadv
SECTION
:=
libs
CATEGORY
:=
Libraries
TITLE
:=
batman-adv helpers functions
DEPENDS
:=
+libnl-tiny
endef
TARGET_CFLAGS
+=
-flto
-ffunction-sections
-fdata-sections
TARGET_LDFLAGS
+=
-fuse-linker-plugin
-Wl
,--gc-sections
MAKE_VARS
+=
\
LIBNL_NAME
=
"libnl-tiny"
\
LIBNL_GENL_NAME
=
"libnl-tiny"
MAKE_ARGS
+=
\
PREFIX
=
/usr
MAKE_INSTALL_FLAGS
+=
\
PREFIX
=
/usr
define
Package/libbatadv/install
$(INSTALL_DIR)
$(1)/usr/lib
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/libbatadv.so
$(1)/usr/lib/
endef
define
Build/InstallDev
$(INSTALL_DIR)
$(1)
$(CP)
$(PKG_INSTALL_DIR)/*
$(1)/
$(INSTALL_DIR)
$(1)/usr/lib/pkgconfig/
$(CP)
./files/libbatadv.pc
$(1)/usr/lib/pkgconfig/
endef
$(
eval
$(
call BuildPackage,libbatadv
))
This diff is collapsed.
Click to expand it.
Prev
1
…
39
40
41
42
43
Next