2 # Copyright (C) 2022 Jo-Philipp Wich <jo@mein.io>
4 # This is free software, licensed under the Apache License, Version 2.0 .
7 include $(TOPDIR
)/rules.mk
10 PKG_BUILD_FLAGS
:=no-lto
15 LUCI_TITLE
:=LuCI core runtime
32 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/$(PKG_NAME
)
34 include $(INCLUDE_DIR
)/host-build.mk
36 define Package
/luci-base
/conffiles
42 define Package
/luci-base
/postinst
45 if
[ -z
"$${PKG_INSTROOT}" ] && [ -f
/etc
/config
/uhttpd
]; then
46 if
! uci
-q
get uhttpd.main.ucode_prefix | grep
-sq
/cgi-bin
/luci
; then
47 uci add_list uhttpd.main.ucode_prefix
='/cgi-bin/luci=/usr/share/ucode/luci/uhttpd.uc'
62 $(MAKE
) -C src
/ clean po2lmo jsmin
66 $(INSTALL_DIR
) $(1)/bin
67 $(INSTALL_BIN
) src
/po2lmo
$(1)/bin
/po2lmo
68 $(INSTALL_BIN
) src
/jsmin
$(1)/bin
/jsmin
71 $(eval
$(call HostBuild
))
73 # call BuildPackage - OpenWrt buildroot signature