more configs and mk files
This commit is contained in:
@@ -8,4 +8,44 @@ config:
|
||||
kconfig-conf Config.in
|
||||
|
||||
py-menuconfig:
|
||||
scripts/menuconfig Config.in
|
||||
scripts/menuconfig Config.in
|
||||
|
||||
include scripts/funcs.mk
|
||||
include package/package.mk
|
||||
|
||||
Command := $(firstword $(MAKECMDGOALS))
|
||||
|
||||
UC = $(shell echo $(Command) | tr '[:lower:]' '[:upper:]')
|
||||
|
||||
$(Command):
|
||||
$(call CMD_CONFIGURE_$(call UC))
|
||||
$(call CMD_BUILD_$(call UC))
|
||||
$(call CMD_INSTALL_$(call UC))
|
||||
|
||||
all:
|
||||
$(call CMD_CONFIGURE_UCLIBC)
|
||||
$(call CMD_BUILD_UCLIBC)
|
||||
$(call CMD_INSTALL_UCLIBC)
|
||||
|
||||
$(call CMD_CONFIGURE_BUSYBOX)
|
||||
$(call CMD_BUILD_BUSYBOX)
|
||||
$(call CMD_INSTALL_BUSYBOX)
|
||||
|
||||
$(call CMD_CONFIGURE_ZLIB)
|
||||
$(call CMD_BUILD_ZLIB)
|
||||
$(call CMD_INSTALL_ZLIB)
|
||||
|
||||
$(call CMD_CONFIGURE_DROPBEAR)
|
||||
$(call CMD_BUILD_DROPBEAR)
|
||||
$(call CMD_INSTALL_DROPBEAR)
|
||||
ifeq (CONFIG_SIMPLE_SFTP_SERVER_DROPBEAR,y)
|
||||
$(call CMD_CONFIGURE_SFTP_SERVER_DROPBEAR)
|
||||
$(call CMD_BUILD_SFTP_SERVER_DROPBEAR)
|
||||
$(call CMD_INSTALL_SFTP_SERVER_DROPBEAR)
|
||||
endif
|
||||
|
||||
$(call CMD_CONFIGURE_UBOOT)
|
||||
$(call CMD_BUILD_UBOOT)
|
||||
$(call CMD_INSTALL_UBOOT)
|
||||
|
||||
|
||||
+2
-10
@@ -1,10 +1,2 @@
|
||||
config SIMPLE_UBOOT
|
||||
bool "U-Boot"
|
||||
help
|
||||
Build "Das U-Boot" Boot Monitor
|
||||
https://www.denx.de/wiki/U-Boot
|
||||
|
||||
config SIMPLE_GRUB2
|
||||
bool "Grub2"
|
||||
help
|
||||
GNU GRUB is a Multiboot boot loader
|
||||
source package/uboot/Config.in
|
||||
source package/grub2/Config.in
|
||||
@@ -0,0 +1,11 @@
|
||||
define CMD_CONFIGURE_BASH
|
||||
$(call msg,configure_bash)
|
||||
endef
|
||||
|
||||
define CMD_BUILD_BASH
|
||||
$(call msg,build_bash)
|
||||
endef
|
||||
|
||||
define CMD_INSTALL_BASH
|
||||
$(call msg,install_bash)
|
||||
endef
|
||||
@@ -0,0 +1,12 @@
|
||||
define CMD_CONFIGURE_BUSYBOX
|
||||
$(call msg,configure_busybox)
|
||||
$(call warningmsg,configure_busybox)
|
||||
endef
|
||||
|
||||
define CMD_BUILD_BUSYBOX
|
||||
$(call msg,build_busybox)
|
||||
endef
|
||||
|
||||
define CMD_INSTALL_BUSYBOX
|
||||
$(call msg,install_busybox)
|
||||
endef
|
||||
@@ -0,0 +1,11 @@
|
||||
define CMD_CONFIGURE_CURL
|
||||
$(call msg,configure_curl)
|
||||
endef
|
||||
|
||||
define CMD_BUILD_CURL
|
||||
$(call msg,build_curl)
|
||||
endef
|
||||
|
||||
define CMD_INSTALL_CURL
|
||||
$(call msg,install_curl)
|
||||
endef
|
||||
@@ -5,6 +5,4 @@ config SIMPLE_DROPBEAR
|
||||
help
|
||||
Embedded ssh server
|
||||
|
||||
config SIMPLE_SFTP_SERVER_DROPBEAR
|
||||
bool "Sftp server"
|
||||
depends on SIMPLE_DROPBEAR
|
||||
source package/sftp-server-dropbear/Config.in
|
||||
@@ -0,0 +1,23 @@
|
||||
define CMD_CONFIGURE_DROPBEAR
|
||||
$(call msg,configure_dropbear)
|
||||
endef
|
||||
|
||||
define CMD_BUILD_DROPBEAR
|
||||
$(call msg,build_dropbear)
|
||||
endef
|
||||
|
||||
define CMD_INSTALL_DROPBEAR
|
||||
$(call msg,install_dropbear)
|
||||
endef
|
||||
|
||||
define CMD_CONFIGURE_SFTP_SERVER_DROPBEAR
|
||||
$(call msg,configure_sftp_server_dropbear)
|
||||
endef
|
||||
|
||||
define CMD_BUILD_SFTP_SERVER_DROPBEAR
|
||||
$(call msg,build_sftp_server_dropbear)
|
||||
endef
|
||||
|
||||
define CMD_INSTALL_SFTP_SERVER_DROPBEAR
|
||||
$(call msg,install_sftp_server_dropbear)
|
||||
endef
|
||||
@@ -0,0 +1,11 @@
|
||||
define CMD_CONFIGURE_GIT
|
||||
$(call msg,configure_git)
|
||||
endef
|
||||
|
||||
define CMD_BUILD_GIT
|
||||
$(call msg,build_git)
|
||||
endef
|
||||
|
||||
define CMD_INSTALL_GIT
|
||||
$(call msg,install_git)
|
||||
endef
|
||||
@@ -0,0 +1,2 @@
|
||||
config SIMPLE_GLIBC
|
||||
bool "glibc"
|
||||
@@ -0,0 +1,11 @@
|
||||
define CMD_CONFIGURE_GLIBC
|
||||
$(call msg,configure_glibc)
|
||||
endef
|
||||
|
||||
define CMD_BUILD_GLIBC
|
||||
$(call msg,build_glibc)
|
||||
endef
|
||||
|
||||
define CMD_INSTALL_GLIBC
|
||||
$(call msg,install_glibc)
|
||||
endef
|
||||
@@ -0,0 +1,4 @@
|
||||
config SIMPLE_GRUB2
|
||||
bool "Grub2"
|
||||
help
|
||||
GNU GRUB is a Multiboot boot loader
|
||||
@@ -0,0 +1,11 @@
|
||||
define CMD_CONFIGURE_GRUB2
|
||||
$(call msg,configure_grub2)
|
||||
endef
|
||||
|
||||
define CMD_BUILD_GRUB2
|
||||
$(call msg,build_grub2)
|
||||
endef
|
||||
|
||||
define CMD_INSTALL_GRUB2
|
||||
$(call msg,install_grub2)
|
||||
endef
|
||||
@@ -0,0 +1,11 @@
|
||||
define CMD_CONFIGURE_OPENSSH
|
||||
$(call msg,configure_openssh)
|
||||
endef
|
||||
|
||||
define CMD_BUILD_OPENSSH
|
||||
$(call msg,build_openssh)
|
||||
endef
|
||||
|
||||
define CMD_INSTALL_OPENSSH
|
||||
$(call msg,install_openssh)
|
||||
endef
|
||||
@@ -0,0 +1,11 @@
|
||||
include package/bash/bash.mk
|
||||
include package/busybox/busybox.mk
|
||||
include package/curl/curl.mk
|
||||
include package/dropbear/dropbear.mk
|
||||
include package/git/git.mk
|
||||
include package/openssh/openssh.mk
|
||||
include package/zlib/zlib.mk
|
||||
include package/glibc/glibc.mk
|
||||
include package/uclibc/uclibc.mk
|
||||
include package/uboot/uboot.mk
|
||||
include package/grub2/grub2.mk
|
||||
@@ -0,0 +1,3 @@
|
||||
config SIMPLE_SFTP_SERVER_DROPBEAR
|
||||
bool "Sftp server"
|
||||
depends on SIMPLE_DROPBEAR
|
||||
@@ -0,0 +1,5 @@
|
||||
config SIMPLE_UBOOT
|
||||
bool "U-Boot"
|
||||
help
|
||||
Build "Das U-Boot" Boot Monitor
|
||||
https://www.denx.de/wiki/U-Boot
|
||||
@@ -0,0 +1,11 @@
|
||||
define CMD_CONFIGURE_UBOOT
|
||||
$(call msg,configure_uclibc)
|
||||
endef
|
||||
|
||||
define CMD_BUILD_UBOOT
|
||||
$(call msg,build_uclibc)
|
||||
endef
|
||||
|
||||
define CMD_INSTALL_UBOOT
|
||||
$(call msg,install_uclibc)
|
||||
endef
|
||||
@@ -0,0 +1,2 @@
|
||||
config SIMPLE_UCLIBC
|
||||
bool "uclibc"
|
||||
@@ -0,0 +1,11 @@
|
||||
define CMD_CONFIGURE_UCLIBC
|
||||
$(call msg,configure_uclibc)
|
||||
endef
|
||||
|
||||
define CMD_BUILD_UCLIBC
|
||||
$(call msg,build_uclibc)
|
||||
endef
|
||||
|
||||
define CMD_INSTALL_UCLIBC
|
||||
$(call msg,install_uclibc)
|
||||
endef
|
||||
@@ -0,0 +1,11 @@
|
||||
define CMD_CONFIGURE_ZLIB
|
||||
$(call msg,configure_zlib)
|
||||
endef
|
||||
|
||||
define CMD_BUILD_ZLIB
|
||||
$(call msg,build_zlib)
|
||||
endef
|
||||
|
||||
define CMD_INSTALL_ZLIB
|
||||
$(call msg,install_zlib)
|
||||
endef
|
||||
@@ -0,0 +1,18 @@
|
||||
reset_color = \033[0m
|
||||
white_background_color = \033[0;47m
|
||||
high_intensity_yellow_background_color = \033[0;103m
|
||||
high_intensity_red_background_color = \033[0;101m
|
||||
|
||||
|
||||
define msg
|
||||
@echo -e "$(white_background_color) Info: $1 $(reset_color)"
|
||||
endef
|
||||
|
||||
define errmsg
|
||||
@echo -e "$(high_intensity_red_background_color) Error: $1 $(reset_color)"
|
||||
@exit 1
|
||||
endef
|
||||
|
||||
define warningmsg
|
||||
@echo -e "$(high_intensity_yellow_background_color) Warning: $1 $(reset_color)"
|
||||
endef
|
||||
+2
-4
@@ -1,10 +1,8 @@
|
||||
choice SIMPLE_SELECT_STANDARD_LIBRARY
|
||||
prompt "Select default C library"
|
||||
default SIMPLE_UCLIBC
|
||||
config SIMPLE_GLIBC
|
||||
bool "glibc"
|
||||
config SIMPLE_UCLIBC
|
||||
bool "uclibc"
|
||||
source package/glibc/Config.in
|
||||
source package/uclibc/Config.in
|
||||
endchoice
|
||||
|
||||
config SIMPLE_CROSS_COMPILE
|
||||
|
||||
Reference in New Issue
Block a user