mirror of
https://gitee.com/open-loongarch/buildroot.git
synced 2026-10-25 12:57:11 +08:00
update to 3862614a4c
This commit is contained in:
@@ -13,3 +13,10 @@ config BR2_PACKAGE_AUTOREBOOT
|
||||
if you want to enable this service you can run this command
|
||||
'systemctl enable autoreboot'
|
||||
|
||||
config BR2_PACKAGE_AUTOREBOOT_START
|
||||
bool "run autoreboot test after boot"
|
||||
depends on BR2_PACKAGE_AUTOREBOOT
|
||||
default n
|
||||
help
|
||||
it'll enable and start autoreboot.service
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ define AUTOREBOOT_INSTALL_TARGET_CMDS
|
||||
|
||||
mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants
|
||||
cd $(@D)/autoreboot && cp autoreboot.service $(TARGET_DIR)/usr/lib/systemd/system/
|
||||
cd $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants && ln -b -s ../autoreboot.service autoreboot_service
|
||||
mkdir -p $(TARGET_DIR)/opt
|
||||
cd $(@D)/autoreboot && cp autoreboot.sh $(TARGET_DIR)/opt
|
||||
endef
|
||||
@@ -41,10 +40,16 @@ define AUTOREBOOT_INSTALL_TARGET_CMDS
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_AUTOREBOOT_START), y)
|
||||
define AUTOREBOOT_START
|
||||
cd $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants && ln -b -s ../autoreboot.service autoreboot_service
|
||||
endef
|
||||
endif
|
||||
#define BUILD_AUTOREBOOT_ADD_TLS_LINK
|
||||
# mkdir -p $(TARGET_DIR)/usr/lib64/tls; cd $(TARGET_DIR)/usr/lib64/tls; if ! test -L loongarch ; then ln -s ../../lib64/ loongarch; fi
|
||||
#endef
|
||||
#
|
||||
#AUTOREBOOT_TARGET_FINALIZE_HOOKS += BUILD_AUTOREBOOT_ADD_TLS_LINK
|
||||
AUTOREBOOT_TARGET_FINALIZE_HOOKS += AUTOREBOOT_START
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
@@ -23,3 +23,11 @@ config BR2_PACKAGE_LOONGSON_KERNEL_PATH
|
||||
string "uImage file path in host site"
|
||||
depends on BR2_PACKAGE_LOONGSON_KERNEL
|
||||
|
||||
config BR2_PACKAGE_LOONGSON_KERNEL_MODULES
|
||||
bool "Loongson Linux Kernel Modules"
|
||||
depends on BR2_PACKAGE_LOONGSON_KERNEL
|
||||
default y
|
||||
help
|
||||
Enable this option if you want to put kernel objects in /usr/lib/modules
|
||||
|
||||
|
||||
|
||||
@@ -8,13 +8,14 @@ LOONGSON_KERNEL_SITE = $(TOPDIR)/package/loongson_kernel/loongson_kernel.tar.gz
|
||||
LOONGSON_KERNEL_SITE_METHOD = file
|
||||
|
||||
define LOONGSON_KERNEL_EXTRACT_CMDS
|
||||
tar -xzf $(LOONGSON_KERNEL_SITE) -C $(@D)/ --strip-components 1 --wildcards */uImage
|
||||
tar -xzf $(LOONGSON_KERNEL_SITE) -C $(@D)/ --strip-components 1
|
||||
endef
|
||||
|
||||
define LOONGSON_KERNEL_INSTALL_TARGET_CMDS
|
||||
echo "install LSGD Kernel"
|
||||
mkdir -p $(TARGET_DIR)/boot
|
||||
cd $(@D) && cp uImage $(TARGET_DIR)/boot
|
||||
cd $(@D) && mv lib/modules/ $(TARGET_DIR)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
Binary file not shown.
@@ -18,9 +18,11 @@ endef
|
||||
|
||||
define LOONGSON_RESIZE_INSTALL_TARGET_CMDS
|
||||
echo "install loongson resize init.d/profile.d"
|
||||
cd $(@D) && chmod a+x ./resizerootfs.sh && cp resizerootfs.sh $(TARGET_DIR)/root/
|
||||
mkdir -p $(TARGET_DIR)/usr/local/ls_resize
|
||||
cd $(@D) && chmod a+x ./resizerootfs.sh && cp resizerootfs.sh $(TARGET_DIR)/usr/local/ls_resize/
|
||||
cd $(@D) && chmod a+x ./fdisk_resize.sh && cp fdisk_resize.sh $(TARGET_DIR)/usr/local/ls_resize/
|
||||
mkdir -p $(TARGET_DIR)/etc/init.d
|
||||
cd $(@D) && chmod a+x ./S01resizerootfs && cp S01resizerootfs $(TARGET_DIR)/etc/init.d
|
||||
cd $(@D) && chmod a+x ./S03resizerootfs && cp S03resizerootfs $(TARGET_DIR)/etc/init.d
|
||||
cd $(@D) && cp loongson-resize.service $(TARGET_DIR)/usr/lib/systemd/system/
|
||||
cd $(TARGET_DIR)/usr/lib/systemd/system/sysinit.target.wants && ln -sf ../loongson-resize.service loongson-resize.service
|
||||
endef
|
||||
|
||||
Binary file not shown.
@@ -7,8 +7,15 @@
|
||||
LS2_SYS_CONFIG_TOOL_VERSION = origin/master
|
||||
LS2_SYS_CONFIG_TOOL_SITE = http://10.120.1.5:3000/base/sys_config_tool
|
||||
LS2_SYS_CONFIG_TOOL_SITE_METHOD = git
|
||||
LS2_SYS_CONFIG_TOOL_GIT_SUBMODULES = YES
|
||||
LS2_SYS_CONFIG_TOOL_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
||||
LS2_SYS_CONFIG_TOOL_DEPLOY_WAY=1
|
||||
else
|
||||
LS2_SYS_CONFIG_TOOL_DEPLOY_WAY=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LS2_SYS_CONFIG_TOOL_QT),y)
|
||||
LS2_SYS_CONFIG_TOOL_DEPENDENCIES = qt5base
|
||||
endif
|
||||
@@ -58,6 +65,7 @@ define LS2_SYS_CONFIG_TOOL_BUILD_CMDS
|
||||
cd $(@D)/cmd_version && $(MAKE) clean && $(TARGET_MAKE_ENV) $(MAKE) CC=$(TARGET_CC) BUILD_TYPE=3 && cp sys_config_tool update_uboot
|
||||
cd $(@D)/cmd_version && $(MAKE) clean && $(TARGET_MAKE_ENV) $(MAKE) CC=$(TARGET_CC) BUILD_TYPE=2 && cp sys_config_tool update_system
|
||||
cd $(@D)/cmd_version && $(MAKE) clean && $(TARGET_MAKE_ENV) $(MAKE) CC=$(TARGET_CC)
|
||||
cd $(@D)/cmd_version && cp update_uboot update_system sys_config_tool $(@D)
|
||||
echo "second build qt version software"
|
||||
$(LS2_SYS_CONFIG_TOOL_BUILD_QT_VER_CMDS)
|
||||
endef
|
||||
@@ -68,13 +76,7 @@ endef
|
||||
|
||||
define LS2_SYS_CONFIG_TOOL_INSTALL_TARGET_CMDS
|
||||
echo "install cmd version sofeware"
|
||||
cd $(TARGET_DIR)/ && mkdir -p ./root/ls2_sys_config_tool/file
|
||||
cd $(@D)/file && cp -r download_system_tftp $(TARGET_DIR)/root/ls2_sys_config_tool/file/download_system
|
||||
cd $(@D)/file && cp -r install_system $(TARGET_DIR)/root/ls2_sys_config_tool/file/
|
||||
cd $(@D)/file && cp -r fstab $(TARGET_DIR)/root/ls2_sys_config_tool/file/
|
||||
cd $(@D)/cmd_version && cp sys_config_tool $(TARGET_DIR)/root/ls2_sys_config_tool/
|
||||
cd $(@D)/cmd_version && cp update_system $(TARGET_DIR)/root/ls2_sys_config_tool/
|
||||
cd $(@D)/cmd_version && cp update_uboot $(TARGET_DIR)/root/ls2_sys_config_tool/
|
||||
cd $(@D) && ./deploy_budilroot.sh $(LS2_SYS_CONFIG_TOOL_DEPLOY_WAY) $(TARGET_DIR)
|
||||
$(LS2_SYS_CONFIG_TOOL_INSTALL_QT_VER_CMDS)
|
||||
$(LS2_SYS_CONFIG_TOOL_INSTALL_AUTO_EXEC_AFTER_BOOT_CMDS)
|
||||
endef
|
||||
|
||||
@@ -39,7 +39,8 @@ endef
|
||||
|
||||
define INSTALL_LS_DEFAULT_ETH_CONFIG_GEN
|
||||
echo "install keep-nmcli.sh and keep-nmcli.service"
|
||||
cd $(@D) && cp keep-nmcli.sh $(TARGET_DIR)/root/
|
||||
mkdir -p $(TARGET_DIR)/usr/local
|
||||
cd $(@D) && cp keep-nmcli.sh $(TARGET_DIR)/usr/local
|
||||
cd $(@D) && cp keep-nmcli.service $(TARGET_DIR)/usr/lib/systemd/system/
|
||||
cd $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants && ln -sf ../keep-nmcli.service keep-nmcli.service
|
||||
endef
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user