Skip to content

Commit

Permalink
package: set foo_REDISTRIBUTE = NO for local packages
Browse files Browse the repository at this point in the history
When running `make legal-info` Buildroot will collect source and
licenses for all packages, which generates a few warnings for our
local packages.  Local packages are skipped.

> The source code for packages that set <PKG>_REDISTRIBUTE = NO will not
> be saved.  Patches that were applied are also saved, along with a file
> named series that lists the patches in the order they were applied.

Hence, setting 'foo_REDISTRIBUTE = NO' disables the warning, which seems
like a good idea to reduce the number of unnecessary questions we might
otherwise get.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit authored and wkz committed Aug 30, 2023
1 parent ab88c97 commit 04e8a87
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions package/confd/confd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ CONFD_SITE_METHOD = local
CONFD_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/confd
CONFD_LICENSE = BSD-3-Clause
CONFD_LICENSE_FILES = LICENSE
CONFD_REDISTRIBUTE = NO
CONFD_DEPENDENCIES = augeas jansson libite sysrepo libsrx
CONFD_AUTORECONF = YES

Expand Down
2 changes: 2 additions & 0 deletions package/factory/factory.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
# factory
#
################################################################################

FACTORY_VERSION = 1.0
FACTORY_LICENSE = MIT
FACTORY_LICENSE_FILES = LICENSE
FACTORY_SITE_METHOD = local
FACTORY_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/factory
FACTORY_REDISTRIBUTE = NO

define FACTORY_BUILD_CMDS
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
Expand Down
1 change: 1 addition & 0 deletions package/klish-plugin-infix/klish-plugin-infix.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ KLISH_PLUGIN_INFIX_LICENSE = BSD-3-Clause
KLISH_PLUGIN_INFIX_LICENSE_FILES = LICENSE
KLISH_PLUGIN_INFIX_SITE_METHOD = local
KLISH_PLUGIN_INFIX_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/klish-plugin-infix
KLISH_PLUGIN_INFIX_REDISTRIBUTE = NO
KLISH_PLUGIN_INFIX_DEPENDENCIES = klish-plugin-sysrepo
KLISH_PLUGIN_INFIX_AUTORECONF = YES

Expand Down
1 change: 1 addition & 0 deletions package/libsrx/libsrx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ LIBSRX_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/libsrx
LIBSRX_LICENSE = BSD-3-Clause
LIBSRX_LICENSE_FILES = LICENSE
LIBSRX_INSTALL_STAGING = YES
LIBSRX_REDISTRIBUTE = NO
LIBSRX_DEPENDENCIES = sysrepo
LIBSRX_AUTORECONF = YES

Expand Down
1 change: 1 addition & 0 deletions package/net/net.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ NET_LICENSE = MIT
NET_LICENSE_FILES = LICENSE
NET_SITE_METHOD = local
NET_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/net
NET_REDISTRIBUTE = NO
NET_DEPENDENCIES = libite
NET_AUTORECONF = YES

Expand Down
1 change: 1 addition & 0 deletions package/statd/statd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ STATD_SITE_METHOD = local
STATD_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/statd
STATD_LICENSE = BSD-3-Clause
STATD_LICENSE_FILES = LICENSE
STATD_REDISTRIBUTE = NO
STATD_DEPENDENCIES = sysrepo libev libsrx jansson

define STATD_BUILD_CMDS
Expand Down

0 comments on commit 04e8a87

Please sign in to comment.